setup/clone/utility/default.fw

12 lines
291 B
Plaintext
Raw Normal View History

# reset defaults
iptables -F;
iptables -P OUTPUT ACCEPT;
iptables -P FORWARD DROP;
iptables -P INPUT DROP;
# maintenance
iptables -A INPUT -p tcp --dport 22 -j ACCEPT;
# accept as INPUT all already ESTABLISHED connections
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT;