How to identify what Host a client is connected to

Hi - We have 2 hosts setup in AWS behind Global Accelerator with client affinity turned on. DNS is set to give out 1 hostname for both IPs and the Host Settings > Public Address is set to this DNS name. We’re using both OpenVPN and Wireguard and everything works great!

However, from time to time, we get support requests where users either report slowness or disconnects and to troubleshoot, the first step would be to figure out which of our two hosts that user is connected to . This appears to be a challenge with our config because the Pritunl client always shows the DNS Name for the server address, so that’s no help.

We looked in the Pritunl Admin interface under User > Show additional user information, which does show a lot of info – but not what host the user is connected to. Looking through the various server and client logs don’t show much either – although I suppose if I put together enough of the server side logs and ids, I could probably map it back but this seems like a lot of work!

Is there an easy way to get this info? Either on the server side, client side or even via a curl directed at the vpn “gateway” ip? Like a curl to /check shows “OK” it would be neat if a header could be set that somehow identifies what sever we’re talking to.

Any guidance would be appreciated.

Thanks!
Rob

The connection issues are likely caused by the network load balancer on the VPN connections. Setting the host public address to load balancers will also prevent some features like dynamic firewall from working.

The audit journal will log a lot of information about connections.