23 lines
852 B
Plaintext
23 lines
852 B
Plaintext
*filter
|
|
:INPUT DROP
|
|
:FORWARD DROP
|
|
:OUTPUT DROP
|
|
-A INPUT -m set --match-set nasties src -j DROP
|
|
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
|
-A INPUT -i lo -j ACCEPT
|
|
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
|
|
-A INPUT -p tcp -m multiport --dports 80,443 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 5665 -j ACCEPT
|
|
-A INPUT -p tcp -m tcp --dport 4949 -j ACCEPT
|
|
-A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
|
-A OUTPUT -o lo -j ACCEPT
|
|
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
|
|
-A OUTPUT -p tcp -m multiport --dports 80,443 -j ACCEPT
|
|
-A OUTPUT -p udp -m udp --dport 53 -j ACCEPT
|
|
-A OUTPUT -p tcp -m tcp --dport 53 -j ACCEPT
|
|
-A OUTPUT -p tcp -m tcp --dport 587 -j ACCEPT
|
|
-A OUTPUT -p tcp -m tcp --dport 5665 -j ACCEPT
|
|
-A OUTPUT -p tcp -m tcp --dport 25 -j ACCEPT
|
|
COMMIT
|