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 :)
>
> Thanks
> Keith
>
> HTTP/1.x 406 Not Acceptable
> Date: Fri Aug 13 15:20:18 2010
> Server: OpenBSD relayd
> Connection: close
> Content-Type: text/html
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>406 Not Acceptable</title>
> <style type="text/css"><!-- body { background-color:#a00000; color:
> white; }--></style>
> </head>
> <body>
> <h1>Not Acceptable</h1>
> <div id='m'>no method</div>
> <div id='l'></div>
> <hr><address>OpenBSD relayd at 127.0.0.1 port 8080</address>
> </body>
> </html>