29 lines
789 B
Plaintext
29 lines
789 B
Plaintext
# Filter
|
|
*filter
|
|
:INPUT DROP [0:0]
|
|
:FORWARD DROP [0:0]
|
|
:OUTPUT ACCEPT [6:359]
|
|
-A INPUT -m conntrack --ctstate INVALID -j DROP
|
|
-A INPUT -i lo -j ACCEPT
|
|
-A INPUT -i tun0 -j ACCEPT
|
|
-A INPUT -p icmp -j ACCEPT
|
|
-A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP
|
|
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
|
|
-A INPUT -i eth1 -p tcp -m tcp --dport 7521 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
|
|
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
|
COMMIT
|
|
# Mangle
|
|
*mangle
|
|
:PREROUTING ACCEPT [8948:5925361]
|
|
:INPUT ACCEPT [8943:5924001]
|
|
:FORWARD ACCEPT [0:0]
|
|
:OUTPUT ACCEPT [10902:1431630]
|
|
:POSTROUTING ACCEPT [10965:1438415]
|
|
COMMIT
|
|
# Raw
|
|
*raw
|
|
:PREROUTING ACCEPT [8948:5925361]
|
|
:OUTPUT ACCEPT [10902:1431630]
|
|
COMMIT
|