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.
Print the VPN allocated IP => username in a separate file
-
- Posts: 4
- Joined: Thu Nov 18, 2021 3:15 pm
-
- Site Admin
- Posts: 2171
- Joined: Sat Mar 09, 2013 5:37 am
Re: Print the VPN allocated IP => username in a separate file
VPNCMD コマンドライン管理ツールや JSON API では問題がありますか?
-
- Posts: 4
- Joined: Thu Nov 18, 2021 3:15 pm
Re: Print the VPN allocated IP => username in a separate file
Cedar,
Unfortunately I understand only English.
Could you be kind enough to translate your answer?
Unfortunately I understand only English.
Could you be kind enough to translate your answer?
-
- Site Admin
- Posts: 2171
- Joined: Sat Mar 09, 2013 5:37 am
Re: Print the VPN allocated IP => username in a separate file
Are you having trouble using the VPNCMD command line management tool or the JSON API?
Please note that this board is for Japanese.
Please note that this board is for Japanese.
-
- Posts: 4
- Joined: Thu Nov 18, 2021 3:15 pm
Re: Print the VPN allocated IP => username in a separate file
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.
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.