From: Undertaker <agg...@em...> - 2007-02-25 17:44:50
|
I am completely new to this.. I am trying to make simple traffic control.. I have read quite some manuals and posts that i found, but i don't understand much, i think.. My situation is: i have linux server which i am using for firewall for local network.. also on same linux server i have torrentflux for downloading torrents.. What i want to do is to give priority to local clients(2-3 windows machines) for web browsing, pop and smtp, and rest.. I don't won't that torrentflux takes it all , so no other client can't even browse.. my config files: tcfiles:: eth0 1024kbit 256kbit tcclasses:: eth0 1 2*full/10 full 1 tcp-ack,tos-minimize-delay eth0 2 4*full/10 full 2 default eth0 3 4*full/10 95*full/100 3 tcrules:: 1 $FW 0.0.0.0/0 icmp echo-request 1 $FW 0.0.0.0/0 icmp echo-reply 1 0.0.0.0/0 0.0.0.0/0 icmp echo-request 1 0.0.0.0/0 0.0.0.0/0 icmp echo-reply 3 $FW 0.0.0.0/0 tcp - 50000:56000 Last one is for torrentflux. In torrentflux i portrange is 50120-50220.. 50000-56000 i did, becouse i don't know how to define exactly, where torrentflux is connecting to. With netstat -n, i saw, that conections are made 501xx, 502xx and 55xxx, many of them.. I must say that with current config i made, i have quite a speed on clients while torrents are downloading. but still i have some questions: 1) is my config any good 2) what is this(i don't have this in config files, i think..), the sum of packetst i think is sum of all others classes??: class htb 1:1 root rate 256Kbit ceil 256Kbit burst 1531b/8 mpu 0b overhead 0b cburst 1531b/8 mpu 0b overhead 0b level 7 3)when i restart shorewall after a minute, #shorewall show tc returns this: with everything off, i still get something in class 3, why, what is this?? ------------------------------------- shorewall show tc Shorewall-3.2.5 Traffic Control at mango.local - Sun Feb 25 16:24:09 CET 2007 Device eth0: qdisc htb 1: r2q 10 default 12 direct_packets_stat 0 ver 3.17 Sent 5570 bytes 96 pkts (dropped 0, overlimits 0 requeues 0) qdisc ingress ffff: ---------------- Sent 18361 bytes 139 pkts (dropped 0, overlimits 0 requeues 0) qdisc sfq 11: parent 1:11 limit 128p quantum 1514b flows 128/1024 perturb 10sec Sent 162 bytes 3 pkts (dropped 0, overlimits 0 requeues 0) qdisc sfq 12: parent 1:12 limit 128p quantum 1514b flows 128/1024 perturb 10sec Sent 548 bytes 3 pkts (dropped 0, overlimits 0 requeues 0) qdisc sfq 13: parent 1:13 limit 128p quantum 1514b flows 128/1024 perturb 10sec Sent 4860 bytes 90 pkts (dropped 0, overlimits 0 requeues 0) class htb 1:11 parent 1:1 leaf 11: prio 1 quantum 1500 rate 51Kbit ceil 256Kbit burst 1505b/8 mpu 0b overhead 0b cburst 1531b/8 mpu 0b overhead 0b level 0 Sent 162 bytes 3 pkts (dropped 0, overlimits 0 requeues 0) lended: 3 borrowed: 0 giants: 0 tokens: 234195 ctokens: 47488 class htb 1:1 root rate 256Kbit ceil 256Kbit burst 1531b/8 mpu 0b overhead 0b cburst 1531b/8 mpu 0b overhead 0b level 7 Sent 5570 bytes 96 pkts (dropped 0, overlimits 0 requeues 0) rate 16bit lended: 0 borrowed: 0 giants: 0 tokens: 47488 ctokens: 47488 class htb 1:13 parent 1:1 leaf 13: prio 3 quantum 1500 rate 102Kbit ceil 243Kbit burst 1511b/8 mpu 0b overhead 0b cburst 1529b/8 mpu 0b overhead 0b level 0 Sent 4860 bytes 90 pkts (dropped 0, overlimits 0 requeues 0) rate 14bit lended: 90 borrowed: 0 giants: 0 tokens: 117580 ctokens: 49961 class htb 1:12 parent 1:1 leaf 12: prio 2 quantum 1500 rate 102Kbit ceil 256Kbit burst 1511b/8 mpu 0b overhead 0b cburst 1531b/8 mpu 0b overhead 0b level 0 Sent 548 bytes 3 pkts (dropped 0, overlimits 0 requeues 0) lended: 3 borrowed: 0 giants: 0 tokens: 117580 ctokens: 47488 Device eth1: qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 Sent 298545836777 bytes 208080146 pkts (dropped 0, overlimits 0 requeues 0) Device tun0: qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 Sent 1935125 bytes 7543 pkts (dropped 0, overlimits 0 requeues 0) |