iptables -I INPUT 6 -p tcp --dport 2222 -j ACCEPTwhere 6 specifies the position in the chain (1-based) to insert the rule.iptables -P INPUT DROPThat way any rules you may add in the future will automatically be applied before packets are dropped. (If you decide to use Firewall Builder, its default rule set will set the chain policy to DROP)Posted By: joek168i'm on CentOS and the tutorial has you add the commands individually. how do I add commands like
*filter
:INPUT DROP [0:0]
a quick look at firewall builder look daunting...
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [10034635:10151550141]would beiptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPTPosted By: RossHActually that is just the default iptables config file save format....