Hello ,
I'm going to make my server available from the outside. I would like to use iptables for more security.
However, I don't want to use the graphical interface because I already have my own set of rules. Is that possible?
I thought I would carry out these steps :
- Create a bash script
- Insert iptables-restore < /etc/iptables.rules , then include my iptables rules.
- Move the iptables script to /etc/network/if-pre-up.d/
- sudo chmod +x /etc/network/if-pre-up.d/iptables
- Reboot
Is that correct? Is there another procedure?