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 22 in recv em0 > > The following rule is not possible (example): > > ipfw add 1 allow ip4 udp from any to me 22 in recv em0
You can use "proto" option: ipfw add 1 allow ip4 from any to me 22 in recv em0 proto tcp ipfw add 1 allow tcp from any to me 22 in recv em0 not proto ip6 ipfw add 1 allow ip6 from any to me 22 in recv em0 proto tcp -- WBR, Andrey V. Elsukov
signature.asc
Description: OpenPGP digital signature