quickcurrent I have a Raspberry Pi 3B running OpenVPN hardwired to my router, and working well for all devices via wi-fi. I also have another Raspberry Pi 3B running LibreELEC and KODI for Internet TV reception hardwired to my router. Unfortunately many streaming sites are getting blocked. :-( Brian Hornsby's OpenVPN Script to the rescue. But how to get this working? I have now installed the script on my TV box. The .ovpn configuration file for the TV Box follows: client dev tun proto udp remote x.x.x.x 1194 resolv-retry infinite nobind persist-key persist-tun key-direction 1 remote-cert-tls server tls-version-min 1.2 verify-x509-name server name cipher AES-256-CBC auth SHA256 auth-user-pass /storage/.config/vpn-config/pass.txt comp-lzo verb 1 crl-verify /storage/.config/vpn-config/crl.pem <ca> (+ certificates) When I test this configuration at the OpenVPN Box terminal window, I get this: sudo openvpn --config /home/pi/ovpns/TVBoxPi.ovpn Thu Oct 26 13:59:33 2017 OpenVPN 2.4.0 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jun 22 2017 Thu Oct 26 13:59:33 2017 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.08 Enter Private Key Password: ****************** Thu Oct 26 13:59:41 2017 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this Thu Oct 26 13:59:41 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]x.x.x.x:1194 Thu Oct 26 13:59:41 2017 UDP link local: (not bound) Thu Oct 26 13:59:41 2017 UDP link remote: [AF_INET]x.x.x.x:1194 Thu Oct 26 13:59:42 2017 [server] Peer Connection Initiated with [AF_INET]x.x.x.x:1194 Thu Oct 26 13:59:43 2017 TUN/TAP device tun2 opened Thu Oct 26 13:59:43 2017 do_ifconfig, tt->did_ifconfig_ipv6_setup=0 Thu Oct 26 13:59:43 2017 /sbin/ip link set dev tun2 up mtu 1500 Thu Oct 26 13:59:43 2017 /sbin/ip addr add dev tun2 10.8.0.2/24 broadcast 10.8.0.255 RTNETLINK answers: File exists Thu Oct 26 13:59:43 2017 ERROR: Linux route add command failed: external program exited with error status: 2 Thu Oct 26 13:59:43 2017 Initialization Sequence Completed Can someone please help me out with this error: ERROR: Linux route add command failed: external program exited with error status: 2 Stomped :-( Thank you, quickcurrent
TinCanTech quickcurrent wrote Thu Oct 26 13:59:43 2017 /sbin/ip addr add dev tun2 10.8.0.2/24 broadcast 10.8.0.255 RTNETLINK answers: File exists You are trying to assign the same IP address twice ..
quickcurrent Thanks for the quick answer, TinCanTech. I don't know how that happened since TVBoxPi.ovpn was created completely automatically! What do I need to change?
TinCanTech quickcurrent wrote What do I need to change? Probably something wrong with this: quickcurrent wrote Brian Hornsby's OpenVPN Script to the rescue I suggest you try this: HOWTO: For OpenVPN Community Edition and this: HOWTO: Request Help ! 8-)