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

Re: [Openvpn-users] IP allocation by Openvpn


  • Subject: Re: [Openvpn-users] IP allocation by Openvpn
  • From: James Yonan <jim@xxxxxxxxx>
  • Date: Tue, 14 Sep 2004 08:21:23 -0600 (MDT)


On Tue, 14 Sep 2004, Bhaskar K wrote:

> Hi all,
> I would like to know more about how the IP allocation is done by
> Openvpn. I could not find a detailed note in the web-site.
> this is required because i want to keep track the username, time and
> the ip allocated to them. in the event of any problem, we can track
> the username based on the IP.
> i also understand openvpn can allocate same ip to the user based on CN
> but it needs a file in client_config_dir. it may not be operationally
> possible to provide static ip for all the users. that is the reason i
> want to know how openvpn allocates ip dynamically
> 
> PS: I am using openvpn in routing mode.

The allocation is done in pool.c.  The algorithm is similar to that of 
DHCP servers -- try to give the same client the same address (clients are 
recognized by their common name) across multiple connection/disconnection 
cycles.

James


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users