2017-07-22 21:44:03 +00:00
|
|
|
# reset defaults
|
|
|
|
iptables -F;
|
|
|
|
iptables -P OUTPUT ACCEPT;
|
|
|
|
iptables -P FORWARD DROP;
|
|
|
|
iptables -P INPUT DROP;
|
|
|
|
|
|
|
|
# maintenance
|
2017-07-23 12:39:48 +00:00
|
|
|
iptables -A INPUT -p tcp --dport 22 -j ACCEPT;
|
2017-07-22 21:44:03 +00:00
|
|
|
|
|
|
|
# accept as INPUT all already ESTABLISHED connections
|
|
|
|
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT;
|