_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

pfconfiguration

Forwarding needs to be allowed in the system:

sysctl net.inet.ip.forwarding=1

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

openbsd, vm
OpenBSD manpages: pfctl(8), pf.conf(5)
links
- OpenBSD FAQ - PF - User guide.

(back to top)

2026-07-11 : Translated to Spanish.
2025-10-03 : Created.

(back to top)

ohazot | about | ohazot.com <admin@ohazot.com>

This document applies to: OpenBSD 7.7| 2026-07-11