xl a révisé ce gist 8 months ago. Aller à la révision
1 file changed, 3 insertions, 3 deletions
limiting interface throughput.md
| @@ -5,7 +5,7 @@ tc class add dev {interface} parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |||
| 5 | 5 | tc class add dev {interface} parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 6 | 6 | tc class add dev {interface} parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 7 | 7 | ||
| 8 | - | iptables -t mangle -A POSTROUTING -o {interface} -d {ip.add.re.ss} -j CLASSIFY --set-class 1:50 | |
| 9 | - | iptables -t mangle -A POSTROUTING -o {interface} -d {ip.add.re.ss} -j CLASSIFY --set-class 1:100 | |
| 10 | - | iptables -t mangle -A POSTROUTING -o {interface} -d {ip.add.re.ss} -j CLASSIFY --set-class 1:500 | |
| 8 | + | iptables -t mangle -A POSTROUTING -o {interface} -d {ip} -j CLASSIFY --set-class 1:50 | |
| 9 | + | iptables -t mangle -A POSTROUTING -o {interface} -d {ip} -j CLASSIFY --set-class 1:100 | |
| 10 | + | iptables -t mangle -A POSTROUTING -o {interface} -d {ip} -j CLASSIFY --set-class 1:500 | |
| 11 | 11 | ``` | |
xl a révisé ce gist 8 months ago. Aller à la révision
1 file changed, 3 insertions, 3 deletions
limiting interface throughput.md
| @@ -5,7 +5,7 @@ tc class add dev {interface} parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |||
| 5 | 5 | tc class add dev {interface} parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 6 | 6 | tc class add dev {interface} parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 7 | 7 | ||
| 8 | - | iptables -t mangle -A POSTROUTING -o {interface} -d 192.168.20.199 -j CLASSIFY --set-class 1:50 | |
| 9 | - | iptables -t mangle -A POSTROUTING -o {interface} -d 192.168.20.200 -j CLASSIFY --set-class 1:100 | |
| 10 | - | iptables -t mangle -A POSTROUTING -o {interface} -d 192.168.20.201 -j CLASSIFY --set-class 1:500 | |
| 8 | + | iptables -t mangle -A POSTROUTING -o {interface} -d {ip.add.re.ss} -j CLASSIFY --set-class 1:50 | |
| 9 | + | iptables -t mangle -A POSTROUTING -o {interface} -d {ip.add.re.ss} -j CLASSIFY --set-class 1:100 | |
| 10 | + | iptables -t mangle -A POSTROUTING -o {interface} -d {ip.add.re.ss} -j CLASSIFY --set-class 1:500 | |
| 11 | 11 | ``` | |
xl a révisé ce gist 8 months ago. Aller à la révision
1 file changed, 7 insertions, 7 deletions
limiting interface throughput.md
| @@ -1,11 +1,11 @@ | |||
| 1 | 1 | limiting interface throughput using htb | |
| 2 | 2 | ```sh | |
| 3 | - | tc qdisc add dev eno4 root handle 1: htb | |
| 4 | - | tc class add dev eno4 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
| 5 | - | tc class add dev eno4 parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 6 | - | tc class add dev eno4 parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 3 | + | tc qdisc add dev {interface} root handle 1: htb | |
| 4 | + | tc class add dev {interface} parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
| 5 | + | tc class add dev {interface} parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 6 | + | tc class add dev {interface} parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 7 | 7 | ||
| 8 | - | iptables -t mangle -A POSTROUTING -o eno4 -d 192.168.20.199 -j CLASSIFY --set-class 1:50 | |
| 9 | - | iptables -t mangle -A POSTROUTING -o eno4 -d 192.168.20.200 -j CLASSIFY --set-class 1:100 | |
| 10 | - | iptables -t mangle -A POSTROUTING -o eno4 -d 192.168.20.201 -j CLASSIFY --set-class 1:500 | |
| 8 | + | iptables -t mangle -A POSTROUTING -o {interface} -d 192.168.20.199 -j CLASSIFY --set-class 1:50 | |
| 9 | + | iptables -t mangle -A POSTROUTING -o {interface} -d 192.168.20.200 -j CLASSIFY --set-class 1:100 | |
| 10 | + | iptables -t mangle -A POSTROUTING -o {interface} -d 192.168.20.201 -j CLASSIFY --set-class 1:500 | |
| 11 | 11 | ``` | |
xl a révisé ce gist 8 months ago. Aller à la révision
1 file changed, 4 insertions, 7 deletions
limiting interface throughput.md
| @@ -5,10 +5,7 @@ tc class add dev eno4 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |||
| 5 | 5 | tc class add dev eno4 parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 6 | 6 | tc class add dev eno4 parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 7 | 7 | ||
| 8 | - | tc qdisc add dev eno3 root handle 1: htb | |
| 9 | - | tc class add dev eno3 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
| 10 | - | tc class add dev eno3 parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 11 | - | tc class add dev eno3 parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 12 | - | ||
| 13 | - | iptables -t mangle -A POSTROUTING -o vlan20 -d 192.168.20.199 -j CLASSIFY --set-class 1:50 | |
| 14 | - | iptables -t mangle -A POSTROUTING -o vlan20 -d 192.168.20.199 -j CLASSIFY --set-class 1:100 | |
| 8 | + | iptables -t mangle -A POSTROUTING -o eno4 -d 192.168.20.199 -j CLASSIFY --set-class 1:50 | |
| 9 | + | iptables -t mangle -A POSTROUTING -o eno4 -d 192.168.20.200 -j CLASSIFY --set-class 1:100 | |
| 10 | + | iptables -t mangle -A POSTROUTING -o eno4 -d 192.168.20.201 -j CLASSIFY --set-class 1:500 | |
| 11 | + | ``` | |
xl a révisé ce gist 9 months ago. Aller à la révision
1 file changed, 1 insertion, 1 deletion
limiting interface throughput.md
| @@ -1,4 +1,4 @@ | |||
| 1 | - | limiting interface throughput | |
| 1 | + | limiting interface throughput using htb | |
| 2 | 2 | ```sh | |
| 3 | 3 | tc qdisc add dev eno4 root handle 1: htb | |
| 4 | 4 | tc class add dev eno4 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
xl a révisé ce gist 10 months ago. Aller à la révision
1 file changed, 2 insertions, 2 deletions
limiting interface throughput.md
| @@ -1,5 +1,5 @@ | |||
| 1 | - | ###### Limiting interface throughput | |
| 2 | - | ```bash | |
| 1 | + | limiting interface throughput | |
| 2 | + | ```sh | |
| 3 | 3 | tc qdisc add dev eno4 root handle 1: htb | |
| 4 | 4 | tc class add dev eno4 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
| 5 | 5 | tc class add dev eno4 parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
xl a révisé ce gist 10 months ago. Aller à la révision
1 file changed, 1 insertion, 1 deletion
limiting interface throughput.md
| @@ -1,4 +1,4 @@ | |||
| 1 | - | ###### limiting throughput | |
| 1 | + | ###### Limiting interface throughput | |
| 2 | 2 | ```bash | |
| 3 | 3 | tc qdisc add dev eno4 root handle 1: htb | |
| 4 | 4 | tc class add dev eno4 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
xl a révisé ce gist 10 months ago. Aller à la révision
1 file changed, 1 insertion, 1 deletion
limiting interface throughput.md
| @@ -1,4 +1,4 @@ | |||
| 1 | - | limiting throughput | |
| 1 | + | ###### limiting throughput | |
| 2 | 2 | ```bash | |
| 3 | 3 | tc qdisc add dev eno4 root handle 1: htb | |
| 4 | 4 | tc class add dev eno4 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
xl a révisé ce gist 10 months ago. Aller à la révision
1 file changed, 7 insertions, 4 deletions
limiting interface throughput renommé en limiting interface throughput.md
| @@ -1,11 +1,14 @@ | |||
| 1 | + | limiting throughput | |
| 2 | + | ```bash | |
| 1 | 3 | tc qdisc add dev eno4 root handle 1: htb | |
| 4 | + | tc class add dev eno4 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
| 2 | 5 | tc class add dev eno4 parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 3 | 6 | tc class add dev eno4 parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 7 | + | ||
| 4 | 8 | tc qdisc add dev eno3 root handle 1: htb | |
| 9 | + | tc class add dev eno3 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
| 5 | 10 | tc class add dev eno3 parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 6 | 11 | tc class add dev eno3 parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 7 | - | iptables -t mangle -A POSTROUTING -o vlan20 -d 192.168.20.199 -j CLASSIFY --set-class 1:100 | |
| 8 | - | tc class add dev eno3 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
| 9 | - | tc class add dev eno4 parent 1: classid 1:50 htb rate 50mbit ceil 50mbit | |
| 10 | - | iptables -t mangle -D POSTROUTING -o vlan20 -d 192.168.20.199 -j CLASSIFY --set-class 1:500 | |
| 12 | + | ||
| 11 | 13 | iptables -t mangle -A POSTROUTING -o vlan20 -d 192.168.20.199 -j CLASSIFY --set-class 1:50 | |
| 14 | + | iptables -t mangle -A POSTROUTING -o vlan20 -d 192.168.20.199 -j CLASSIFY --set-class 1:100 | |
xl a révisé ce gist 10 months ago. Aller à la révision
1 file changed, 1 insertion, 1 deletion
limiting interface throughput
| @@ -1,4 +1,4 @@ | |||
| 1 | - | `tc qdisc add dev eno4 root handle 1: htb` | |
| 1 | + | tc qdisc add dev eno4 root handle 1: htb | |
| 2 | 2 | tc class add dev eno4 parent 1: classid 1:100 htb rate 100mbit ceil 100mbit | |
| 3 | 3 | tc class add dev eno4 parent 1: classid 1:500 htb rate 500mbit ceil 500mbit | |
| 4 | 4 | tc qdisc add dev eno3 root handle 1: htb | |