Skip to content

Commit f6ea036

Browse files
authored
caclmgrd: Don't block traffic to mgmt by default
*Currently the IP2ME rules block the management interface's identity address instead of the actual host address. This logic results in a DROP rule that hits the management interface address only in the case of /32 netmask - all other netmasks will result in traffic being accepted by default. Thus, it is exceedingly likely that the current DROP rule has never worked for management interfaces given that /32 are mainly loopback addresses, not for network links.
2 parents 06ff918 + a712fc4 commit f6ea036

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

scripts/caclmgrd

-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ class ControlPlaneAclManager(daemon_base.DaemonBase):
215215
def generate_block_ip2me_traffic_iptables_commands(self, namespace):
216216
INTERFACE_TABLE_NAME_LIST = [
217217
"LOOPBACK_INTERFACE",
218-
"MGMT_INTERFACE",
219218
"VLAN_INTERFACE",
220219
"PORTCHANNEL_INTERFACE",
221220
"INTERFACE"

tests/caclmgrd/test_ip2me_vectors.py

-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"FEATURE": {},
2525
},
2626
"return": [
27-
"iptables -A INPUT -d 172.18.0.0/32 -j DROP"
2827
],
2928
},
3029
],
@@ -55,7 +54,6 @@
5554
},
5655
"return": [
5756
"iptables -A INPUT -d 10.10.10.10/32 -j DROP",
58-
"iptables -A INPUT -d 172.18.0.0/32 -j DROP",
5957
"iptables -A INPUT -d 10.10.11.10/32 -j DROP",
6058
"iptables -A INPUT -d 10.10.12.10/32 -j DROP",
6159
],
@@ -83,7 +81,6 @@
8381
"FEATURE": {},
8482
},
8583
"return": [
86-
"iptables -A INPUT -d 172.18.0.0/32 -j DROP",
8784
"iptables -A INPUT -d 10.10.11.1/32 -j DROP",
8885
],
8986
},
@@ -117,7 +114,6 @@
117114
},
118115
"return": [
119116
"ip6tables -A INPUT -d 2001:db8:10::/128 -j DROP",
120-
"ip6tables -A INPUT -d 2001:db8:200::/128 -j DROP",
121117
"ip6tables -A INPUT -d 2001:db8:11::1/128 -j DROP",
122118
"ip6tables -A INPUT -d 2001:db8:12::/128 -j DROP",
123119
"ip6tables -A INPUT -d 2001:db8:13::/128 -j DROP"

0 commit comments

Comments
 (0)