[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Determining my assigned IP address


  • Subject: [Openvpn-users] Determining my assigned IP address
  • From: "Jerry Bachmann" <jbachmann@xxxxxxxxxxxxxxxx>
  • Date: Tue, 6 Sep 2005 15:27:47 -0400

I’d like to thank Jim Ockers and Mathias Sundman for answering my last question about ifconfig-pool-persist, their answers were very helpful.

 

Anyways, I have a new problem I hope someone can help me with. I need to figure out, from the client end, what IP address the client is assigned when it connects to the OpenVPN server without human intervention. So far I have two possible solutions, I can parse the results from ipconfig, and I can get it from this line in the log:

 

Thu Sep 01 12:02:00 2005 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface { } [DHCP-serv: 10.8.0.5, lease-time: 31536000]

 

I’m not particularly thrilled at the prospect of parsing either of these two things for the answer as I’m worried about me making a stupid mistake and having instances where the address doesn’t get parsed correctly, so if there is a “better” spot to look for the address I would really like to know what it is. In case you’re wondering why someone would want to do this, I’m looking to give users something that will start a windows service that will only listen on that address so I can connect to that service when they log onto the VPN, but I don’t want it to listen to other IP addresses on the machine because I don’t want anyone not on the VPN to be able to access it. While I could have users change this manually, the amount of “oh lord I have to type a number computers are hard” responses I’ll get from that will make me want to shoot myself.

 

Thank you,

Jerry


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-09/msg00062.html on line 233

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-09/msg00062.html on line 233