I'm running raspbian on my raspberry pi model B and I have a VPN account with Private Internet Access. I've used their openvpn settings to connect (I'm using the same ones on my ubuntu laptop and everything works ok), but I can't ping anything.
I'm using the following command to connect
sudo /usr/sbin/openvpn --status /var/run/openvpn.Switzerland.status 10 --cd /etc/openvpn --config /etc/openvpn/Switzerland.conf
My config file in /etc/openvpn/Switzerland.conf looks like:
client dev tun proto udp remote swiss.privateinternetaccess.com 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt tls-client remote-cert-tls server auth-user-pass login.conf comp-lzo verb 1 reneg-sec 0 crl-verify crl.pem
The output I get is:
Sat Sep 19 14:55:25 2015 OpenVPN 2.2.1 arm-linux-gnueabihf [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014 Sat Sep 19 14:55:25 2015 WARNING: file 'login.conf' is group or others accessible Sat Sep 19 14:55:25 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Sat Sep 19 14:55:25 2015 LZO compression initialized Sat Sep 19 14:55:25 2015 RESOLVE: NOTE: swiss.privateinternetaccess.com resolves to 4 addresses Sat Sep 19 14:55:25 2015 UDPv4 link local: [undef] Sat Sep 19 14:55:25 2015 UDPv4 link remote: [AF_INET]126.96.36.199:1194 Sat Sep 19 14:55:25 2015 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this Sat Sep 19 14:55:26 2015 [Private_Internet_Access] Peer Connection Initiated with [AF_INET]188.8.131.52:1194 Sat Sep 19 14:55:28 2015 TUN/TAP device tun0 opened Sat Sep 19 14:55:28 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 Sat Sep 19 14:55:28 2015 /sbin/ifconfig tun0 10.117.1.6 pointopoint 10.117.1.5 mtu 1500 Sat Sep 19 14:55:28 2015 Initialization Sequence Completed
It appears to connect, but the if I try to ping google.com or nslookup google.com in another terminal it fails. Any suggestions on anything I could have done wrong or change to get this working?