C
C#8mo ago
forkt

❔ implementing openvpn to my c# wpf app

I am trying to make a vpn app for my school project and I was wondering how I could implement openvpn into my c# wpf app.
6 Replies
arion
arion8mo ago
ProtonVPN has a github repo that shows how they handle openvpn in their app if you wanna take some inspiration (Note their app is running on .NET Framework, has multiple connection types, which also include openvpn) https://github.com/ProtonVPN/win-app/tree/master
GitHub
GitHub - ProtonVPN/win-app: Official ProtonVPN Windows app
Official ProtonVPN Windows app. Contribute to ProtonVPN/win-app development by creating an account on GitHub.
Stan
Stan8mo ago
sounds hard depending on how far you wanna take it. If you wanna use existing VPN technology and trigger them using commands with WPF or something, doable. Actually implementing your own VPN implementation, not gonna work. Usually when i have to deal with this type of thing i either rely on a nuget package with all the hard stuff abstracted away or call commands using System.Process on installable executables, which would need to be packaged with the app or downloaded by the app.
forkt
forkt8mo ago
made my brain fry too much stuff going on sadly there arent any recent nuget packages, only outdated ones regarding to openvpn. im gonna see if its possible to make an installer which automatically installs openvpn whilst installing the app as well and try to implement it from there but im not really that advanced at c# so if anyone could help it would be great
Stan
Stan8mo ago
yeah doing it yourself full out is not super doable. you could probably use winget to install openvpn client. idk what commands if any are available though so youd have to look into that EDIT: nvm, i thought winget shipped with windows, it doesnt
Stan
Stan8mo ago
https://stackoverflow.com/questions/61456939/how-can-one-use-the-command-line-to-use-openvpn-on-windows dunno if command line calls its the best approach, but its the best i got.
Stack Overflow
How can one use the command-line to use openvpn on windows?
I have been trying to come up with a way to interact with openvpn on windows. I did fine the openvpn.exe but there are no commands that will use a config file to connect with a vpn server. I am using
Accord
Accord8mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity. Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts