Announcement

Collapse
No announcement yet.

How to keep backup of iptables and restore the same?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to keep backup of iptables and restore the same?

    If you want to make changes in iptables configuration, it is always good idea to save the current configuration.

    You can keep the iptables backup by executing the following command from command line interface :

    [email protected] [~]# iptables-save > /root/current.iptables.rules

    Now you can make the changes, as per your requirement.

    In order to restore the previous iptables rules execute the following command :

    [email protected] [~]# iptables-restore < /root/current.iptables.rules

    Done..
Working...
X