.Dd Created:$Mdocdate$ .Dt ohazot_pf .Tg back_to_top .Bd -literal -compact _ _ ___ | |__ __ _ _______ | |_ / _ \\| '_ \\ / _` |_ / _ \\| __| | (_) | | | | (_| |/ / (_) | |_ \\___/|_| |_|\\__,_/___\\___/ \\__| .Ed .Tg menu .Bl -column ".Sy ohazot " ".Sy ohazot " ".Sy ohazot " .It Xr ohazot oh Ta | .Xr docs oh Ta | .Xr about oh Ta .El .Dd Created:2025-10-03|Updated:2025-10-06 .Dt ohazot_pf .Os OpenBSD .Nm pf .Nd configuration .Sh PORT FORWARDING .Sx back_to_top Forwarding needs to be allowed in the system: .Dl sysctl net.inet.ip.forwarding=1 .Bd -literal -compact 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 .Ed .Sh SEE ALSO .Sx back_to_top .Ss OpenBSD manpages .Xr pfctl 8 , .Xr pf.conf 5 .Ss files .In pf.oh .Sh AUTHORS .Sx back_to_top .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com