Discussion in 'Installation/Configuration' started by leon, May 13, 2005.

  1. leon

    leon New Member

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

    peter New Member

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

    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:

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

Share This Page