Community discussions

MikroTik App
 
Staz
just joined
Topic Author
Posts: 5
Joined: Wed Sep 19, 2007 10:03 pm

How to make queues determine Intra and Internet?

Wed Sep 19, 2007 10:39 pm

Hi there.
I have some small network with 50 PCs in it. I have Internet with 10mbts and Intranet with 100mbts.
I have made Simple Queues on each pc wich limit Upload and Download with 512 kbit/sec.
How can i remove limitations on my Intranet (100mbts) and leave it only for Internet?
I have certain IP Range of my Intranet and i want to give my LAN all 100mbts to that IP Range without limitation from Queues.
Thanks for help.
 
User avatar
maximan
Trainer
Trainer
Posts: 543
Joined: Sat May 29, 2004 12:10 am
Location: Rio Cuarto, Argentina
Contact:

Re: How to make queues determine Intra and Internet?

Wed Sep 19, 2007 11:04 pm

Use address list, mangle, and queue.
Mark you local network and give priority and limit-at.
M.
 
Staz
just joined
Topic Author
Posts: 5
Joined: Wed Sep 19, 2007 10:03 pm

Re: How to make queues determine Intra and Internet?

Thu Sep 20, 2007 6:35 am

Use address list, mangle, and queue.
Mark you local network and give priority and limit-at.
M.
Can u discribe it step-to-step, or give me link plz where i can read about it. Thanks.
 
 
o_hawchar86
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Sun Nov 26, 2006 8:59 am

Re: How to make queues determine Intra and Internet?

Thu Sep 20, 2007 1:43 pm

I have the Same Prob i have an Intra Site and i want to give user full speed for it
i have configured these rules but didn't have luck plz help me to correct
ip firewall address-list> print 
Flags: X - disabled, D - dynamic 
 #   LIST                          ADDRESS                        
 0   intra                         200.100.200.0

ip firewall mangle> print 
Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=prerouting connection-mark=intra-co src-address-list=intra dst-address-list=intra action=passthrough 

 1   chain=prerouting packet-mark=Intra-pac connection-mark=intra-co action=passthrough 
queue simple> print 
Flags: X - disabled, I - invalid, D - dynamic 
 0    name="Intra" dst-address=0.0.0.0/0 interface=all parent=none packet-marks=Intra-pac priority=8 
      queue=default/default limit-at=0/0 max-limit=0/0 total-queue=default
 
yancho
Member Candidate
Member Candidate
Posts: 207
Joined: Tue Jun 01, 2004 3:04 pm
Location: LV

Re: How to make queues determine Intra and Internet?

Thu Sep 20, 2007 2:16 pm

Where you lost subnet mask for 200.100.200.0 ?
Also if you have any other rules after packet-mark you should use action accept.
 
o_hawchar86
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Sun Nov 26, 2006 8:59 am

Re: How to make queues determine Intra and Internet?

Thu Sep 20, 2007 5:41 pm

Thanks yancho.
it still doesn't work i added the subnetmask and also in action accept cuz i have other rule dont why the mangle rule doesn't count !!
 
yancho
Member Candidate
Member Candidate
Posts: 207
Joined: Tue Jun 01, 2004 3:04 pm
Location: LV

Re: How to make queues determine Intra and Internet?

Fri Sep 21, 2007 10:54 am

Can you give some more details about your network configuration is it nated or routed. If it's natted - then you should also add local address to address list.
 
o_hawchar86
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Sun Nov 26, 2006 8:59 am

Re: How to make queues determine Intra and Internet?

Fri Sep 21, 2007 11:48 am

i dont what u mean by nated or routed ! and what is Local Address!
but i route my traffic to the Gateway
ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf
# DST-ADDRESS PREFSRC G GATEWAY DISTANCE INTERFACE

5 A S 0.0.0.0/0 r 85.112.71.193 Cable

and i masquerade my src addr
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7044
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to make queues determine Intra and Internet?

Fri Sep 21, 2007 1:39 pm

ip firewall mangle> print 
Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=prerouting connection-mark=intra-co src-address-list=intra dst-address-list=intra action=passthrough 
 1   chain=prerouting packet-mark=Intra-pac connection-mark=intra-co action=passthrough 
There are absolutely no sense to those rules.

If you want to mark packets, then you must use action mark, not passthrough
/ip firewall mangle
add chain=prerouting src-address-list=intra dst-address-list=intra action=mark-connection new-connection-mark
="intra-co" passthrough=yes ;
add chain=prerouting connection-mark="intra-co" action=mark-packet new-packet-mark
="intra-pac" passthrough=no ;
Read manual carefully on how to mark packets:
http://www.mikrotik.com/testdocs/ros/2.9/ip/mangle.php
 
o_hawchar86
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Sun Nov 26, 2006 8:59 am

Re: How to make queues determine Intra and Internet?

Fri Sep 21, 2007 8:05 pm

Thanks mrz .
yes u're 100% right !
now the prob is the upload for Inta Connection is't limited but the download is Limites!!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7044
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to make queues determine Intra and Internet?

Mon Sep 24, 2007 9:43 am

One way to limit upload is by marking packets in postrouting.
 
o_hawchar86
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Sun Nov 26, 2006 8:59 am

Re: How to make queues determine Intra and Internet?

Mon Sep 24, 2007 1:47 pm

mrz thanks for ur info !
i want the Intra Upload and Intra Download to be unlimitted ! what Chain should i use
I used Prerouting as Prerouting Contain All but the Download Still Limited !!!

Who is online

Users browsing this forum: No registered users and 17 guests