Transparent Reverse Proxy on FreeBSD

A previous post described how to get transparent reverse proxy to work with Pen on Linux. The same functionality is available on FreeBSD.

The FreeBSD host running Pen has IP addresses on em1 and on em2. Like before, the client debian2 has IP address and the server debian3 has IP address

FreeBSD requires far less in the way of special preparations than Linux did in the earlier post; in fact, a single firewall rule is all we need:

ipfw add 10 fwd tcp from any 5001 to any in recv em2

The Pen command is the same whether on Linux or FreeBSD:

sudo ./pen -df -O transparent

And as before, the client sees a connection from to, while the server sees a connection from to




One thought on “Transparent Reverse Proxy on FreeBSD

Leave a Reply

Your email address will not be published. Required fields are marked *