Page 1 of 1

Post-auth programming. GET fqdn or full hostname from client.

Posted: Tue Oct 31, 2023 4:59 pm
by Grg123
Good afternoon.
I'm using latest version of the server OpenVPN AC.
I read the documentation on the official website.
Tell me, is it possible to some how get hostname of the client for Windows or Linux witch Post-auth programming?
Is this feature available?

Re: Post-auth programming. GET fqdn or full hostname from client.

Posted: Tue Oct 31, 2023 6:07 pm
by openvpn_inc
Hello Grg123,

What you can do in the post_auth script is get the public IP address of however this client contacted your VPN server to establish the VPN tunnel. You can then do a reverse lookup on that to get the public hostname of that public IP.

But no, you can't get the local hostname in post_auth. That information is not transmitted.

Kind regards,
Johan