Re: How to "save" the current iptables setup
From: Alex (gromov@colorado.edu)Date: 01/30/02
- Next message: Tony: "Ipchains and MRTG"
- Previous message: Roland Wammers: "cannot restore original file after attack"
- In reply to: Bo Jacobsen: "How to "save" the current iptables setup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Alex" <gromov@colorado.edu> Date: Wed, 30 Jan 2002 14:50:57 -0700
"Bo Jacobsen" <bjc@image.dk> wrote in message
news:QeE58.3136$m6.271559@news000.worldonline.dk...
> Is it possible to save a current iptables setup.
>
> I have a iptables setup that are changed dynamically by a number of
> different scripts.
> I need to be able to save a current setup to a file, with the iptable
> commands and all.
>
> Using iptables -L -n the setup is displayed but i need to have the info
with
> iptables -A INPUT..... commands so I can execute it.
>
> Thanks in advance
> Bo jacobsen bjc@image.dk
Use iptables-save > iptables
iptables would be a text file containing your firewall rulls that can be
interpreted be by iptables-restore. If you're using RH7.x just put iptables
file into /etc/sysconfig and your system would load the rules at boot.
-Alex
- Next message: Tony: "Ipchains and MRTG"
- Previous message: Roland Wammers: "cannot restore original file after attack"
- In reply to: Bo Jacobsen: "How to "save" the current iptables setup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|