Hi,
I was wondering if there is a way (or an API) to get a list of the currently logged in users and their connected IP addresses.
This is because I would like to dynamically assign push routes for them (users will only be allowed to log in once at a time).
Thanks.
Enlisting users and IP addresses in external program
-
- Posts: 2
- Joined: Thu Apr 30, 2015 11:58 am
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
-
- Posts: 2
- Joined: Thu Apr 30, 2015 11:58 am
Re: Enlisting users and IP addresses in external program
Thanks for that!
I can't understand how I'd get an external program (such as a nodejs script) be able to access vpncmd, as it seems interactive.
Are there any parameters to automate the login?
Thanks,
I can't understand how I'd get an external program (such as a nodejs script) be able to access vpncmd, as it seems interactive.
Are there any parameters to automate the login?
Thanks,
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
-
- Posts: 44
- Joined: Wed May 06, 2015 11:23 pm
Re: Enlisting users and IP addresses in external program
You can automate the login, give vpncmd an input file that contains the commands you want to execute. vpncmd can also write the output to a file allowing an external program to process the data.