Skip to content

Commit 0de25ac

Browse files
Making the ICMP rules more restrict and consistent
- Previous default configuration of routers and vpc routers had ICMP accept on all interfaces We now restrict the ICMP rule to eth0 (routers) eth1 (vpc routers) only
1 parent 1d67ba2 commit 0de25ac

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

systemvm/patches/debian/config/etc/iptables/iptables-dhcpsrvr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ COMMIT
3131
-A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
3232
-A INPUT -i eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
3333
-A INPUT -i eth2 -m state --state RELATED,ESTABLISHED -j ACCEPT
34-
-A INPUT -p icmp -j ACCEPT
34+
-A INPUT -i eth1 -p icmp -j ACCEPT
3535
-A INPUT -i lo -j ACCEPT
3636
-A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT
3737
-A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT

systemvm/patches/debian/config/etc/iptables/iptables-router

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ COMMIT
3131
-A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
3232
-A INPUT -i eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
3333
-A INPUT -i eth2 -m state --state RELATED,ESTABLISHED -j ACCEPT
34-
-A INPUT -p icmp -j ACCEPT
34+
-A INPUT -i eth1 -p icmp -j ACCEPT
3535
-A INPUT -i lo -j ACCEPT
3636
-A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT
3737
-A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT

systemvm/patches/debian/config/etc/iptables/iptables-vpcrouter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ COMMIT
2626
:OUTPUT ACCEPT [0:0]
2727
-A INPUT -d 224.0.0.18/32 -j ACCEPT
2828
-A INPUT -d 225.0.0.50/32 -j ACCEPT
29-
-A INPUT -p icmp -j ACCEPT
29+
-A INPUT -i eth0 -p icmp -j ACCEPT
3030
-A INPUT -i lo -j ACCEPT
3131
-A INPUT -i eth0 -p tcp -m tcp -m state --state NEW,ESTABLISHED --dport 3922 -j ACCEPT
3232
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

0 commit comments

Comments
 (0)