_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| 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 manpages: pfctl(8) , pf.conf(5)