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

115 lines
3.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of IPTABLES-SAVE</TITLE>
</HEAD><BODY>
<H1>IPTABLES-SAVE</H1>
Section: iptables 1.8.4 (8)<BR>Updated: <BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
iptables-save --- dump iptables rules
<P>
ip6tables-save --- dump iptables rules
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>iptables-save</B> [<B>-M</B> <I>modprobe</I>] [<B>-c</B>]
[<B>-t</B> <I>table</I>] [<B>-f</B> <I>filename</I>]
<P>
<B>ip6tables-save</B> [<B>-M</B> <I>modprobe</I>] [<B>-c</B>]
[<B>-t</B> <I>table</I>] [<B>-f</B> <I>filename</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<B>iptables-save</B>
and
<B>ip6tables-save</B>
are used to dump the contents of IP or IPv6 Table in easily parseable format
either to STDOUT or to a specified file.
<DL COMPACT>
<DT id="1"><B>-M</B>, <B>--modprobe</B> <I>modprobe_program</I><DD>
Specify the path to the modprobe program. By default, iptables-save will
inspect /proc/sys/kernel/modprobe to determine the executable's path.
<DT id="2"><B>-f</B>, <B>--file</B> <I>filename</I><DD>
Specify a filename to log the output to. If not specified, iptables-save
will log to STDOUT.
<DT id="3"><B>-c</B>, <B>--counters</B><DD>
include the current values of all packet and byte counters in the output
<DT id="4"><B>-t</B>, <B>--table</B> <I>tablename</I><DD>
restrict output to only one table. If the kernel is configured with automatic
module loading, an attempt will be made to load the appropriate module for
that table if it is not already there.
<BR>
If not specified, output includes all available tables.
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>BUGS</H2>
None known as of iptables-1.2.1 release
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHORS</H2>
Harald Welte &lt;<A HREF="mailto:laforge@gnumonks.org">laforge@gnumonks.org</A>&gt;
<BR>
Rusty Russell &lt;<A HREF="mailto:rusty@rustcorp.com.au">rusty@rustcorp.com.au</A>&gt;
<BR>
Andras Kis-Szabo &lt;<A HREF="mailto:kisza@sch.bme.hu">kisza@sch.bme.hu</A>&gt; contributed ip6tables-save.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+iptables-apply">iptables-apply</A></B>(8),<B><A HREF="/cgi-bin/man/man2html?8+iptables-restore">iptables-restore</A></B>(8), <B><A HREF="/cgi-bin/man/man2html?8+iptables">iptables</A></B>(8)
<P>
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
which details NAT, and the netfilter-hacking-HOWTO which details the
internals.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="8"><A HREF="#lbAE">BUGS</A><DD>
<DT id="9"><A HREF="#lbAF">AUTHORS</A><DD>
<DT id="10"><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:13 GMT, March 31, 2021
</BODY>
</HTML>