![](https://seccdn.libravatar.org/avatar/4e2c3926757c18686414b6cf24e8fb8b.jpg?s=120&d=mm&r=g)
hi all, it would be useful for me to reverse my iptables rules into commands, so they can be installed on boot. does that exist already ? any clues ? best dan
![](https://seccdn.libravatar.org/avatar/1239e04615c816d8bcde90c3584a4fd1.jpg?s=120&d=mm&r=g)
On Mon, 25 Feb 2002 22:08, Dan Am wrote:
hi all, it would be useful for me to reverse my iptables rules into commands, so they can be installed on boot. does that exist already ? any clues ? best
You could try creating a "rule file", with; iptables-save > firewall.rules Then, to re-instate them on boot, execute iptables-restore < firewall.rules somewhere appropriate. -- Jon ------------------------------------------------------------------------- "There are 5.6 billion people in the world, and approximately 400 million installed operating systems. That means 5.2 billion people have yet to choose their operating system, and we have to get to them before Bill does." - Jon "maddog" Hall
![](https://seccdn.libravatar.org/avatar/4e2c3926757c18686414b6cf24e8fb8b.jpg?s=120&d=mm&r=g)
On Monday 25 February 2002 12:18, Jon Biddell wrote:
You could try creating a "rule file", with;
iptables-save > firewall.rules
Then, to re-instate them on boot, execute iptables-restore < firewall.rules somewhere appropriate. Cool, that's what I was looking for
Cheers Dan
participants (2)
-
Dan Am
-
Jon Biddell