Displaying 2 results from an estimated 2 matches for "102400kbps".
2006 Jun 28
3
Simple Rule to Cap P2P Uploads
...he machine has a single interface to the network: eth0. I tried the following tc lines but it appears to affect both the P2P traffic and my ssh traffic, resulting in a very slow ssh sessions:
tc qdisc add dev eth0 root handle 1: htb default 3
tc class add dev eth0 parent 1: classid 1:1 htb rate 102400kbps ceil 102400kbps
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 102400kbps ceil 102400kbps
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 3kbps ceil 3kbps
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 22 0xffff flowid 1:2
Any ideas? Thanks for your time....
2006 Jun 29
0
Matching outgoing ssh traffic if ssh connection initiated from outside
In regards to my earlier post, I believe that my problem is that the filter is not matching ssh traffic properly. Here are the rules that I posted earlier, with the filter being the last one:
tc qdisc add dev eth0 root handle 1: htb default 3
tc class add dev eth0 parent 1: classid 1:1 htb rate 102400kbps ceil 102400kbps
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 102400kbps ceil 102400kbps
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 3kbps ceil 3kbps
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 22 0xffff flowid 1:2
The rules are on Machine A and Machin...