Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
OpenVPN - retrieve connected clients
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN - retrieve connected clients (Read 2233 times)
mrpsycho
Newbie
Posts: 33
Karma: 1
OpenVPN - retrieve connected clients
«
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
Logged
mrpsycho
Newbie
Posts: 33
Karma: 1
Re: OpenVPN - retrieve connected clients
«
Reply #1 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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
OpenVPN - retrieve connected clients