Page 1 of 1

Lazza python script and vpngate problem

Posted: Sat Jan 12, 2019 7:05 pm
by JoeBird
Hello,
today i have tried python script from Lazza to connect with vpngate. It's very easy to use nad run the script by providing the desired output country, but i have some error output and i can't figure out how to solve this.

https://gist.github.com/Lazza/bbc15561b65c16db8ca8

********************************************************************************************
Can't get to work. I have different returns.
Sometimes is:
AUTH: Received control message: AUTH_FAILED
SIGTERM[soft,auth-failure] received, process exiting

in this case:
WARNING: Failed running command (--up/--down): could not execute external program


./vpngate.py US

Found 5 servers for country US
5 of these servers support OpenVPN

== Best server ==
HostName: vpn605585772
IP: 173.218.24.64
Score: 424095
Ping: 47
Speed: 16.242415 MBps
Country: United States

Launching VPN...
Sat Jan 12 17:59:12 2019 OpenVPN 2.4.3 arm-oe-linux-gnueabi [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jan 5 2019
Sat Jan 12 17:59:12 2019 library versions: OpenSSL 1.0.2m 2 Nov 2017, LZO 2.10
Sat Jan 12 17:59:12 2019 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sat Jan 12 17:59:12 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Jan 12 17:59:12 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]173.218.24.64:995
Sat Jan 12 17:59:12 2019 Socket Buffers: R=[87380->87380] S=[16384->16384]
Sat Jan 12 17:59:12 2019 Attempting to establish TCP connection with [AF_INET]173.218.24.64:995 [nonblock]
Sat Jan 12 17:59:13 2019 TCP connection established with [AF_INET]173.218.24.64:995
Sat Jan 12 17:59:13 2019 TCP_CLIENT link local: (not bound)
Sat Jan 12 17:59:13 2019 TCP_CLIENT link remote: [AF_INET]173.218.24.64:995
Sat Jan 12 17:59:13 2019 TLS: Initial packet from [AF_INET]173.218.24.64:995, sid=3e78cfb9 5b8a9522
Sat Jan 12 17:59:13 2019 VERIFY OK: depth=2, C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Certification Authority
Sat Jan 12 17:59:13 2019 VERIFY OK: depth=1, C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO RSA Domain Validation Secure Server CA
Sat Jan 12 17:59:13 2019 VERIFY OK: depth=0, OU=Domain Control Validated, OU=PositiveSSL Wildcard, CN=*.opengw.net
Sat Jan 12 17:59:14 2019 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Sat Jan 12 17:59:14 2019 [*.opengw.net] Peer Connection Initiated with [AF_INET]173.218.24.64:995
Sat Jan 12 17:59:15 2019 SENT CONTROL [*.opengw.net]: 'PUSH_REQUEST' (status=1)
Sat Jan 12 17:59:16 2019 PUSH: Received control message: 'PUSH_REPLY,ping 3,ping-restart 10,ifconfig 10.211.1.121 10.211.1.122,dhcp-option DNS 10.211.254.254,dhcp-option DNS 8.8.8.8,route-gateway 10.211.1.122,redirect-gateway def1'
Sat Jan 12 17:59:16 2019 OPTIONS IMPORT: timers and/or timeouts modified
Sat Jan 12 17:59:16 2019 OPTIONS IMPORT: --ifconfig/up options modified
Sat Jan 12 17:59:16 2019 OPTIONS IMPORT: route options modified
Sat Jan 12 17:59:16 2019 OPTIONS IMPORT: route-related options modified
Sat Jan 12 17:59:16 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Jan 12 17:59:16 2019 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sat Jan 12 17:59:16 2019 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jan 12 17:59:16 2019 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sat Jan 12 17:59:16 2019 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jan 12 17:59:16 2019 ROUTE_GATEWAY 192.168.8.1/255.255.255.0 IFACE=eth0 HWADDR=00:17:6b:33:4b:6c
Sat Jan 12 17:59:16 2019 TUN/TAP device tun0 opened
Sat Jan 12 17:59:16 2019 TUN/TAP TX queue length set to 100
Sat Jan 12 17:59:16 2019 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Sat Jan 12 17:59:16 2019 /sbin/ip link set dev tun0 up mtu 1500
Sat Jan 12 17:59:16 2019 /sbin/ip addr add dev tun0 local 10.211.1.121 peer 10.211.1.122
Sat Jan 12 17:59:16 2019 /etc/openvpn/update-resolv-conf tun0 1500 1559 10.211.1.121 10.211.1.122 init
**Sat Jan 12 17:59:16 2019 WARNING: Failed running command (--up/--down): could not execute external program**
Sat Jan 12 17:59:16 2019 Exiting due to fatal error
******************************************************************************************
******************************************************************************************
In attachment is configuration file which script make automatically (auto generated), and use as config.