NPF (firewall)
NPF is a BSD licensed stateful packet filter, a central piece of software for firewalling.[src] It is comparable to iptables, ipfw, ipfilter and PF.[src] NPF is developed on NetBSD.[src]
NPF is a BSD licensed stateful packet filter, a central piece of software for firewalling.[src] It is comparable to iptables, ipfw, ipfilter and PF.[src] NPF is developed on NetBSD.[src] $ext_if = inet4(wm0) $int_if = inet4(wm1) Efficient tables to store IP sets.[src] table type hash file "/etc/npf_blacklist" table type tree dynamic Variables with the service names.[src] $services_tcp = { http, https, smtp, domain, 9022 } $services_udp = { domain, ntp } $localnet = { 10.1.1.0/24 } Different forms of NAT are supported.[src] map $ext_if dynamic 10.1.1.0/24 -> $ext_if map $ext_if dynamic 10.1.1.2 port 22 pass stateful in final family inet proto tcp to $ext_if port ssh apply "log" pass stateful in final proto tcp to $ext_if port $services_tcp pass stateful in final proto udp to $ext_if port $services_udp # Passive FTP and traceroute pass stateful in final proto tcp to $ext_if port 49151-65535 pass stateful in final proto udp to $ext_if port 33434-33600 } group "internal" on $int_if { # Ingress filtering as per RFC 2827.[src] block in all pass in final from $localnet pass in final from pass out final all } group default { pass final on lo0 all block all } ==External links==[src]
11 sentences · 11 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"NPF (firewall)." encyclopegia.org, 2022, https://encyclopegia.org/wiki/npf-firewall. Accessed 05 December 2026.
Chicago
"NPF (firewall)." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/npf-firewall.
APA
encyclopegia.org. (2022). NPF (firewall). Retrieved December 5, 2026, from https://encyclopegia.org/wiki/npf-firewall
Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON