HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   iptables (http://www.howtoforge.com/forums/showthread.php?t=86)

leon 13th May 2005 17:00

iptables
 
Is it possible to save working iptables firewall rules to a file and use them on another machine?

peter 19th May 2005 11:33

You can use iptables-save and iptables-restore for it. You can save your firewall rules to a file like that:

Code:

iptables-save > /path/to/iptables.rules
Now you can transfer the file iptables.rules to another machine and setup your firewall there with the same rules as on the first machine:

Code:

iptables-restore < /path/to/iptables.rules
Peter


All times are GMT +2. The time now is 06:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.