Mandos-client doesn't discover server, only explicit connection works

Teddy Hogeborn teddy at recompile.se
Fri Aug 8 10:45:33 CEST 2014


Erik Logtenberg <erik at logtenberg.eu> writes:

> > Stop the Mandos server by running "service mandos stop" and run the
> > server manually in debug mode by running "mandos --debug" (both
> > commands as root).  See what is going on with the registration of
> > the Zeroconf service (using Avahi).
>
>
> [root at mandostest ~]# mandos --debug
[...]
> 2014-08-08 09:42:53,213 root [25639]: INFO: Now listening on address
> '::', port 36941, flowinfo 0, scope_id 0
> 2014-08-08 09:42:53,217 root [25639]: DEBUG: Avahi server state change: 2
> 2014-08-08 09:42:53,220 root [25639]: DEBUG: Adding Zeroconf service
> 'Mandos' of type '_mandos._tcp' ...
> 2014-08-08 09:42:53,223 root [25639]: DEBUG: Starting main loop
> 2014-08-08 09:42:53,225 root [25639]: DEBUG: Avahi entry group state
> change: 1
> 2014-08-08 09:42:53,226 root [25639]: DEBUG: Avahi entry group state
> change: 2
> 2014-08-08 09:42:53,226 root [25639]: DEBUG: Zeroconf service established.
[...]
>
> Still, avahi-browse on the same machine (in a separate terminal)
> doesn't see the service.
>
> [root at mandostest ~]# avahi-browse --all
> +   eth0 IPv4 mandostest [52:54:00:5c:d2:65]                Workstation
>          local

That *is* odd.  How about publishing the service manually, using this
command:

avahi-publish --service Mandos _mandos._tcp 36941

(Adjust the port number to match the port number in the debug output.
If a "Local name collision" occurs, change the service name from
"Mandos" to "Mandos#2" or something.)

/Teddy Hogeborn

-- 
The Mandos Project
http://www.recompile.se/mandos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://mail.recompile.se/pipermail/mandos-dev/attachments/20140808/e12ac489/attachment.sig>


More information about the Mandos-Dev mailing list