My office has two internal networks, and the one I'm on doesn't have a printer. So I'm setting up a port-forwarding OpenBSD box to forward port 9100 connections from my network to the printer on the other network.
Here's my pf.conf:
ext_if="rl0" int_printer="10.0.131.99" rdr pass on $ext_if proto tcp from any to any port 9100 -> $int_printer \\ port 9100
Here's a picture of what I'm doing:
192.168.1.0/24 -> 192.168.1.99 / 10.0.131.191 -> 10.0.131.99 my network ext_if OpenBSD int_if printerThe network on the OpenBSD machine is setup correctly; I can connect to and from machines on both networks using the OpenBSD box. However when I try to utilize the port forwarding, I can't connect: $ pfctl -ss self tcp 10.0.131.99:9100