Derek Buttineau <derek <at> csolve.net> writes:
> I'm attempting to setup a reverse proxy using relayd using the  
> transparent forward to configuration (non-transparent works fine)  
> under OpenBSD 4.4.

Following up to an old mail...but since nobody has ever posted how
to get this working I imagine pretty much everyone who tried it is
confused :-)

This bit is fine:

> relay maildelivery {
>      listen on $relayd_addr port 2525
>      protocol "tcp_service"
>      transparent forward to <pop3_servers> port smtp check tcp interface bnx1
> }

("interface XX" is not yet documented but it is needed
for "transparent forward").

Here is the problem:

> rdr on $ext_if proto tcp from $netguard to 66.159.112.123 port smtp ->  
> lo0 port 2525

Thanks to phessler for the clue; this must be done
with a divert-to rule.

So, with modern PF syntax:

pass in quick on $ext_if inet proto tcp from $netguard to \
   66.159.112.123 port smtp divert-to lo0 port 2525

I'll try and come up with something for the docs.

Reply via email to