ipfw -- selecting locally generated packets

Julian Elischer julian at freebsd.org
Thu May 3 13:35:22 UTC 2018


On 3/5/18 12:08 am, Michael Sierchio wrote:
> On Mon, Apr 30, 2018 at 10:48 AM, Jeff Kletsky <freebsd at wagsky.com> wrote:
>
>> "not recv any" doesn't seem to be helpful either
>>
>>      $ sudo ipfw add 64000 count ip from any to any out xmit any not recv
>> any
>
> The loopback interface, lo0 ?
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
As was pointed out a selector might be

add 100 ip from me to any out not recv *

one wonders if that would work or maybe

skipto {line x) any from any to any out recv *

followed by lines htat are for locally generated.

these not tested..




More information about the freebsd-net mailing list