neutron port forwarding doesn't work

Bug #1871815 reported by Liansen Zhai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Liansen Zhai

Bug Description

I found a bug about neutron port forwarding and Detailed operations are as follows:
first,create a VPC,
 1)openstack address scope create my_project_id
 2)openstack network create my_network
 3)openstack subnet pool create <network id> --address-scope <project id> --pool-prefix "10.0.114.0/24"
 4)openstack subnet create --network <network id> --subnet-pool <subnet pool id> --subnet-range 10.0.114.0/25 <subnet name>
 5)openstack router create my_router
 6)openstack router set jidd-router1 --external-gateway <exxternal network id> --enable-snat
 7)openstack router add subnet <router id> <subnet id>
second,create a vm by the network above
And,config floating ip port forwarding.

for example, external ip and port: 10.142.254.158, 8870; internal port: 10.0.99.29,8870
It can not reach form a external ip to 10.142.254.158 using telnet.

Found that, packet is dropped in snat namespace, becase of packet is marked different labels between qg-xxx interface and sg-xxx interface.

hit rules:
0 0 DROP all -- * sg-4ddcbea1-c6 0.0.0.0/0 0.0.0.0/0 mark match ! 0x4000000/0xffff0000

information type: Public → Public Security
Revision history for this message
Jeremy Stanley (fungi) wrote :

In the future, if marking a bug report as a suspected security vulnerability, please explain why you think this may represent a risk (for example, with a hypothetical exploit scenario demonstrating how an attacker may take advantage of the flaw to gain otherwise unintended access or cause damage to the system or other tenants).

information type: Public Security → Public
Revision history for this message
Lajos Katona (lajos-katona) wrote :

Could you please give more details if this is really a security issue or not?

Revision history for this message
Slawek Kaplonski (slaweq) wrote :

For me it seems like problem with port forwarding and dvr routers, but I don't see how it may be security issue.

tags: added: dv
tags: added: l3-dvr-backlog
removed: dv
Revision history for this message
Liansen Zhai (zhailiansen) wrote :

Sorry,too busy to reply,I'm sorry it is not a security issue. It is a problem with port forwarding and it was caused by different address scope between external and internal network in snat namespace.Packets are marked different labels
because of different address scope,so packets are dropped.Please contact me if you have any questions,Thank you.

Changed in neutron:
assignee: nobody → Liansen Zhai (zhailiansen)
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.