[ovs-dev] Port based SNAT support
Guru Shetty
guru at ovn.org
Tue Nov 7 01:55:57 UTC 2017
You can use load-balancer with a single destination to achieve port NAtting.
On 6 November 2017 at 16:39, Manoj Sharma <manoj.sharma at nutanix.com> wrote:
> Hi Guru, Mickey,
>
>
>
> Does OVN currently support PORT based SNAT? By looking at the code in
> ovn/lib/actions.c, it seems to be doing only IP based NAT.
>
> Can you please confirm?
>
>
>
> This is the NAT table entry:
>
>
>
> ovn-nbctl lr-nat-list R1
>
>
>
> TYPE EXTERNAL_IP LOGICAL_IP
> EXTERNAL_MAC LOGICAL_PORT
>
> snat public_ip 192.168.1.0/24
>
>
>
> When a VM in subnet 192.168.1.0/24 sends traffic to physical network, the
> source IP is getting translated to the “public_ip” but source port is left
> unchanged.
>
>
>
> Thanks
>
> Manoj
>
More information about the dev
mailing list