Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th May 2012
gpatrick gpatrick is offline
Spam Deminer
Join Date: Nov 2009
Posts: 244
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:
table <example_com>  {}
table <example_net> {}

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

redirect example.net{
        listen on 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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
relayd gpatrick OpenBSD General 1 16th January 2010 12:19 AM
relayd won't work with multiple relays d0z3r OpenBSD General 0 26th June 2008 09:58 AM
relayd (and hoststated) give syntax error for 'check script' gwl OpenBSD Security 2 2nd May 2008 04:53 PM

All times are GMT. The time now is 06:59 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick