I don't think you can with that config, but there are things that you could
do to change it so you can. If you add a "status" line, you'll get a
status file listing connected systems and their IP's. If you add a
"management" line, you can telnet in and run the "status" command, and get
a list of connected systems and their IP's. If you add an
'ifconfig-pool-persist" line, you will get a file with user-to-IP mappings,
though there will be no indication of which are currently connected.
*without* the ifconfig-pool-persist, then there isn't really a concept of
a "lease", IP addresses go back into the pool as soon as the client
disconnects (at least I'm fairly sure of that). But with the management
interface, you can both see connected clients and their IP addresses, and,
if you wish, kill their connection.
And, of course, you can combine all three and have access to tons of info
in multiple ways.
-Joe
On Wed, Jun 28, 2017 at 4:38 AM SaAtomic <[email protected]> wrote:
> Hello,
> what is the correct way of managing/observing the IP pool on an OpenVPN
> server?
>
> I'm not sure if this is manged by OpenVPN or the underlying operating
> system.
>
> With this server configuration:
> port 443
> proto udp
> dev tun
> server 172.16.0.0 255.255.255.0
> tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384
> tls-version-min 1.2
> cipher AES-256-GCM
> auth SHA512
> comp-lzo
> duplicate-cn
>
> ca <file>
> cert <file>
> key <file>
> dh <file>
> tls-crypt <file>
>
> How can I observe how many/which IP addresses currently used - possibly by
> whom.
> How could I flush/release the leases?
>
> Kind regards,
> SaAtomic
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Openvpn-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users