rodrigogs / easyvpn Goto Github PK
View Code? Open in Web Editor NEWEasily connect to a VPN in a country of your choice.
License: BSD 2-Clause "Simplified" License
Easily connect to a VPN in a country of your choice.
License: BSD 2-Clause "Simplified" License
when I try openvpn --mktun --dev tun
it give :
info: Querying data...
error: TypeError: May not write null values to stream
at validChunk (_stream_writable.js:209:10)
at WriteStream.Writable.write (_stream_writable.js:243:12)
at resolve (/usr/lib/node_modules/easyvpn/index.js:45:48)
at Promise._execute (/usr/lib/node_modules/easyvpn/node_modules/bluebird/js/release/debuggability.js:300:9)
at Promise._resolveFromExecutor (/usr/lib/node_modules/easyvpn/node_modules/bluebird/js/release/promise.js:481:18)
at new Promise (/usr/lib/node_modules/easyvpn/node_modules/bluebird/js/release/promise.js:77:14)
at vpns.slice.map (/usr/lib/node_modules/easyvpn/index.js:45:18)
at Array.map (native)
at WriteStream.writer.on (/usr/lib/node_modules/easyvpn/index.js:44:41)
at emitOne (events.js:96:13)
at WriteStream.emit (events.js:188:7)
at WriteStream.<anonymous> (fs.js:1942:10)
at FSReqWrap.oncomplete (fs.js:112:15)
When I try add country to the command easyvpn -c US
:
info: Querying data...
info: Starting openvpn...
info: Options error: You must define TUN/TAP device (--dev)
info: Use --help for more information.
info:
info: child process exited with code 1
When I look at /tmp/openvpnconf
, it is empty.
Any plan to make it works with Node 4.x and 6.x ?
Thanks
Differently from autovpn, this tool is able to run on Windows. Instead of executing sudo directly from the code, this tool leaves the task up to the user, so it is suposed to work on any platform.
So pretty much, if the remote host wanted to, they could run arbitrary commands on your host, as root.
You can provide script-security 2
inside the configuration file which will result in execution of binaries and other scripts inside the configuration file
¯\(ツ)/¯
This is a great project, I was so disappointed when I read that autovpn
doesn't officially support Windows, and so excited that "easyvpn" supports Windows!
I've encountered en error though, details below.
OpenVPN's installed without error (computer's not restarted since the installer did not ask to do so).
The system is Win 7 Hoem.
The installation was done without any error.
The command prompt is opened via "Node.js command prompt"
Below is the full error message when I run easyvpn
:
C:\Users\edwin>easyvpn
info: Querying data...
error: API request failed with code: ECONNRESET
Error message: read ECONNRESET
C:\Users\edwin>
I wish you can help, thanks1
Could you add screenshots here on GitHub? Does your application come with a GUI?
Getting UnhandledPromiseRejectionWarning
error on ArchLinux.
Output
λ easyvpn
info: Querying data...
info: Starting openvpn...
info: Options error: Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: config (2.4.3)
info: Use --help for more information.
info:
(node:25707) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Command failed: "/usr/bin/openvpn" --config "/tmp/openvpnconf" [object Object] [object Object] [object Object] [object Object] [object Object]
Options error: Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: config (2.4.3)
Use --help for more information.
(node:25707) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
info: child process exited with code 1
Getting Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: config (2.4.0)
on macOS Sierra. Also there is something strange with the version. npm
reports 1.2.0
. easyvpn
reports 1.1.3
.
node --version
v7.5.0
openvpn --version
OpenVPN 2.4.0 x86_64-apple-darwin16.3.0 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] built on Dec 28 2016
library versions: OpenSSL 1.0.2k 26 Jan 2017, LZO 2.09
Originally developed by James Yonan
Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <[email protected]>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=no enable_def_auth=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_iproute2=no enable_libtool_lock=yes enable_lz4=yes enable_lzo=yes enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_password_save=yes enable_pedantic=no enable_pf=yes enable_pkcs11=no enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_silent_rules=no enable_small=no enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=no enable_werror=no enable_win32_dll=yes enable_x509_alt_username=no with_crypto_library=openssl with_gnu_ld=no with_mem_check=no with_plugindir='$(libdir)/openvpn/plugins' with_sysroot=no
easyvpn --version
1.1.3
npm list easyvpn -g
/usr/local/lib
└── [email protected]
easyvpn
info: Querying data...
info: Starting openvpn...
info: Options error: Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: config (2.4.0)
info: Use --help for more information.
info:
info: child process exited with code 1
When I tried to run the example code I got:
λ easyvpn -c US
info: disabling NCP mode (--ncp-disable) because not in P2MP client or server mode
info: Options error: You must define TUN/TAP device (--dev)
info: Use --help for more information.
info:
info: child process exited with code 1
... after that I tried to read the --help
section and got:
λ easyvpn --help
error: TypeError: May not write null values to stream
at validChunk (_stream_writable.js:209:10)
at WriteStream.Writable.write (_stream_writable.js:243:12)
at resolve (/usr/lib/node_modules/easyvpn/index.js:26:48)
at Promise._execute (/usr/lib/node_modules/easyvpn/node_modules/bluebird/js/release/debuggability.js:300:9)
at Promise._resolveFromExecutor (/usr/lib/node_modules/easyvpn/node_modules/bluebird/js/release/promise.js:481:18)
at new Promise (/usr/lib/node_modules/easyvpn/node_modules/bluebird/js/release/promise.js:77:14)
at vpns.slice.map (/usr/lib/node_modules/easyvpn/index.js:26:18)
at Array.map (native)
at WriteStream.writer.on (/usr/lib/node_modules/easyvpn/index.js:25:41)
at emitOne (events.js:96:13)
at WriteStream.emit (events.js:188:7)
at WriteStream.<anonymous> (fs.js:1942:10)
at FSReqWrap.oncomplete (fs.js:112:15)
--> at resolve (/usr/lib/node_modules/easyvpn/index.js:26:48)
Hi,I have installed the easyvpn,but when I try to use it,a accident happened.
easyvpn
info: Querying data...
error: API request failed with code: ECONNRESET
Error message: read ECONNRESET
can you tell me what's wrong with it? Thanks~
Any guide line in setting up the openvpn in osx? I have installed the openvpn, but still got the following error:
$ easyvpn
info: Querying data...
info: Starting openvpn...
error: [0415/120100.503670:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
error: [47453:0415/120100.504299:ERROR:gpu_process_host.cc(975)] GPU process exited unexpectedly: exit_code=5
error: [0415/120100.538447:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
error: [47453:0415/120100.539191:ERROR:gpu_process_host.cc(975)] GPU process exited unexpectedly: exit_code=5
error: [0415/120100.574278:FATAL:electron_main_delegate_mac.mm(71)] Unable to find helper app
error: [47453:0415/120100.574908:ERROR:gpu_process_host.cc(975)] GPU process exited unexpectedly: exit_code=5
info:
info: child process exited with code 0
MBA Silicon OSX Monterey
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.