opkbrokers.blogg.se

Centos iptables
Centos iptables









centos iptables centos iptables

The first firewall rule you need to add is the following one: sudo iptables -A INPUT -m conntrack -ctstate ESTABLISHED,RELATED -j ACCEPT If there are already some rules that you don’t want to be there you can flush the rules by using the following command: sudo iptables -Fīe careful with this command, especially if the default policy on your INPUT and OUTPUT chains is set to something other than ACCEPT because that could lock you out of your server. If you recently set up your server there will be no IPtables rules and the output should be similar to the one below: Chain INPUT (policy ACCEPT) Connect via SSH and list current IPtablesįirst of all, connect to your Linux VPS via SSH and list the current IPtables rules using the following command: sudo iptables -L Connect via SSH and list current IPtablesġ.











Centos iptables