Giter VIP home page Giter VIP logo

easyvpn's Introduction

easyvpn's People

Contributors

jason-cooke avatar plondon avatar rodrigogs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyvpn's Issues

Can't get the example working in Ubuntu 16.04

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.

Security issues

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.
  • You download a file over HTTP
  • This file is then piped straight into a file
  • This file is then fed into OpenVPN running as root

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

¯\(ツ)

"ECONNRESET" error on Win7

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

Screenshots

Could you add screenshots here on GitHub? Does your application come with a GUI?

UnhandledPromiseRejectionWarning

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

Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: config (2.4.0)

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

Error when trying to run easyvpn

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)

error in use

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~

openvpn environment

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.