tc-xt(8)

tc-xt8

Tc iptables action

Usage

tc action xt -j TARGET [TARGET_OPTS]

Overview

The xt action allows one to call arbitrary iptables targets for packets matching the filter this action is attached to.

Options

-j TARGET [ TARGET_OPTS ]

Perform a jump to the given iptables target, optionally passing any target specific options in TARGET_OPTS.

Examples

The following will attach a u32 filter to the ingress qdisc matching ICMP replies and using the xt action to make the kernel yell 'PONG' each time:

tc qdisc add dev eth0 ingress
tc filter add dev eth0 parent ffff: proto ip u32 \
	match ip protocol 1 0xff \
	match ip icmp_type 0 0xff \
	action xt -j LOG --log-prefix PONG

Releases

4 releases since Debian 9 (Stretch); the text changed 1 time.

  1. 9–11
  2. 12

From iproute2 6.1.0-3 in Debian 12 (Bookworm). Parsed by carta from the page's man source.