[ovs-discuss] ovs-ofctl command to perform nat

Justin Pettit jpettit at ovn.org
Mon Jun 6 17:25:39 UTC 2016


> On Jun 6, 2016, at 8:02 AM, Ben Pfaff <blp at ovn.org> wrote:
> 
> On Mon, Jun 06, 2016 at 02:33:19PM +0000, Cristina Palomo Regidor wrote:
>> I read that nat is not currently supported by openvswitch.
>> Would this command somehow perform the behavior of nat?
>> ovs-ofctl add-flow br1 nw_dst=192.168.2.2,idle_timeout=0, mod_nw_dst:172.16.121.2,output:0
> 
> If that's good enough for your case, yes.  (However, 0 is never a valid
> port number, so I guess that 0 must be a placeholder here.)

In addition to the reverse flow, ARP responses for 172.16.121.2 would also need to be handled.  It should be possible to write flows for that with OVS, too.

--Justin





More information about the discuss mailing list