Question: How Do I Permanently Add Iptables in Linux?
Contents How Do I Keep Iptables After Reboot? Any Time You Modify Your Rules, Run /Sbin/Iptables-Save > /Etc/Iptables/Rules to Save Them. You Can Also Add That...
Contents
How do I keep iptables after reboot?
Any time you modify your rules, run /sbin/iptables-save > /etc/iptables/rules to save them. You can also add that to the shutdown sequence if you like.
Must Read
How do I enable iptables in Linux?
How to Install and Use Iptables Linux Firewall
- Connect to your server via SSH. If you don’t know, you can read our SSH tutorial.
- Execute the following command one by one: sudo apt-get update sudo apt-get install iptables.
- Check the status of your current iptables configuration by running: sudo iptables -L -v.