Can somebody please help in finding the ip of a VPN client? So I setup a VPN server and it appears to be working correctly. Now when a VPN client connects to the server I want to view the ip of the client. Is there a way to acheive this.
Thank you in advance.
Newbie vpn client question
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- Forum Team
- Posts: 117
- Joined: Tue Jun 09, 2009 4:25 pm
- Location: St. Louis, MO USA
Re: Newbie vpn client question
I assume you want to view this on the server, I also assume that this is a linux server, since no OS was specified, and no config was posted.
To view connections on a linux based OpenVPN server, have these lines in your config:
Then from a command prompt run this:
The output will contain line(s) like this:
Your client IP range is defined in your server.conf, so your client IP may be different, in the example above the client IP is 10.8.0.250
To view connections on a linux based OpenVPN server, have these lines in your config:
Code: Select all
# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status openvpn-status.log 5
status-version 2
Code: Select all
cat \etc\openvpn\openvpn-status.log
Code: Select all
CLIENT_LIST,cert-name,CLIENT SOURCE IP:63407,10.8.0.250,81568,99077,Wed May 30 05:11:19 2012,1338372679