Print the VPN allocated IP => username in a separate file
Posted: 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.
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.