I have a soft-ether VPN server and I want to make a custom client application, which will look like other vpn clients (Nord,Hola vpns) in python. The problem is in python I cannot find a way to use windows built-in vpn manager to connect via IPsec protocol programmatically.
In C I can find a RAS API but since I am new to network infrastructure programming so its hard for me to dissolve it properly uderstand how it actually works.
You can use
Add-VpnConnection
andSet-VpnConnectionIPsecConfiguration
in Windows PowerShellSee the Example 2 in 2nd link:
And it should also be simple to call the PowerShell from Python.