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

SoftEther VPN に関するご質問はこのフォーラムにお気軽にご投稿ください。
Post Reply
mank
Posts: 4
Joined: Thu Nov 18, 2021 3:15 pm

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

Post by mank » Fri Feb 03, 2023 3:04 pm

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.

cedar
Site Admin
Posts: 2054
Joined: Sat Mar 09, 2013 5:37 am

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

Post by cedar » Mon Feb 06, 2023 10:19 am

VPNCMD コマンドライン管理ツールや JSON API では問題がありますか?

mank
Posts: 4
Joined: Thu Nov 18, 2021 3:15 pm

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

Post by mank » Tue Feb 07, 2023 4:11 pm

Cedar,
Unfortunately I understand only English.
Could you be kind enough to translate your answer?

cedar
Site Admin
Posts: 2054
Joined: Sat Mar 09, 2013 5:37 am

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

Post by cedar » Wed Feb 08, 2023 1:12 am

Are you having trouble using the VPNCMD command line management tool or the JSON API?

Please note that this board is for Japanese.

mank
Posts: 4
Joined: Thu Nov 18, 2021 3:15 pm

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

Post by mank » Fri Feb 17, 2023 11:30 am

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.

Post Reply