[ovs-discuss] Add wildcard openflow rules
Yue ZHANG
cassidy.zy at gmail.com
Thu Nov 18 07:02:48 UTC 2010
Dear staff,
In my research, I want to do something like NAT, that modify both IP packets' src and dst address each to each.
For example:
ovs-ofctl add-flow br1 nw_src=192.168.1.2,nw_dst=192.168.2.2,idle_timeout=0,icmp,action=mod_nw_src:172.16.206.2,mod_nw_dst:172.16.121.2,output:0
ovs-ofctl add-flow br1 nw_src=192.168.1.2,nw_dst=192.168.2.3,idle_timeout=0,icmp,action=mod_nw_src:172.16.206.2,mod_nw_dst:172.16.121.3,output:0
These two rules could modify src from 192.168.1.x to 172.16.206.x, and dst from 192.168.2.y to 172.16.121.y, respectively.
The question is:
If I have 254 possible values for both x and y, then I need 254x254 openflow rules for each IP pair.
Could I modify all the nw_src first, then modify nw_dst and output the packet, means only need 254+254 rules.
Is there any simple way to do this? Thanks very much.
Regards.
Yue ZHANG
cassidy.zy at gmail.com
2010-11-18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20101117/a21a18ab/attachment-0001.html>
More information about the discuss
mailing list