On 10 May 2016 at 01:59, Sheroo Pratap <sheroopratapresea...@gmail.com> wrote:
> Thanks Joe,
>
> I tried to add flows for NAT using below commands
>
> ovs-ofctl add-flow br0
> "in_port=1,ip,action=ct(commit,nat(src=192.168.56.103-192.168.56.115)),2"
> ovs-ofctl add-flow br0 "in_port=2,ct_state=-trk,ip,action=ct(table=0,nat)"
> ovs-ofctl add-flow br0 "in_port=2,ct_state=+trk,ip,action=1"
>
> It is added successfully
> root@osboxes:/home/osboxes/ovs# ovs-ofctl dump-flows br0
> NXST_FLOW reply (xid=0x4):
>  cookie=0x0, duration=3222.738s, table=0, n_packets=5735, n_bytes=521513,
> idle_age=0, actions=NORMAL
>  cookie=0x0, duration=335.272s, table=0, n_packets=0, n_bytes=0,
> idle_age=335, ip,in_port=1
> actions=ct(commit,zone=1,nat(src=192.168.56.103-192.168.56.115)),output:2
>  cookie=0x0, duration=889.087s, table=0, n_packets=0, n_bytes=0,
> idle_age=889, ct_state=-trk,ip,in_port=2 actions=ct(table=0,zone=1,nat)
>  cookie=0x0, duration=875.198s, table=0, n_packets=0, n_bytes=0,
> idle_age=875, ct_state=+trk,ct_zone=1,ip,in_port=2 actions=output:1
> root@osboxes:/home/osboxes/ovs#

It looks to me like the packets are hitting the "NORMAL" rule here.
Have you tried removing that rule?
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to