.Dd Created:2025-10-03|Updated:2025-10-06| .de ocsi \\$* , .. .de oxr .ocsi .Xr \\$* .. .de oit .It \\$* .. .de obdi .Bl -dash -compact .oit \\$* .. .de obdl .Bd -literal -compact \\$* .. .de onote .Bl -hang -compact .oit \\$* .El .. .de ocomm .Bl -diag -compact .oit \\$* .El .. .de opsy .Pp .Sy - \\$* .. .de obc .Bl -column \\$* .. .de obc2 .obc opt desc .. .de obc3 .obc option arguments description .. .Dt PF oh .Os OpenBSD 7.7| .Nm pf .Nd configuration .Sh PORT FORWARDING Forwarding needs to be allowed in the system: .Dl sysctl net.inet.ip.forwarding=1 .Ss Pa /etc/pf.conf .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 .opsy OpenBSD manpages: .oxr pfctl 8 .Xr pf.conf 5 .El .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com