Benoît Ganne 5c11196a75 add support for peer auto-discovery in wgsd-client
This patch allows wgsd-client to auto-discover other mesh peers:
 - use peer allowed ip and pubkey from TXT record in SRV answer
 - iterate on peers extracted from PTR answer instead of local wireguard
configuration: the client no longer need to pre-configured with all the
peers
 - allow to connect to a specific peer using its pubkey or allowed ip
2020-12-08 13:45:07 +01:00
..
2020-05-26 14:45:31 -07:00

wgsd-client

wgsd-client is responsible for keeping peer endpoint configuration up to date. It retrieves the list of configured peers, queries wgsd for matching public keys, and then sets the endpoint value for each peer if needed. This client is intended to be run periodically via cron or similar scheduling mechanism. It checks all peers once in a serialized fashion and then exits.

% ./wgsd-client --help
Usage of ./wgsd-client:
  -device string
    	name of Wireguard device to manage
  -dns string
    	ip:port of DNS server
  -zone string
    	dns zone name