Re: Layer-2 filtering in NPF: breaking config parsing

Greg Troxel <[email protected]> Tue, 08 Jul 2025 09:34:02 -0400
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
I have taken out all the stuff about the tun0 interface (that isn't
there) from the config.   I'm left with a pretty normal config

  alg icmp
  procedure log

  group default {
    pass stateful out final all 
    block all apply "log" 
    block in final from <blocklist> apply "log" 
    a bunch of individual pass rules

after starting, even outbound ping fails, and I see in messages:

  Jul  8 09:29:21 n11 dhcpcd[826]: ps_root_recvmsg: Network is unreachable

I then did

  telnet 1.2.3.4 30

where 1.2.3.4 is another host.  tcpdumping there showed no SYN arriving.

after

  /etc/rc.d/npf onestop

doing telnet again showed the packet arriving at the other host.