Linux Commands Examples

A great documentation place for Linux commands


Restore IP Tables

see also : iptables-save - iptables


iptables-restore [-c] [-n]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


iptables-restore < /root/firewall.rules


iptables-restore is used to restore IP Tables from data specified on STDIN. Use I/O redirection provided by your shell to read from a file
, --counters

restore the values of all packet and byte counters

-n, --noflush

don’t flush the previous contents of the table. If not specified, iptables-restore flushes (deletes) all previous contents of the respective IP Table.


None known as of iptables-1.2.1 release

see also

iptables -save"> iptables-save , iptables

The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, which details NAT, and the netfilter-hacking-HOWTO which details the internals.


Harald Welte <laforge[:at:]gnumonks[:dot:]org>

How can this site be more helpful to YOU ?

give  feedback