Hi, I found how to do it. With ovs-ofctl you can also mark the packets so for example to mark all the icmp i do:
ovs-ofctl add-flow -O Openflow13 ovs_0_0 "priority=1000,dl_type=0x0800,nw_proto=1, actions=set_field:10->pkt_mark,normal" Is it okay if I use normal? I just want to mark packets and they have to be sent to the normal output they will be sent anyways. Another question, I want to set a similar rule for all packets that have a TTL < 10, is there a way to do that with a single rule? I don't see any mask option for the nw_ttl field. Kind regards, Richard 2016-10-17 15:59 GMT+02:00 Geza Gemes <geza.ge...@gmail.com>: > On 10/17/2016 11:54 AM, Richard Mayers wrote: >> >> Hi all, >> >> I just realised that all the iptables rules I have been applying to my >> open Vswitch interfaces never match. >> >> I am using iptables to mark some packets, and then I use TC (traffic >> control) filters to put packets into different priority queues >> depending on the Iptables match. That works for every interface, and >> even for Linux Bridges (using -m physdev module). >> >> How can I filter packets that go through an ovs interface and put them >> into different priority queues if I can not mark them with iptables? >> >> >> Kind regards, >> Richard >> _______________________________________________ >> discuss mailing list >> discuss@openvswitch.org >> http://openvswitch.org/mailman/listinfo/discuss > > > Hi, > > ovs-ofctl is your friend ;-) > > Cheers, > > Geza > > _______________________________________________ > discuss mailing list > discuss@openvswitch.org > http://openvswitch.org/mailman/listinfo/discuss _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss