SNAT is not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
High
|
Unassigned |
Bug Description
Centos 8.3, Openstack Ussuri.
I have 3 controllers node and 2 network nodes.
I'm using self-service network with linuxbridge.
The SNAT is not working. A tcpdump (in the destination) shows that the ip is not being masquerade. If I assing a floating IP, everything works.
Here is the router iptables:
# Generated by iptables-save v1.8.4 on Thu Apr 22 09:30:43 2021
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:neutron-filter-top - [0:0]
:neutron-
:neutron-
:neutron-
:neutron-
:neutron-
-A INPUT -j neutron-
-A FORWARD -j neutron-filter-top
-A FORWARD -j neutron-
-A OUTPUT -j neutron-filter-top
-A OUTPUT -j neutron-
-A neutron-filter-top -j neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
COMMIT
# Completed on Thu Apr 22 09:30:43 2021
# Generated by iptables-save v1.8.4 on Thu Apr 22 09:30:43 2021
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:neutron-
:neutron-
:neutron-
:neutron-
:neutron-
:neutron-
:neutron-
:neutron-
:neutron-
-A PREROUTING -j neutron-
-A INPUT -j neutron-
-A FORWARD -j neutron-
-A OUTPUT -j neutron-
-A POSTROUTING -j neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
COMMIT
# Completed on Thu Apr 22 09:30:43 2021
# Generated by iptables-save v1.8.4 on Thu Apr 22 09:30:43 2021
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:neutron-
:neutron-
:neutron-
:neutron-
:neutron-
:neutron-
-A PREROUTING -j neutron-
-A POSTROUTING -j neutron-
-A POSTROUTING -j neutron-
-A OUTPUT -j neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
-A neutron-
COMMIT
# Completed on Thu Apr 22 09:30:43 2021
# Generated by iptables-save v1.8.4 on Thu Apr 22 09:30:43 2021
*raw
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:neutron-
:neutron-
-A PREROUTING -j neutron-
-A OUTPUT -j neutron-
COMMIT
# Completed on Thu Apr 22 09:30:43 2021
tags: | added: iptables l3 linuxbridge |
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → High |
status: | Confirmed → New |
tags: |
added: l3-ha removed: l3 |
Hello Vinicius:
Can you add more detail to this bug?
If I'm not wrong, what you are trying is to connect a VM to provider network using a router (a trivial case), using a router. And the router is centralized in the controller node. Correct?
Are you using HA or legacy routers?
What OS are you using?
What version of iptables do you have? I see you are using iptables v1.8.4. Is this the nftables binary or the legacy one?
Are you using iptables Firewall? Are you using security groups?
Where are you capturing the traffic? Where/what is this destination port?
Regards.