33 lines
996 B
Plaintext
33 lines
996 B
Plaintext
# Makronix: nothing comes in that was not asked for.
|
|
#
|
|
# This copy is for reading and for `npfctl validate' (NetBSD 11.99.9);
|
|
# the system installer writes the same content via src/usr.sbin/sysinst/setup.c.
|
|
# Everything this computer starts is let out and the replies come back
|
|
# (stateful); the network set-up (DHCP, IPv6 neighbour and router discovery),
|
|
# ping, ssh and mDNS work. Edit /etc/npf.conf and run `/etc/rc.d/npf reload'.
|
|
# See npf.conf(5).
|
|
|
|
alg "icmp"
|
|
|
|
group default {
|
|
pass final on lo0 all
|
|
|
|
# out: everything, with the replies
|
|
pass stateful out final all
|
|
|
|
# DHCP replies (a broadcast, so no state) and IPv6 set-up
|
|
pass in final proto udp from any port 67 to any port 68
|
|
pass final family inet6 proto ipv6-icmp all
|
|
|
|
# ping
|
|
pass stateful in final family inet4 proto icmp all
|
|
|
|
# remote login
|
|
pass stateful in final proto tcp to any port ssh
|
|
|
|
# mDNS and DNS-SD (mdnsd): the multicast announcements, port 5353
|
|
pass in final proto udp to any port 5353
|
|
|
|
block in final all
|
|
}
|