Stateless Feature of Security Group Not Functioning in Case of other Port same compute use statefull
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Slawek Kaplonski |
Bug Description
From my lab, I tried to apply the stateless securigty group for one port "172.26.9.54" and use hping3 to generate tcp connections and monitor the nf_conntrack number but nothing is effect. After debug in iptables rules, I saw the following syntax error in iptables caused the "no-track" policy to become ineffective:
This output from `iptables-save`:
## The port of the first server use same subnet (Public Subnet of provider) - IP address 172.26.9.97
Line 33: -A neutron-
Line 34: -A neutron-
Line 35: -A neutron-
## The port of the second server use same subnet (Public Subnet of provider) - IP Address 172.26.9.54
Line 52: -A neutron-
Line 53: -A neutron-
Line 54: -A neutron-
tags: | added: firewall group security |
Changed in neutron: | |
assignee: | nobody → Slawek Kaplonski (slaweq) |
Hello Path:
I guess you are using ML2 Linux Bridge (with the iptables firewall). Please, provide the version of OpenStack used. If possible, provide a full dump of iptables, the ports used and the SG and rules description. The iptables version could be useful too.
If I'm not wrong, the problem here is that Line 34 and Line 53 are clashing. The first one is tracking the interface traffic in zone 4099 and the second one is marking this traffic a "no tracking". I guess this is a corner case not covered during the development nor the testing.
Let me remark that ML2/LB is in experimental support mode. That means it is no longer actively supported by the Neutron community. You could study moving to other mechanism drivers like ML2/OVS or ML2/OVN.
Regards.