How to edit the SNAT rules of the L3 agent so that it forwards packets of specific source/dest IPs to a certain VM?
I just wanted to ask if it is possible to forward all packets that are received at the physical interface (eth0 which is added into "br-ex") to the VM?
I am using a single node openstack+neutron (openvswitch) environment with floating IPs assigned to the VM. The VM is able to receive packets from outside world which have its floating IP as their destination IP address.
But I want to forward all traffic on the physical interface to this VM or even some packets that have different destination IP address.
I have tried adding rules into the br-ex bridge but the packets are not forwarded to VM.
I have further looked into it and found that the neutron L3 agent which performs the SNAT (from qg-XXXX to qr-XXXX interface), drops the packets which are not in the private network and only forwards those packet (onto qr-XXXXX) which are in the private network.
Is it possible to edit the SNAT rules of the L3 agent so that it forwards packets of specific source/dest IPs to a certain VM?