[caclmgrd] Filter DHCP packets based on dest port only (#4995)
This commit is contained in:
parent
a37a7d3dcf
commit
cf142e7e6c
@ -284,12 +284,12 @@ class ControlPlaneAclManager(object):
|
|||||||
iptables_cmds.append("ip6tables -A INPUT -p icmpv6 --icmpv6-type router-advertisement -j ACCEPT")
|
iptables_cmds.append("ip6tables -A INPUT -p icmpv6 --icmpv6-type router-advertisement -j ACCEPT")
|
||||||
|
|
||||||
# Add iptables/ip6tables commands to allow all incoming IPv4 DHCP packets
|
# Add iptables/ip6tables commands to allow all incoming IPv4 DHCP packets
|
||||||
iptables_cmds.append("iptables -A INPUT -p udp --dport 67:68 --sport 67:68 -j ACCEPT")
|
iptables_cmds.append("iptables -A INPUT -p udp --dport 67:68 -j ACCEPT")
|
||||||
iptables_cmds.append("ip6tables -A INPUT -p udp --dport 67:68 --sport 67:68 -j ACCEPT")
|
iptables_cmds.append("ip6tables -A INPUT -p udp --dport 67:68 -j ACCEPT")
|
||||||
|
|
||||||
# Add iptables/ip6tables commands to allow all incoming IPv6 DHCP packets
|
# Add iptables/ip6tables commands to allow all incoming IPv6 DHCP packets
|
||||||
iptables_cmds.append("iptables -A INPUT -p udp --dport 546:547 --sport 546:547 -j ACCEPT")
|
iptables_cmds.append("iptables -A INPUT -p udp --dport 546:547 -j ACCEPT")
|
||||||
iptables_cmds.append("ip6tables -A INPUT -p udp --dport 546:547 --sport 546:547 -j ACCEPT")
|
iptables_cmds.append("ip6tables -A INPUT -p udp --dport 546:547 -j ACCEPT")
|
||||||
|
|
||||||
# Add iptables/ip6tables commands to allow all incoming BGP traffic
|
# Add iptables/ip6tables commands to allow all incoming BGP traffic
|
||||||
# TODO: Determine BGP ACLs based on configured device sessions, and remove this blanket acceptance
|
# TODO: Determine BGP ACLs based on configured device sessions, and remove this blanket acceptance
|
||||||
|
Loading…
Reference in New Issue
Block a user