#1  
Old 13th May 2005, 17:00
leon leon is offline
Junior Member
 
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default iptables

Is it possible to save working iptables firewall rules to a file and use them on another machine?
Reply With Quote
  #2  
Old 19th May 2005, 11:33
peter peter is offline
Junior Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:31.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th