38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Filter
|
|
*filter
|
|
:INPUT DROP [17:2112]
|
|
:FORWARD DROP [0:0]
|
|
:OUTPUT ACCEPT [31:3265]
|
|
-A INPUT -m conntrack --ctstate INVALID -j DROP
|
|
-A INPUT -i lo -j ACCEPT
|
|
-A INPUT -i tun0 -j ACCEPT
|
|
-A INPUT -p ipv6-icmp -j ACCEPT
|
|
-A INPUT -i eth1 -p tcp -m tcp --dport 7521 -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 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
|
|
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 2442 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 7777 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 25565 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 64738 -j ACCEPT
|
|
COMMIT
|
|
# Mangle
|
|
*mangle
|
|
:PREROUTING ACCEPT [18:2161]
|
|
:INPUT ACCEPT [18:2161]
|
|
:FORWARD ACCEPT [0:0]
|
|
:OUTPUT ACCEPT [31:3265]
|
|
:POSTROUTING ACCEPT [48:5377]
|
|
-A OUTPUT -j TOS --set-tos 0x10/0xff
|
|
COMMIT
|
|
# Raw electrons
|
|
*raw
|
|
:PREROUTING ACCEPT [18:2161]
|
|
:OUTPUT ACCEPT [31:3265]
|
|
COMMIT
|