Date: Fri, 10 Jul 2015 22:12:45 +0300 From: Pavel Odintsov <pavel.odintsov@gmail.com> To: Eduardo Meyer <dudu.meyer@gmail.com> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: netmap-ipfw: kipfw two instances sharing same port Message-ID: <CALgsdbdn09vrEUw0=X5--BHy%2BRAu2eOR4yhGupaRhtEyACjF_A@mail.gmail.com> In-Reply-To: <CALgsdbdTxc7T-hxd4LjO940d0RSHW7ttPQ%2BdfBwOGC=FYKow%2Bw@mail.gmail.com> References: <CAEqdE_6EEwyMur161KpKqas_gcJb2mnn-Zb_q65%2BObbJD2oePw@mail.gmail.com> <CALgsdbdTxc7T-hxd4LjO940d0RSHW7ttPQ%2BdfBwOGC=FYKow%2Bw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You should run netmap-ipfw with this command (it will run 8 copies of kipfw): for i in `seq 0 7`; do IPFW_PORT="555$i" taskset -c $i kipfw netmap:eth0-$i netmap:eth1-$i & done When you need add or remove rule you should do it for all 8 copies of kipfw: for i in `seq 0 7`;do IPFW_PORT="555$i" ipfw/ipfw add deny all from any to any On Friday, July 10, 2015, Pavel Odintsov <pavel.odintsov@gmail.com> wrote: > Hello! > > You could enable multiple queues for each NIC and run single instance of > kipfw on each pair: > kipfw netmap:ix0-0 netmap:ix1-0 > kipfw netmap:ix0-1 netmap:ix1-1 > > And so on ;) i have about 12 mpps with this configuration (on Linux > netmap). > > On Friday, July 10, 2015, Eduardo Meyer <dudu.meyer@gmail.com > <javascript:_e(%7B%7D,'cvml','dudu.meyer@gmail.com');>> wrote: > >> Hello, >> >> should ./kipfw <port0> <port1> and another ./kipfw <port0> <port2> work? >> >> I want to have two filtered kipfw instances sharing the same WAN port. >> >> So far I did a quick test lab and it worked, but since it's a lab >> environment I don't know if I should expect other problems when I add it >> to >> run in a real scenario. >> >> What problems should I expect? Can they be minimized? >> >> Basic stateless filtering only. >> >> -- >> =========== >> Eduardo Meyer >> pessoal: dudu.meyer@gmail.com >> profissional: ddm.farmaciap@saude.gov.br >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > > > -- > Sincerely yours, Pavel Odintsov > -- Sincerely yours, Pavel Odintsov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALgsdbdn09vrEUw0=X5--BHy%2BRAu2eOR4yhGupaRhtEyACjF_A>