Hello,
I have achieved to reach my virtual machine with these flows:
ovs-ofctl add-flow external
"dl_type=0x0800,nw_proto=6,tcp_dst=80,action=output:5"
ovs-ofctl add-flow of2
"dl_type=0x0800,nw_proto=6,nw_dst=10.51.89.187,tcp_dst=80,actions=mod_nw_dst:172.16.1.5,output:2"
But the response from the virtual machine is not working I only see this in a
tcpdump:
06:58:48.983054 IP (tos 0x0, ttl 59, id 8150, offset 0, flags [DF], proto TCP
(6), length 60)
159.107.31.251.33632 > 172.16.1.5.http: Flags [S], cksum 0x88cc (correct),
seq 194892357, win 5840, options [mss 1460,sackOK,TS val 165400702 ecr
0,nop,wscale 2], length 0
Do you know what flow should I add so the response is working?
Thanks and BR/
-----Original Message-----
From: Justin Pettit [mailto:[email protected]]
Sent: lunes, 06 de junio de 2016 19:26
To: Cristina Palomo Regidor
Cc: Ben Pfaff; [email protected]
Subject: Re: [ovs-discuss] ovs-ofctl command to perform nat
> On Jun 6, 2016, at 8:02 AM, Ben Pfaff <[email protected]> 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
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss