[OpenAFS] bosserver "Listening on 127.0.0.1:7007"

Michael Meffie mmeffie@sinenomine.net
Thu, 30 Aug 2012 15:59:12 -0400


On Thu, 30 Aug 2012 13:45:47 -0500
John Tang Boyland <boyland@pabst.cs.uwm.edu> wrote:
> ] What does netstat say about which interfaces are bound to port 7007
> ] for udp?
> 
> Sorry, I don't know how to use netstat:
>
> # netstat | grep 7007
> # netstat --udp

Hello John,

By default bosserver will listen on all the interfaces. The bosserver
only uses the NetInfo/NetRestrict files when it is started with the
-rxbind option.

You can verify the interfaces it is listening on with a netstat -a -u.
I like to use the options, -a, -u, -n, and -p (the -p options requires
you to be running as root). You should see bosserver listening on 0.0.0.0
if it is listening on any interface;

$ sudo netstat -aunp | grep 7007
udp  0   0 0.0.0.0:7007  0.0.0.0:*      31246/bosserver

> bos works fine locally:
> # bos getlog localhost BosLog -localauth
> Fetching log file 'BosLog'...
> Thu Aug 30 09:38:38 2012: Core limits now -1 -1
> Thu Aug 30 09:38:38 2012: Server directory access is okay
> Thu Aug 30 09:38:38 2012: Listening on 127.0.0.1:7007

Unfortunately, this log message is misleading, and is my error. It does not
mean bosserver is listening exclusively on the loopback interface.  The
loopback address is logged when the bosserver is also listening on all
addresses.  This log entry was added when we added the new bosserver.rxbind
file to give init scripts a way to shutdown the bosserver when it is started
with the -rxbind option.  I've submitted a fix to gerrit to fix the misleading
BosLog message.


Mike --

-- 
Michael Meffie <mmeffie@sinenomine.net>