Mirror/redirect action in tc(8) Linux Mirror/redirect action in tc(8) (NAME) tc-mirred - (SYNOPSIS) tc ... action mirred DIRECTION ACTION [ index INDEX ] TARGET DIRECTION := { ingress | egress } TARGET := { DEV | BLOCK } DEV := dev DEVICENAME BLOCK := blockid BLOCKID ACTION := { mirror | redirect } (DESCRIPTION) mirred ( ) ( stealing) . Switch Port Analyzer (SPAN) . tc ( tc ). N - 1 ( ). (OPTIONS) ingress egress . mirror redirect (mirror) (redirect). index INDEX . INDEX . dev DEVICENAME . blockid BLOCKID tc . (EXAMPLES) eth0 1mbit/s lo : # tc qdisc add dev eth0 handle ffff: clsact # tc filter add dev eth0 ingress u32 \ match u32 0 0 \ action police rate 1mbit burst 100k conform-exceed pipe \ action mirred egress redirect dev lo ICMP eth0 dummy tcpdump: # ip link add dummy0 type dummy # ip link set dummy0 up # tc qdisc add dev eth0 handle ffff: clsact # tc filter add dev eth0 ingress protocol ip \ u32 match ip protocol 1 0xff \ action mirred egress mirror dev dummy0 ifb sfq : # modprobe ifb # ip link set ifb0 up # tc qdisc add dev ifb0 root sfq # tc qdisc add dev eth0 handle ffff: clsact # tc filter add dev eth0 ingress u32 \ match u32 0 0 \ action mirred egress redirect dev ifb0 (LIMITATIONS) . IFB . IFB . ifbX->ifbY . (SEE ALSO) tc(8), tc-u32(8) iproute2 11 Jan 2015 Mirror/redirect action in tc(8)