+ 1
Creating L2TP connection in C# Windows Application
Hello there i am making a connection management application for a company where i have encountered an issue regarding the PreSharedKey encoding for creation of a pbk file as an L2TP Connection if anybody has ever created an L2TP phonebook (pbk) VPN connection using C# , please Consider answering!
4 Answers
+ 1
here is a class that can be used for such matter if anyone else ever had this matter i put in sololearn
https://code.sololearn.com/cPGn6euqfZAl/?ref=app
+ 3
I have no experience, but did some googling for you
https://stackoverflow.com/questions/48648353/attempting-to-set-l2tp-only-vpn-properties-in-c-sharp.
This talks about RasEntry.
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/aa377274(v=vs.85)
https://www.codeproject.com/Questions/502534/PermissionplusrequiredplustopluscreateplusaplusDot
Is it a option to let windows create the VPN-Connection and let the program use tcpip or file-share ?
0
i know the question seems a bit confusing , in short : 1- does anybody know any library for creation of a vpn connection?
2- does anybody know how to manually encode or encrypt the reshared key text to put it in pbk file of the vpn manually while the pbk is opened as note pad for example
0
sneeze thank you for your concern yea i have found two solutions for it yesterday also one is through powershell within a cmd process in code and other one was this DotRas Library , but both make the vpn with the windows feature and that means the vpn will appear in network sharinf center and all its settings will be visible there, i was aiming to have a hidden pbk made where i want like how i made the PPTP connection