nf_nat not running in a netns

From: Jon Masters
Date: Sat Jan 04 2020 - 10:52:14 EST


Hi there,

Can anyone offer any reasons why the nat table chains for a netns wouldnât be running?

Longer detail:

Iâve be playing with Kolla (containerized OpenStack) and the way they implement (virtual) routers for tenant networks is to create network namespaces with interfaces representing the ports plugged into the router. To translate addresses from internal to external networks, they apply D/SNAT rules within that netns. All of these are created and the interfaces are pingable, but the nat rules arenât being run and the untranslated addresses are ultimately seen on the physical network once packets traverse out of the containers and to the external neutron interface.

Jon.

--
Computer Architect