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

132 lines
4.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of IPTABLES-RESTORE</TITLE>
</HEAD><BODY>
<H1>IPTABLES-RESTORE</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-restore --- Restore IP Tables
<P>
ip6tables-restore --- Restore IPv6 Tables
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>iptables-restore</B> [<B>-chntvV</B>] [<B>-w</B> <I>secs</I>]
[<B>-W</B> <I>usecs</I>] [<B>-M</B> <I>modprobe</I>] [<B>-T</B> <I>name</I>]
[<B>file</B>]
<P>
<B>ip6tables-restore</B> [<B>-chntvV</B>] [<B>-w</B> <I>secs</I>]
[<B>-W</B> <I>usecs</I>] [<B>-M</B> <I>modprobe</I>] [<B>-T</B> <I>name</I>]
[<B>file</B>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<B>iptables-restore</B>
and
<B>ip6tables-restore</B>
are used to restore IP and IPv6 Tables from data specified on STDIN or in
<I>file</I>. Use I/O redirection provided by your shell to read from a file or
specify <I>file</I> as an argument.
<DL COMPACT>
<DT id="1"><B>-c</B>, <B>--counters</B><DD>
restore the values of all packet and byte counters
<DT id="2"><B>-h</B>, <B>--help</B><DD>
Print a short option summary.
<DT id="3"><B>-n</B>, <B>--noflush</B><DD>
don't flush the previous contents of the table. If not specified,
both commands flush (delete) all previous contents of the respective table.
<DT id="4"><B>-t</B>, <B>--test</B><DD>
Only parse and construct the ruleset, but do not commit it.
<DT id="5"><B>-v</B>, <B>--verbose</B><DD>
Print additional debug info during ruleset processing.
<DT id="6"><B>-V</B>, <B>--version</B><DD>
Print the program version number.
<DT id="7"><B>-w</B>, <B>--wait</B> [<I>seconds</I>]<DD>
Wait for the xtables lock.
To prevent multiple instances of the program from running concurrently,
an attempt will be made to obtain an exclusive lock at launch. By default,
the program will exit if the lock cannot be obtained. This option will
make the program wait (indefinitely or for optional <I>seconds</I>) until
the exclusive lock can be obtained.
<DT id="8"><B>-W</B>, <B>--wait-interval</B> <I>microseconds</I><DD>
Interval to wait per each iteration.
When running latency sensitive applications, waiting for the xtables lock
for extended durations may not be acceptable. This option will make each
iteration take the amount of time specified. The default interval is
1 second. This option only works with <B>-w</B>.
<DT id="9"><B>-M</B>, <B>--modprobe</B> <I>modprobe_program</I><DD>
Specify the path to the modprobe program. By default, iptables-restore will
inspect /proc/sys/kernel/modprobe to determine the executable's path.
<DT id="10"><B>-T</B>, <B>--table</B> <I>name</I><DD>
Restore only the named table even if the input stream contains other ones.
</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; wrote iptables-restore based on code
from Rusty Russell.
<BR>
Andras Kis-Szabo &lt;<A HREF="mailto:kisza@sch.bme.hu">kisza@sch.bme.hu</A>&gt; contributed ip6tables-restore.
<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-save">iptables-save</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="11"><A HREF="#lbAB">NAME</A><DD>
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="14"><A HREF="#lbAE">BUGS</A><DD>
<DT id="15"><A HREF="#lbAF">AUTHORS</A><DD>
<DT id="16"><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>