4

Tc: ingress policing and ifb mirroring

view full story
linux-howto

http://serverfault.com – I'm trying to setup traffice shaping on a Linux gateway as written here. The script needs to be customised because I have multiple LAN interfaces. So to shape the LAN side I am planning to create a ifb psedo devise like so: modprobe ifb ip link set dev ifb0 up /sbin/tc qdisc add dev $WAN_INTERFACE ingress /sbin/tc filter add dev $WAN_INTERFACE parent ffff: protocol ip u32 match u32 0 0 action mirred egress redirect dev ifb0 The script from the gist repo mentioned above has these lines: /sbin/tc qdisc add dev $WAN_INTERFACE handle ffff: ingress /sbin/tc filter add dev (HowTos)