Simple shaping question
Thank you for your help!
This is my modified rules, but that work exactly as before :~/
/sbin/tc qdisc del dev eth0 root/sbin/tc qdisc add dev eth0 root handle 1 htb default 20 r2q 100 /sbin/tc class add dev eth0 parent 1: classid 1:2 htb rate 900Kbit burst 15k /sbin/tc class add dev eth0 parent 1:2 classid 1:10 htb rate 890Kbit ceil 900Kbit/sbin/tc class add dev eth0 parent 1:2 classid 1:20 htb rate 10Kbit ceil 900Kbit /sbin/tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10 /sbin/tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10 /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip sport 80 0xffff flowid 1:10/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dport 80 0xffff flowid 1:10
Are these rules OK or I am missing something again? Can anyone show me working example of similar rules.
Thanks again for help!
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines · Jonas Jasas
Thank you for your help!
This is my modified rules, but that work exactly as before :~/
/sbin/tcqdisc del dev eth0 root
The problem is that eth0 is connected to Internet?
Do you really want to shape outgoing (ACK?) packets?
Quoted 6 lines
Thanks again for help!
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Signature · 9 lines
_,-=._ /|_/|
`-.} `=._,.-=-._., @ @._,
`._ _,-. ) _,.-'
` G.m-"^m`m' Dmytro O. Redchuk
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartcQuoted 1 line · Dmytro O. Redchuk
The problem is that eth0 is connected to Internet?
Yes it is connected to internet, but what is the difference if it is connected to internet or LAN?
Quoted 1 line
Do you really want to shape outgoing (ACK?) packets?
Yes, I have router and web server in one box. So I want that outgoing/incoming office traffic and web servers traffic would be with the high priority.
In what place of iptables this htb traffic control is handled? My rules are ok when I set the same rate and ceil.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 5 lines · Jonas Jasas
Quoted 1 line · Dmytro O. Redchuk
The problem is that eth0 is connected to Internet?
Yes it is connected to internet, but what is the difference if it is connected to internet or LAN?
Quoted 7 lines
Quoted 1 line
Do you really want to shape outgoing (ACK?) packets?
Yes, I have router and web server in one box. So I want that outgoing/incoming office traffic and web servers traffic would be with the high priority.
In what place of iptables this htb traffic control is handled? My rules are ok when I set the same rate and ceil.
Then, sorry, I didn't understand which traffic you would like to control and in which way. And still can not understand.
Can you draw a picture? Let's say, a client (who wants to download), a server (who offers web or ftp services), a box (who should perform a traffic control), thier interfaces...
Signature · 10 lines
_,-=._ /|_/|
`-.} `=._,.-=-._., @ @._,
`._ _,-. ) _,.-'
` G.m-"^m`m' Dmytro O. Redchuk
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc