ip6tables-restore
Restore IPv6 Tables
see also :
ip6tables-save - ip6tables
Synopsis
ip6tables-restore
[-c] [-n]
add an example, a script, a trick and tips
examples
source
[ "$IFACE"
= "lo"
] || exit 0
ip6tables-restore < /etc/network/ip6tables
source
for table in $(cat
/proc/net/ip6_tables_names); do
ip6tables-restore <
/var/lib/iptables/empty-$table.rules
[ $? -gt 0
] &&
fail=1
done
description
ip6tables-restore
is used to restore IPv6 Tables from data specified on STDIN.
Use I/O redirection provided by your shell to read from a
file
-c, --counters
restore the values of all
packet and byte counters
-n,
--noflush
don’t flush the previous contents of the table. If not
specified,
ip6tables-restore
flushes (deletes) all previous contents of the respective
IPv6 Table.
bugs
None known as
of iptables-1.2.1 release
see also
ip6tables -save"> ip6tables-save ,
ip6tables
The
iptables-HOWTO, which details more iptables usage, the
NAT-HOWTO, which details NAT, and the
netfilter-hacking-HOWTO which details the internals.
authors
Harald Welte
<laforge[:at:]gnumonks[:dot:]org>
Andras Kis-Szabo <kisza[:at:]sch.bme[:dot:]hu>