Community discussions

MikroTik App
 
User avatar
tamahome
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Thu Jun 28, 2007 11:25 pm
Location: Buenos Aires
Contact:

bandwidth control doesnt apply to udp packets

Wed Sep 26, 2007 9:21 pm

Hi, is it possible that the bandwidth limit set up in a simple queue doesnt limit udp packets?

this is my queue
Flags: X - disabled, I - invalid, D - dynamic
0 name="192.168.0.100" target-addresses=192.168.0.100/32
dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=1 queue=ethernet-default/ethernet-default limit-at=0/0
max-limit=55000/220000 burst-limit=55000/220000
burst-threshold=40000/192000 burst-time=1s/1s
total-queue=ethernet-default total-burst-time=1s

this queue doesnt work at least I drop all UDP packets except por 53 (!53)

1 X ;;; block all UDP !53
chain=forward action=drop dst-port=!53 protocol=udp

does anybody have any idea why is that? If I disable the firewall rule p2p are not queue but if I drop udp !53 seems to work fine but there must be other way than drop every udp connection.

thank you.
 
User avatar
Viroslash
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Wed Jun 20, 2007 5:39 am
Location: La Plata, Buenos Aires, Argentina
Contact:

Re: bandwidth control doesnt apply to udp packets

Thu Sep 27, 2007 3:43 pm

You can create a firewall mangle rule marking udp packets, then make a queue rule specifying in the option "Packet mark" the name of this rule.


Marking packets:
/ ip firewall mangle
add chain=prerouting protocol=udp dst-port=!53 action=mark-packet new-packet-mark=udp_packets passthrough=yes comment="" disabled=no

Create queue:
/ queue simple
add name="192.168.0.100" target-addresses=192.168.0.100/32 dst-address=0.0.0.0/0 interface=all parent=none \
packet-marks=udp_packets direction=both priority=1 queue=ethernet-default/ethernet-default limit-at=0/0 \
max-limit=55000/220000 burst-limit=55000/220000 burst-threshold=40000/192000 burst-time=1s/1s \
total-queue=ethernet-default total-burst-time=1s disabled=no
 
User avatar
gustkiller
Member
Member
Posts: 419
Joined: Sat Jan 07, 2006 5:15 am
Location: Brazil
Contact:

Re: bandwidth control doesnt apply to udp packets

Thu Sep 27, 2007 5:34 pm

i'm having a problem with udp port 0! thats the only one that passes through the queues!
 
User avatar
Viroslash
Frequent Visitor
Frequent Visitor
Posts: 75
Joined: Wed Jun 20, 2007 5:39 am
Location: La Plata, Buenos Aires, Argentina
Contact:

Re: bandwidth control doesnt apply to udp packets

Thu Sep 27, 2007 7:47 pm

What sort of problem? if you dont want accept udp0 simply make a filter rule that blocks this protocol and port...
/ ip firewall filter 
add chain=forward protocol=udp dst-port=0 action=drop
 
User avatar
tamahome
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 87
Joined: Thu Jun 28, 2007 11:25 pm
Location: Buenos Aires
Contact:

Re: bandwidth control doesnt apply to udp packets

Wed Oct 03, 2007 11:40 pm

if I select a packet mark udp_!53 the simple queue just stop working and the downloads go to 2mb the max of my connection. If I dont select the packet mark in the queue works just fine but only for direct download, the rule doesnt apply to Ares P2P for example.

Also if in the simple queue I set the P2P in ALL-p2p the rule stops working for ip address. and if it is leave blank the limit works for the http traffic only.

and Im having the same issue for pppoe connection, I set the limit and only apply to http traffic.

how can I make it work right?

Who is online

Users browsing this forum: ddejager and 57 guests