Page 1 of 1

Communication between vpncmd and vpnserver SSL protocol

Posted: Fri Jan 20, 2017 9:27 am
by warpandas
By default, `vpncmd` appears to be using TLSv1.2 for communication with `vpnserver`.

Is there any information with regards to how one would write a library for communicating with the vpnserver?

Re: Communication between vpncmd and vpnserver SSL protocol

Posted: Mon Jan 23, 2017 10:12 am
by moatazelmasry
The best library I know is SoftEtherPy
https://github.com/mindcollapse/SoftEtherPy

Which talks to a vpnserver service via Python. You can have a look at the code and how this library is communicating with the server.

Also a while back, I started working on a similar library based on NodeJS, that makes direct use of vpncmd:
https://github.com/moatazelmasry2/softether.js

But so far I implemented like 10% of the functionality and almost no documentation yet

Hope this helps
Moataz

Re: Communication between vpncmd and vpnserver SSL protocol

Posted: Wed Jan 25, 2017 3:22 am
by warpandas
moatazelmasry wrote:
> The best library I know is SoftEtherPy
> https://github.com/mindcollapse/SoftEtherPy
>
> Which talks to a vpnserver service via Python. You can have a look at the
> code and how this library is communicating with the server.
>
> Also a while back, I started working on a similar library based on NodeJS,
> that makes direct use of vpncmd:
> https://github.com/moatazelmasry2/softether.js
>
> But so far I implemented like 10% of the functionality and almost no
> documentation yet
>
> Hope this helps
> Moataz

Is this a working js library? Also, correct me if I'm wrong, but this seems to a bit higher level than SoftEtherPy.

Re: Communication between vpncmd and vpnserver SSL protocol

Posted: Wed Jan 25, 2017 11:39 am
by moatazelmasry
SoftEtherPy uses the service layer/API offered by SoftEther server

softether.js automates the use of vpncmd tool