Ubuntu and Firewall Rules
Written by:
Will Kruss
on
31 May 2016 03:10 PM
|
|
With Ubuntu it's important to know how to set your iptables configuration to work at startup. Know the Ubuntu & Firewall Rules. With Ubuntu it's important to know how to set your iptables configuration to work at startup. To do this first create your iptables rules (never use iptables -F to flush your rules or you will most likely lock yourself out of your SSH session): iptables -P INPUT ACCEPT This will enable the common ports required and make your changes live. However, on startup they will be lost again. You should now follow the 'Configuration on startup' instructions found on the Ubuntu help page: https://help.ubuntu.com/community/IptablesHowTo This will help you setup your iptables rules file and make it run when your VPS starts up. | |
|