[ovs-discuss] Modifying udp ports with OVS flows, match on udp_dst=53 but can't do mod_udp_dst=30053
Brendan Doyle
brendan.doyle at oracle.com
Mon Feb 22 17:45:41 UTC 2021
Hi,
If I try add a rule as follows:
ovs-ofctl add-flow br-ext
priority=1001,ip,in_port="patch-ln-ls_vcn",nw_proto=17,nw_dst=169.254.239.254,udp_dst=53,actions=mod_nw_dst:253.255.0.31,mod_udp_dst=30053,output:"bond0.3900"
I get :
ovs-ofctl: unknown action mod_udp_dst
Yet OVS is quiet happy with:
ovs-ofctl add-flow br-ext
priority=1001,ip,in_port="patch-ln-ls_vcn",nw_proto=17,nw_dst=169.254.239.254,udp_dst=53,actions=mod_nw_dst:253.255.0.31,mod_tp_dst=30053,output:"bond0.3900"
So how come I can use udp_dst to match, but have to use tp_dst to modify?
And is the above the same as having:
ovs-ofctl add-flow br-ext
priority=1001,ip,in_port="patch-ln-ls_vcn",nw_proto=17,nw_dst=169.254.239.254,tp_dst=53,actions=mod_nw_dst:253.255.0.31,mod_tp_dst=30053,output:"bond0.3900"
Thanks
Brendan
More information about the discuss
mailing list