Skip to content

Commit cf142e7

Browse files
jlevequelguohan
authored andcommitted
[caclmgrd] Filter DHCP packets based on dest port only (#4995)
1 parent a37a7d3 commit cf142e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

files/image_config/caclmgrd/caclmgrd

+4-4
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,12 @@ class ControlPlaneAclManager(object):
284284
iptables_cmds.append("ip6tables -A INPUT -p icmpv6 --icmpv6-type router-advertisement -j ACCEPT")
285285

286286
# Add iptables/ip6tables commands to allow all incoming IPv4 DHCP packets
287-
iptables_cmds.append("iptables -A INPUT -p udp --dport 67:68 --sport 67:68 -j ACCEPT")
288-
iptables_cmds.append("ip6tables -A INPUT -p udp --dport 67:68 --sport 67:68 -j ACCEPT")
287+
iptables_cmds.append("iptables -A INPUT -p udp --dport 67:68 -j ACCEPT")
288+
iptables_cmds.append("ip6tables -A INPUT -p udp --dport 67:68 -j ACCEPT")
289289

290290
# Add iptables/ip6tables commands to allow all incoming IPv6 DHCP packets
291-
iptables_cmds.append("iptables -A INPUT -p udp --dport 546:547 --sport 546:547 -j ACCEPT")
292-
iptables_cmds.append("ip6tables -A INPUT -p udp --dport 546:547 --sport 546:547 -j ACCEPT")
291+
iptables_cmds.append("iptables -A INPUT -p udp --dport 546:547 -j ACCEPT")
292+
iptables_cmds.append("ip6tables -A INPUT -p udp --dport 546:547 -j ACCEPT")
293293

294294
# Add iptables/ip6tables commands to allow all incoming BGP traffic
295295
# TODO: Determine BGP ACLs based on configured device sessions, and remove this blanket acceptance

0 commit comments

Comments
 (0)