Newbie vpn client question

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
rick
OpenVpn Newbie
Posts: 1
Joined: Fri May 25, 2012 9:54 am

Newbie vpn client question

Post by rick » Fri May 25, 2012 9:57 am

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.

george
Forum Team
Posts: 117
Joined: Tue Jun 09, 2009 4:25 pm
Location: St. Louis, MO USA

Re: Newbie vpn client question

Post by george » Wed May 30, 2012 1:15 pm

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:

Code: Select all

# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status openvpn-status.log 5
status-version 2
Then from a command prompt run this:

Code: Select all

cat \etc\openvpn\openvpn-status.log
The output will contain line(s) like this:

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
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

Post Reply