_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | > en < |
| mdoc file |
| search |
pf —
configuration
PORT FORWARDING
Forwarding needs to be allowed in the system:
sysctl
net.inet.ip.forwarding=1/etc/pf.conf
pass in quick proto tcp from any to egress port <public_port> rdr-to <web_server> port [INTERNAL_PORT] pass out on egress proto tcp to <web_server> port <internal_port> received-on egress nat-to egress
SEE ALSO
| openbsd, vm |
| OpenBSD manpages: pfctl(8), pf.conf(5) |
| links |
| - OpenBSD FAQ - PF - User guide. |
HISTORY
| 2026-07-11 | : Translated to Spanish. |
| 2025-10-03 | : Created. |