router portforwarding
Hi all,
We have not many public IPs so we must think about to use the Public Router IP to forward the traffic to the VM. As far as I know, we can create some iptables rules to do that.
These are which we are using but they don't work.
ip netns exec qrouter-xxxx iptables -t nat -I neutron-l3-agent-PREROUTING -p tcp -d RouterGW_IP -j DNAT --to VM_Internal_IP:22
ip netns exec qrouter-xxxx iptables -t nat -I neutron-l3-agent-snat -p tcp -s PUBLICfloating_IP --sport 22 -j SNAT --to RouterGW_IP
In this example:
RouterGW_IP is the Instance network gateway
VM_Internal_IP is the Instance Internal IP
PUBLICfloating_IP is the IP reached from Internet
What am I missing???
Note: We are using 3 Controllers with Neutron L3 HA on a Mitaka environment.
I also have followed the instructions from https://blueprints.launchpad.net/neutron/+spec/router-port-forwarding (https://blueprints.launchpad.net/neut...) with no success.
THx in advance