14 lines
334 B
Plaintext
14 lines
334 B
Plaintext
*filter
|
|
:INPUT DROP [0:0]
|
|
:FORWARD DROP [0:0]
|
|
:OUTPUT ACCEPT [0:0]
|
|
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
|
-A INPUT -i lo -j ACCEPT
|
|
# Ping
|
|
-A INPUT -p icmp -j ACCEPT
|
|
# SSH
|
|
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
|
|
# SNMPD
|
|
-A INPUT -p udp -m udp --dport 161 -m state --state NEW -j ACCEPT
|
|
COMMIT
|