Connecting to PIA using OpenVPN on a Raspberry Pi 4 (Raspbian)

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
bpdronkers
OpenVpn Newbie
Posts: 1
Joined: Tue Jun 01, 2021 2:15 pm

Connecting to PIA using OpenVPN on a Raspberry Pi 4 (Raspbian)

Post by bpdronkers » Tue Jun 01, 2021 2:17 pm

I used these directions to setup Private Internet Access (PIA) VPN for my Raspberry Pi 4: https://www.raspberrypi-spy.co.uk/2020/ ... tup-guide/

I'm running Raspbian, and using the Pi as a mini desktop computer attached to my TV. And I'd like to have a VPN connection to avoid sharing my IP. Unfortunately, my IPv6 is still being broadcasted. So I used these instructions to disable IPv6: https://cwesystems.com/?p=231

Unfortunately, when running sudo openvpn ca_vancouver.ovpn, I still get the following error:

Code: Select all

Tue Jun  1 07:49:22 2021 WARNING: file 'auth.txt' is group or others accessible
Tue Jun  1 07:49:22 2021 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019
Tue Jun  1 07:49:22 2021 library versions: OpenSSL 1.1.1d  10 Sep 2019, LZO 2.10
Tue Jun  1 07:49:22 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]208.78.42.222:1198
Tue Jun  1 07:49:22 2021 UDP link local: (not bound)
Tue Jun  1 07:49:22 2021 UDP link remote: [AF_INET]208.78.42.222:1198
Tue Jun  1 07:49:22 2021 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue Jun  1 07:49:22 2021 [vancouver412] Peer Connection Initiated with [AF_INET]208.78.42.222:1198
Tue Jun  1 07:49:23 2021 OpenVPN ROUTE6: OpenVPN needs a gateway parameter for a --route-ipv6 option and no default was specified by either --route-ipv6-gateway or --ifconfig-ipv6 options
Tue Jun  1 07:49:23 2021 OpenVPN ROUTE: failed to parse/resolve route for host/network: 2000::/3
Tue Jun  1 07:49:23 2021 TUN/TAP device tun0 opened
Tue Jun  1 07:49:23 2021 /sbin/ip link set dev tun0 up mtu 1500
Tue Jun  1 07:49:23 2021 /sbin/ip addr add dev tun0 10.32.112.52/24 broadcast 10.32.112.255
Tue Jun  1 07:49:23 2021 WARNING: OpenVPN was configured to add an IPv6 route over tun0. However, no IPv6 has been configured for this interface, therefore the route installation may fail or may not work as expected.
Tue Jun  1 07:49:23 2021 Initialization Sequence Completed
More so, when trying to browse to any website in Chromium, I get the following error (in this case I'm trying www.privateinternetaccess.com):

This site cant be reached www.privateinternetaccess.com. Server IP address could not be found. Error: DNS_PROBE_FINISHED_BAD_CONFIG

Any advise or support available to help resolve this problem while blocking my IPv6?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Connecting to PIA using OpenVPN on a Raspberry Pi 4 (Raspbian)

Post by TinCanTech » Tue Jun 01, 2021 4:32 pm

You can try --pull-filter to ignore IPv6 options pushed by the server. See the manual for details.

You can also use --block-ipv6 but you have to upgrade to version 2.5 for that.

Post Reply