Enlisting users and IP addresses in external program

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
adalal
Posts: 2
Joined: Thu Apr 30, 2015 11:58 am

Enlisting users and IP addresses in external program

Post by adalal » Thu Apr 30, 2015 12:04 pm

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.

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Enlisting users and IP addresses in external program

Post by thisjun » Thu May 14, 2015 6:56 am


adalal
Posts: 2
Joined: Thu Apr 30, 2015 11:58 am

Re: Enlisting users and IP addresses in external program

Post by adalal » Thu May 14, 2015 12:21 pm

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,

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Enlisting users and IP addresses in external program

Post by thisjun » Thu May 28, 2015 6:19 am


Petrol
Posts: 44
Joined: Wed May 06, 2015 11:23 pm

Re: Enlisting users and IP addresses in external program

Post by Petrol » Sat May 30, 2015 4:19 pm

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.

Post Reply