/* * * An attempt to replicate the configuration of the traffic control on * diglossia * */ #include "fields.tc" #include "ports.tc" #define OUTSIDE ppp0 #define INSIDE eth0 dev INSIDE { htb { class ( rate 1544kbps, ceil 1544kbps ) if ip_proto == IPPROTO_TCP { class ( rate 128kbps, ceil 512kbps ) \ if tcp_dport == 22 && ip_tos_delay == 1 { sfq ( perturb 10s ); } class ( rate 512kbps, ceil 1544kbps ) \ if tcp_dport == 25 || tcp_dport == 80 { sfq ( perturb 10s ); } class ( rate 128kbps, ceil 768kbps ) { sfq ( perturb 10s ); } } } }