Re: Matching rules on ip4/ip6 with udp/tcp

2018-06-06 Thread Freddie Cash
On Wed, Jun 6, 2018 at 10:36 AM, Dries Michiels wrote: > Is there are way to match packets specifying both network generation ip4 or > ip6 together with the protocol such as tcp or udp? > > Currently the following rules are possible (examples): > > ipfw add 1 allow udp from any to me 22 in recv

Matching rules on ip4/ip6 with udp/tcp

2018-06-06 Thread Dries Michiels
Dear Mailing List, Is there are way to match packets specifying both network generation ip4 or ip6 together with the protocol such as tcp or udp? Currently the following rules are possible (examples): ipfw add 1 allow udp from any to me 22 in recv em0 ipfw add 1 allow ip4 from any to me

RE: Matching rules on ip4/ip6 with udp/tcp

2018-06-06 Thread Dries Michiels
Tried out the variations you mentioned and they work just great. Thank you! Dries From: Freddie Cash Sent: woensdag 6 juni 2018 20:01 To: Dries Michiels Cc: freebsd-ipfw@freebsd.org Subject: Re: Matching rules on ip4/ip6 with udp/tcp On Wed, Jun 6, 2018 at 10:36 AM, Dries

Re: Matching rules on ip4/ip6 with udp/tcp

2018-06-06 Thread Andrey V. Elsukov
On 06.06.2018 20:36, Dries Michiels wrote: > Dear Mailing List, > > Is there are way to match packets specifying both network generation ip4 or > ip6 together with the protocol such as tcp or udp? > > Currently the following rules are possible (examples): > > ipfw add 1 allow udp from any to me