Community discussions

 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

Mangle and queue tree setup is it good

Wed May 28, 2008 4:30 pm

Hi can you help me and tell am I on the right path
add chain=prerouting protocol=udp src-port=53 action=mark-connection \
    new-connection-mark=dnsudp passthrough=no comment="" disabled=no 
add chain=prerouting protocol=tcp src-port=53 action=mark-connection \
    new-connection-mark=dnstcp passthrough=no comment="" disabled=no 
add chain=prerouting in-interface=Lokal protocol=tcp action=mark-connection \
    new-connection-mark=UP_ALL passthrough=yes comment="UP_ALL" disabled=no 
add chain=prerouting in-interface=Lokal protocol=tcp connection-mark=UP_ALL \
    action=mark-packet new-packet-mark=UP_ALL passthrough=yes comment="" \
    disabled=no 
add chain=prerouting in-interface=Lokal protocol=tcp dst-port=80 \
    action=mark-connection new-connection-mark=UP_HTTP passthrough=yes \
    comment="UP_HTTP" disabled=no 
add chain=prerouting in-interface=Lokal protocol=tcp dst-port=80 \
    connection-mark=UP_HTTP connection-bytes=0-256000 action=mark-packet \
    new-packet-mark=UP_HTTP_256k passthrough=no comment="256k" disabled=no 
add chain=prerouting in-interface=Lokal protocol=tcp dst-port=80 \
    connection-mark=UP_HTTP action=mark-packet new-packet-mark=UP_HTTP_REST \
    passthrough=no comment="rest_http" disabled=no 
add chain=prerouting in-interface=Lokal protocol=tcp dst-port=8085-8087 \
    action=mark-connection new-connection-mark=WOW passthrough=no \
    comment="WOW" disabled=no 
add chain=prerouting in-interface=Lokal protocol=tcp connection-mark=UP_ALL \
    action=mark-packet new-packet-mark=UP_REST passthrough=no \
    comment="REST_UP" disabled=no 
add chain=prerouting in-interface=WAN protocol=tcp action=mark-connection \
    new-connection-mark=DOWN_ALL passthrough=yes comment="DOWN_ALL" \
    disabled=no 
add chain=prerouting connection-mark=DOWN_ALL action=mark-packet \
    new-packet-mark=DOWN_ALL passthrough=yes comment="" disabled=no 
add chain=prerouting in-interface=WAN protocol=tcp src-port=80 \
    action=mark-connection new-connection-mark=HTTP_DOWN passthrough=yes \
    comment="HTTP" disabled=no 
add chain=prerouting protocol=tcp connection-mark=HTTP_DOWN \
    connection-bytes=0-2048000 action=mark-packet new-packet-mark=HTTP_1MB \
    passthrough=no comment="First_3MB" disabled=no 
add chain=prerouting connection-mark=HTTP_DOWN action=mark-packet \
    new-packet-mark=HTTP_REST passthrough=no comment="" disabled=no 
add chain=prerouting in-interface=WAN protocol=tcp src-port=443 \
    action=mark-connection new-connection-mark=HTTPS_DOWN passthrough=yes \
    comment="HTTPS" disabled=no 
add chain=prerouting connection-mark=HTTPS_DOWN action=mark-packet \
    new-packet-mark=HTTPS passthrough=no comment="" disabled=no 
add chain=prerouting connection-mark=DOWN_ALL action=mark-packet \
    new-packet-mark=DOWN_ALL_REST passthrough=no comment="REST_DOWN" \
    disabled=no 
and queue tree
/ queue tree 
add name="UPLOAD" parent=WAN packet-mark=UP_ALL limit-at=0 queue=UPLOAD \
    priority=8 max-limit=170000 burst-limit=0 burst-threshold=0 burst-time=0s \
    disabled=no 
add name="UP 256k HTTP" parent=UPLOAD packet-mark=UP_HTTP_256k limit-at=150000 \
    queue=UPLOAD priority=1 max-limit=150000 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no 
add name="UP REST HTTP" parent=UPLOAD packet-mark=UP_HTTP_REST limit-at=10000 \
    queue=UPLOAD priority=5 max-limit=100000 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no 
add name="UP REST" parent=UPLOAD packet-mark=UP_REST limit-at=10000 \
    queue=UPLOAD priority=8 max-limit=100000 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no 
add name="Download" parent=Lokal packet-mark=DOWN_ALL limit-at=0 \
    queue=DOWNLOAD priority=8 max-limit=1400000 burst-limit=0 \
    burst-threshold=0 burst-time=0s disabled=no 
add name="HTTP 1 MB" parent=Download packet-mark=HTTP_1MB limit-at=1350000 \
    queue=DOWNLOAD priority=1 max-limit=1350000 burst-limit=0 \
    burst-threshold=0 burst-time=0s disabled=no 
add name="http rest" parent=Download packet-mark=HTTP_REST limit-at=20000 \
    queue=DOWNLOAD priority=6 max-limit=1350000 burst-limit=0 \
    burst-threshold=0 burst-time=0s disabled=no 
add name="https" parent=Download packet-mark=HTTPS limit-at=20000 \
    queue=DOWNLOAD priority=2 max-limit=1350000 burst-limit=0 \
    burst-threshold=0 burst-time=0s disabled=no 
add name="rest" parent=Download packet-mark=DOWN_ALL_REST limit-at=10000 \
    queue=DOWNLOAD priority=8 max-limit=1350000 burst-limit=0 \
    burst-threshold=0 burst-time=0s disabled=no 
 
johnyhachem
just joined
Posts: 9
Joined: Thu Jun 19, 2008 7:58 pm

Re: Mangle and queue tree setup is it good

Sat Jun 21, 2008 5:04 pm

man can u tell me for what this queuse we used ?
 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

Re: Mangle and queue tree setup is it good

Sat Jun 21, 2008 5:34 pm

these are just basic mangle and queue tree rules . . .

For prioritizing traffic . . .
 
johnyhachem
just joined
Posts: 9
Joined: Thu Jun 19, 2008 7:58 pm

Re: Mangle and queue tree setup is it good

Sat Jun 21, 2008 10:49 pm

so i can use this rules to limit the browsing and downloading ???
 
titius
Member
Member
Topic Author
Posts: 338
Joined: Mon Oct 17, 2005 11:43 am
Location: Titel Serbia

Re: Mangle and queue tree setup is it good

Sun Jun 22, 2008 2:06 pm

maybe
 
johnyhachem
just joined
Posts: 9
Joined: Thu Jun 19, 2008 7:58 pm

Re: Mangle and queue tree setup is it good

Sun Jun 22, 2008 4:50 pm

can u help me :S what can i do if i want to make browsing speed 256 but download 110 or 128 ?

Who is online

Users browsing this forum: No registered users and 22 guests