OpenVPN - retrieve connected clients

Started by mrpsycho, October 10, 2019, 10:25:14 PM

Previous topic - Next topic
Hello,

i need to set static IP for special openvpnclients... but, it doesn't work in the way how it was working on plain openvpn config: i'm trying to add "ifconfig-push 192.168.200.200 255.255.255.0"  to Client Override config.

client can't connect with this setting.

So, if there are problem to set static address - is it possible somehow to get ip addresses thru RestAPI (maybe there are hidden feature) or thru cli interface (like connect thru ssh and run "openvpn get clients")

both ways will work, also like setting static IP

ok.

tried adding status /usr/local/www/clients.log and it works as we need it: we can run curl https://192.168.0.1:8080/clients.log and parse it locally.