Ubuntu Linux Save / Restore Iptables Rules
Iwant to make changes to an iptables configuration. How to do I Save and Restore an iptables Configuration in Ubuntu Linux server?
If you want to make changes to an iptables configuration, it is always good idea to save the current configuration by typing the following commands:
Now, you can make any changes using command line.
If you want to make changes to an iptables configuration, it is always good idea to save the current configuration by typing the following commands:
$ sudo -s
$ iptables-save > /root/working.iptables.rules
Now, you can make any changes using command line.
To restore it use the command iptables-restore, enter:
# iptables-restore < /root/working.iptables.rules
No hay comentarios:
Publicar un comentario