Community discussions

MikroTik App
 
NightShadow
newbie
Topic Author
Posts: 40
Joined: Thu Jun 09, 2011 4:06 am

trafficshaping skype queue

Thu Jun 16, 2011 8:15 am

Hi i have been trying to limit download on p2p torrents etc. but keep voip and sip at full speed I have used the script below that i got from the wiki i have added to the script on my microtik i wont paste my one as its too long. just the part i need help on


Ip firewall mangle
add chain=prerouting protocol=tcp dst-port=80 action=mark-connection \
new-connection-mark=http_conn passthrough=yes
add chain=prerouting connection-mark=http_conn action=mark-packet \
new-packet-mark=http passthrough=no
add chain=prerouting p2p=all-p2p action=mark-connection \
new-connection-mark=p2p_conn passthrough=yes
add chain=prerouting connection-mark=p2p_conn action=mark-packet \
new-packet-mark=p2p passthrough=no
add chain=prerouting action=mark-connection new-connection-mark=other_conn \
passthrough=yes
add chain=prerouting connection-mark=other_conn action=mark-packet \
new-packet-mark=other passthrough=no

((((((((((((((((((((((((((((NOW I HAVE ADDED THESE FEW LINES)))))))))))))))))))))))))))))))))))))))))))

ip firewall mangle
add chain=prerouting protocol=tcp dst-port=5060-5061 action=mark-connection \
new-connection-mark=voip_conn passthrough=yes
add chain=prerouting connection-mark=voip_conn action=mark-packet \
new-packet-mark=voip passthrough=no
ip firewall mangle
add chain=prerouting protocol=udp dst-port=5060-5061 action=mark-connection \
new-connection-mark=voip_conn passthrough=yes
add chain=prerouting connection-mark=voip_conn action=mark-packet \
new-packet-mark=voip passthrough=no

NOW I ADDED THESE LINES FOR THE QUEUE

add name="main" target-addresses=10.0.0.12/32 max-limit=256000/512000
add name="http" parent=main packet-marks=http max-limit=240000/500000 priority=1
add name="p2p" parent=main packet-marks=p2p max-limit=64000/64000 priority=8
add name="voip" parent=main packet-marks=voip max-limit=240000/500000 priority=1
add name="other" parent=main packet-marks=other max-limit=128000/128000 priority=4

ok in my microtik firewall under connection sip shows as voip connection as i wanted

but my sip phone is being limited by the queue named other not the queue named voip


Does anyone know how to seperate skype so it can have its own queue so i can ajust the speed that i want
 
hel
Member Candidate
Member Candidate
Posts: 199
Joined: Sun Jun 12, 2011 6:31 am
Location: Kirov, Russia

Re: trafficshaping skype queue

Thu Jun 16, 2011 5:27 pm

Some info is here, no patterns can capture all skype traffic, and those l7 patterns that exists - even overmatching traffic (captures some non-skype traffic), I'm not sure if they even capture skype packets.
http://protocolinfo.org/wiki/Skype

SIP, however, should be matched by l7 patterns perfectly, because it's standartized like ftp and http.

Who is online

Users browsing this forum: Ahrefs [Bot], xrlls and 74 guests