On Fri, 13 Aug 2010 16:58:46 +0200
"Bret S. Lambert" <blamb...@openbsd.org> wrote:

> On Fri, Aug 13, 2010 at 03:41:08PM +0100, Keith wrote:
> > I just realized that if I telnet to our web servers on port 80 and
> > press enter a few times that I get a reply back from relayd that I
> > didn't expect "<address>OpenBSD relayd at 127.0.0.1 port
> > 8080</address>" This error is correct as we use a PF rdr rule to
> > redirect traffic on our firewall to localhost port 8080 where we
> > have relayd listening. I was wondering if it's possible to stop this
> > error from being displayed as I would prefer not to disclose to the
> > world what software we use.
> > 
> > I've had a look at our  relayd.conf  to see if there is a "return
> > error" line but there isn't and I can't see any other way of
> > stopping this error from being displayed. Does anyone have any
> > suggestions ?
> 
> Yes; the function you're looking for is relay_close_http(), in relay.c
> 
> You'll also have to hack the support for setting the string in parse.y
> 
> Of course, you could just redefine RELAYD_SERVERNAME in relayd.h, but
> that's cheating :)
> 

You can set return error in relayd.conf to blank or comment it out, I
can't remember which. You'll then get a blank error page though which
may confuse users, so if you want to customise the text other than the
style I believe you'll need to edit the source as shown.

Reply via email to