{
    "mode": "man",
    "parameter": "tc-xt",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/tc-xt/8/json",
    "generated": "2026-05-30T07:09:31Z",
    "synopsis": "tc ... action xt -j TARGET [ TARGETOPTS ]",
    "sections": {
        "NAME": {
            "content": "xt - tc iptables action\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "tc ... action xt -j TARGET [ TARGETOPTS ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  xt action allows to call arbitrary iptables targets for packets matching the filter this\naction is attached to.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-j",
                    "content": "Perform a jump to the given iptables target, optionally passing  any  target  specific\noptions in TARGETOPTS.\n",
                    "flag": "-j"
                }
            ]
        },
        "EXAMPLES": {
            "content": "The  following  will attach a u32 filter to the ingress qdisc matching ICMP replies and using\nthe xt action to make the kernel yell 'PONG' each time:\n\ntc qdisc add dev eth0 ingress\ntc filter add dev eth0 parent ffff: proto ip u32 \\\nmatch ip protocol 1 0xff \\\nmatch ip icmptype 0 0xff \\\naction xt -j LOG --log-prefix PONG\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "tc(8), tc-u32(8), iptables-extensions(8)\n\n\n\niproute2                                     3 Mar 2016                     iptables action in tc(8)",
            "subsections": []
        }
    },
    "summary": "xt - tc iptables action",
    "flags": [
        {
            "flag": "-j",
            "long": null,
            "arg": null,
            "description": "Perform a jump to the given iptables target, optionally passing any target specific options in TARGETOPTS."
        }
    ],
    "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 icmptype 0 0xff \\",
        "action xt -j LOG --log-prefix PONG"
    ],
    "see_also": [
        {
            "name": "tc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tc/8/json"
        },
        {
            "name": "tc-u32",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tc-u32/8/json"
        },
        {
            "name": "iptables-extensions",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/iptables-extensions/8/json"
        },
        {
            "name": "tc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tc/8/json"
        }
    ]
}