man-pages/man8/tc-xt.8.html
2021-03-31 01:06:50 +01:00

96 lines
2.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of iptables action in tc</TITLE>
</HEAD><BODY>
<H1>iptables action in tc</H1>
Section: Linux (8)<BR>Updated: 3 Mar 2016<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<P>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
xt - tc iptables action
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<BR>
<B>tc</B> ... <B>action xt -j</B>
<I>TARGET</I> [ <I>TARGET_OPTS</I> ]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The
<B>xt</B>
action allows to call arbitrary iptables targets for packets matching the filter
this action is attached to.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-j</B><I> TARGET </I>[<I> TARGET_OPTS </I>]
<DD>
Perform a jump to the given iptables target, optionally passing any target
specific options in
<I>TARGET_OPTS</I>.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLES</H2>
The following will attach a
<B>u32</B>
filter to the
<B>ingress</B>
qdisc matching ICMP replies and using the
<B>xt</B>
action to make the kernel yell 'PONG' each time:
<P>
<DL COMPACT><DT id="2"><DD>
tc qdisc add dev eth0 ingress
tc filter add dev eth0 parent ffff: proto ip u32 \
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT>match ip protocol 1 0xff \<BR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT>match ip icmp_type 0 0xff \<BR>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT>action xt -j LOG --log-prefix PONG<BR>
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+tc">tc</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+tc-u32">tc-u32</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+iptables-extensions">iptables-extensions</A></B>(8)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="6"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="7"><A HREF="#lbAF">EXAMPLES</A><DD>
<DT id="8"><A HREF="#lbAG">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:18 GMT, March 31, 2021
</BODY>
</HTML>