Thread: relayd
View Single Post
  #1   (View Single Post)  
Old 8th May 2012
gpatrick gpatrick is offline
Spam Deminer
 
Join Date: Nov 2009
Posts: 245
Default relayd

Currently I have 4 websites running on my OpenBSD server which also is my mail server (OpenSMTPD (it rocks!)). Connections come in from the outside to my OpenBSD firewall which then redirects port 80 to Pound.

Right now Pound is the only - well, procmail and bogofilter too - non-base software installed. I would like to employ relayd in place of Pound if possible.

Would I setup relayd on the server running Pound and then in the relayd.conf file use something like:
Code:
table <example_com>  {192.168.200.100}
table <example_net> {192.168.200.101}

redirect example.com{
        listen on 192.168.100.121 port 80 interface $ext_if
        tag dotcom
        forward to <example_com> port 80 check tcp
}

redirect example.net{
        listen on 192.168.100.120 port 80 interface $ext_if
        tag dotnet
        forward to <example_net> port 80 check tcp
}
If so then it would expand the IPs I currently use since Pound listens on one IP and redirects to Apache with each site using an IP. If the above is correct, then instead of Pound using one IP, relayd would need an IP for each site to redirect.

If that isn't correct, then does anyone have an example of using relayd as a reverse proxy, and what rdr or pass rules would need to be added to pf?
Reply With Quote