96 lines
2.2 KiB
HTML
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"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
xt - tc iptables action
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
<BR>
|
|
|
|
<B>tc</B> ... <B>action xt -j</B>
|
|
|
|
<I>TARGET</I> [ <I>TARGET_OPTS</I> ]
|
|
|
|
<A NAME="lbAD"> </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"> </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"> </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> </TT>match ip protocol 1 0xff \<BR>
|
|
<TT> </TT>match ip icmp_type 0 0xff \<BR>
|
|
<TT> </TT>action xt -j LOG --log-prefix PONG<BR>
|
|
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </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"> </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>
|