@@ -4,37 +4,37 @@ policing on linux. It tries to use best practices whenever possible while still
44being generic and easy to use. The script is using HTB with fq_codel to do
55the heavy lifting.
66
7- Run tc-gen.sh without parameters to see more details.
7+ Run tc-gen without parameters to see more details.
88
99## Examples of common use
1010Shape egress to 25 mbit/s
1111
12- tc-gen.sh -i eth0 -u 25
12+ tc-gen -i eth0 -u 25
1313Shape egress to 5 mbit/s and ingress to 10 mbit/s using IFB-interface
1414
15- tc-gen.sh -i eth0 -u 5 -d 10 -f ifb0
15+ tc-gen -i eth0 -u 5 -d 10 -f ifb0
1616Shape egress to 1500 kbit/s and police ingress to 20 mbit/s
1717
18- tc-gen.sh -i eth0 -u 1500k -d 20M
18+ tc-gen -i eth0 -u 1500k -d 20M
1919Display current configuration
2020
21- tc-gen.sh -i eth0
21+ tc-gen -i eth0
2222Remove configuration
2323
24- tc-gen.sh -i eth0 -x
24+ tc-gen -i eth0 -x
2525
2626## /etc/network/interfaces examples
2727 # Simple DHCP WAN config
2828 allow-auto eth1
2929 iface eth1 inet dhcp
30- post-up /usr/local/bin/tc-gen.sh -i ${IFACE} -u 10 -d 100 -f ifb0
30+ post-up /usr/local/bin/tc-gen -i ${IFACE} -u 10 -d 100 -f ifb0
3131
3232 # More advanced example with an additional tc filter exclude for
3333 # UDP-encapsulated IPsec ESP-traffic to avoid double counting IPsec data on
3434 # ingress
3535 allow-auto bond0.12
3636 iface bond0.12 inet dhcp
37- post-up /usr/local/bin/tc-gen.sh -i ${IFACE} -u 10 -d 100 -f ifb0
37+ post-up /usr/local/bin/tc-gen -i ${IFACE} -u 10 -d 100 -f ifb0
3838 post-up /sbin/tc filter add dev ${IFACE} parent ffff: protocol ip prio 1 u32 match ip protocol 17 0xff match ip dport 4500 0xffff action pass
3939
4040 # Example with egress shaping on gre-tunnel
@@ -46,4 +46,4 @@ Remove configuration
4646 endpoint 10.1.2.2
4747 mode gre
4848 mtu 1400
49- post-up /usr/local/bin/tc-gen.sh -i ${IFACE} -u 25
49+ post-up /usr/local/bin/tc-gen -i ${IFACE} -u 25
0 commit comments