Page 1 of 1

Print the VPN allocated IP => username in a separate file

Posted: Fri Feb 03, 2023 3:04 pm
by mank
I have setup SoftEther to provide access to an application.
My users can configure the Native Windows VPN client SSTP and authenticate themseleves using Client SSL Certificates.
This much is working quite well.

However in my application I need to restrict access to certain functions, based on the user's Identity.
Yes I modify the application to prompt the users for credentials.
However, it would be so much better if the application could access a mapping of VPN allocated IP => username.

I noticed SoftEther does collect this information in its Sessions & IP table, and also logs into a file.
However there's no API to communicate with the Sessions table, and the information logged in the files is not machine readble.

Can I modify the logging to simply print the VPN allocated IP => username in a separate file?
I could then figure out some way to import that information into a database, and get my application to refer to that database.

I had posted about this issue almost a year back see this - https://www.vpnusers.com/viewtopic.php?t=67610 but unfortunately the post did not get any replies.

I am willing to pay if the developers of SoftEther can be kind enough to incorporate a feature to this effect, in the software's main branch.

Hopefully some awesome hack here will be able to help me out.
Thanks in advance.

Re: Print the VPN allocated IP => username in a separate file

Posted: Mon Feb 06, 2023 10:19 am
by cedar
VPNCMD コマンドライン管理ツールや JSON API では問題がありますか?

Re: Print the VPN allocated IP => username in a separate file

Posted: Tue Feb 07, 2023 4:11 pm
by mank
Cedar,
Unfortunately I understand only English.
Could you be kind enough to translate your answer?

Re: Print the VPN allocated IP => username in a separate file

Posted: Wed Feb 08, 2023 1:12 am
by cedar
Are you having trouble using the VPNCMD command line management tool or the JSON API?

Please note that this board is for Japanese.

Re: Print the VPN allocated IP => username in a separate file

Posted: Fri Feb 17, 2023 11:30 am
by mank
Cedar,

I had earlier posted to another board - https://www.vpnusers.com/viewtopic.php?t=67610
Got no response :(

Then I noticed this board was getting responses very quickly, so I tried my luck here.
Please accept my sincerest apologies.

Hopefully someone will repond to my post on the other board.
Shall wait.