OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: mrpsycho on October 10, 2019, 10:25:14 pm

Title: OpenVPN - retrieve connected clients
Post by: mrpsycho on October 10, 2019, 10:25:14 pm
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
Title: Re: OpenVPN - retrieve connected clients
Post by: mrpsycho on October 15, 2019, 09:14:54 pm
ok.

tried adding
Code: [Select]
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.