add firewall rulesets for demonreach.asininetech.net.
This commit is contained in:
parent
ab7979ce01
commit
e86367ed83
@ -0,0 +1,16 @@
|
||||
*filter
|
||||
:INPUT DROP
|
||||
:FORWARD ACCEPT
|
||||
:OUTPUT ACCEPT
|
||||
:POSTROUTING ACCEPT
|
||||
-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
||||
-A INPUT -i lo -j ACCEPT
|
||||
-A INPUT -p icmp --icmp-type ping -j ACCEPT
|
||||
-A INPUT -p tcp --dport 22 -j ACCEPT
|
||||
-A INPUT -p tcp --dport 5665 -j ACCEPT
|
||||
-A INPUT -p tcp --dport 9001 -j ACCEPT
|
||||
-A INPUT -p tcp -m multiport --dports 5269,5222 -j ACCEPT
|
||||
-A INPUT -p udp --dport 1194 -j ACCEPT
|
||||
-A INPUT -p udp --dport 53 -s 10.8.0.1/24 -j ACCEPT
|
||||
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
|
||||
COMMIT
|
@ -0,0 +1,21 @@
|
||||
*filter
|
||||
:INPUT DROP
|
||||
:FORWARD ACCEPT
|
||||
:OUTPUT ACCEPT
|
||||
:icmp_in -
|
||||
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A INPUT -i lo -j ACCEPT
|
||||
-A INPUT -p tcp --dport 22 -j ACCEPT
|
||||
-A INPUT -p tcp --dport 5665 -j ACCEPT
|
||||
-A INPUT -p tcp --dport 9001 -j ACCEPT
|
||||
-A INPUT -p tcp -m multiport --dports 5269,5222 -j ACCEPT
|
||||
-A INPUT -p ipv6-icmp -j icmp_in
|
||||
-A icmp_in -p ipv6-icmp -m icmp6 --icmpv6-type 128 -j ACCEPT
|
||||
-A icmp_in -p ipv6-icmp -m icmp6 --icmpv6-type 134 -j ACCEPT
|
||||
-A icmp_in -p ipv6-icmp -m icmp6 --icmpv6-type 135 -j ACCEPT
|
||||
-A icmp_in -p ipv6-icmp -m icmp6 --icmpv6-type 136 -j ACCEPT
|
||||
-A icmp_in -p ipv6-icmp -m icmp6 --icmpv6-type 1 -j ACCEPT
|
||||
-A icmp_in -p ipv6-icmp -m icmp6 --icmpv6-type 2 -j ACCEPT
|
||||
-A icmp_in -p ipv6-icmp -m icmp6 --icmpv6-type 3 -j ACCEPT
|
||||
-A icmp_in -p ipv6-icmp -m icmp6 --icmpv6-type 4 -j ACCEPT
|
||||
COMMIT
|
Loading…
Reference in New Issue
Block a user