act28 / pia-openvpn-proxy

An Alpine Linux docker container running Privoxy and OpenVPN via Private Internet Access
19 stars 9 forks source link

Issue - Fail to download config files #16

Closed humphs01 closed 2 years ago

humphs01 commented 2 years ago

Hi,

PIA is not connecting. Any help appreciated

I am getting the following error in the log:

2022-04-04 23:59:12 TCP/UDP: Preserving recently used remote address: [AF_INET]188.241.178.42:501 2022-04-04 23:59:12 Attempting to establish TCP connection with [AF_INET]188.241.178.42:501 [nonblock] 2022-04-04 23:59:12 TCP connection established with [AF_INET]188.241.178.42:501 2022-04-04 23:59:12 TCP_CLIENT link local: (not bound) 2022-04-04 23:59:12 TCP_CLIENT link remote: [AF_INET]188.241.178.42:501 2022-04-04 23:59:12 [dublin409] Peer Connection Initiated with [AF_INET]188.241.178.42:501 2022-04-04 23:59:12 sitnl_send: rtnl: generic error (-101): Network unreachable 2022-04-04 23:59:12 TUN/TAP device tun0 opened 2022-04-04 23:59:12 /sbin/ip link set dev tun0 up mtu 1500 2022-04-04 23:59:12 /sbin/ip link set dev tun0 up 2022-04-04 23:59:12 /sbin/ip addr add dev tun0 10.8.19.12/24 2022-04-04 23:59:12 WARNING: OpenVPN was configured to add an IPv6 route. However, no IPv6 has been configured for tun0, therefore the route installation may fail or may not work as expected. 2022-04-04 23:59:12 add_route_ipv6(2000::/3 -> :: metric -1) dev tun0 RTNETLINK answers: Permission denied 2022-04-04 23:59:12 ERROR: Linux route -6 add command failed: external program exited with error status: 2 2022-04-04 23:59:12 Initialization Sequence Completed 2022-04-04 23:59:17.762 7f8465b1eb48 Info: Privoxy version 3.0.33 2022-04-04 23:59:17.762 7f8465b1eb48 Info: Program name: privoxy 2022-04-04 23:59:17.764 7f8465b1eb48 Info: Loading filter file: /config/privoxy/default.filter 2022-04-04 23:59:17.784 7f8465b1eb48 Info: Loading filter file: /config/privoxy/user.filter 2022-04-04 23:59:17.784 7f8465b1eb48 Info: Loading actions file: /config/privoxy/match-all.action 2022-04-04 23:59:17.784 7f8465b1eb48 Info: Loading actions file: /config/privoxy/default.action 2022-04-04 23:59:17.790 7f8465b1eb48 Info: Loading actions file: /config/privoxy/user.action 2022-04-04 23:59:17.790 7f8465b1eb48 Info: Listening on port 8118 on IP address 0.0.0.0

act28 commented 2 years ago

This error? ERROR: Linux route -6 add command failed: external program exited with error status: 2

You can ignore that. OpenVPN insists on adding an IPv6 route, even though it is disabled. PIA doesn't support IPv6 either. If the config files were failing to download, you would not get this far.

Are you certain you can't connect through the proxy on 0.0.0.0:8118?

humphs01 commented 2 years ago

If I try and access a webpage (example www.rte.ie) via Firefox with that proxy address set i get the following error: 2022-04-05 05:35:09.461 7f846591fb38 Request: www.rte.ie:443/ 2022-04-05 05:35:14.466 7f846591fb38 Info: Can not resolve www.rte.ie: Try again 2022-04-05 05:35:14.469 7f846591fb38 Crunch: DNS failure: www.rte.ie:443 2022-04-05 05:35:25.596 7f846591fb38 Request: push.services.mozilla.com:443/ 2022-04-05 05:35:30.599 7f846591fb38 Info: Can not resolve push.services.mozilla.com: Try again 2022-04-05 05:35:30.603 7f846591fb38 Crunch: DNS failure: push.services.mozilla.com:443

act28 commented 2 years ago

That's a DNS issue. You may have to manually add a nameserver in /etc/resolv.conf. Or try redeploying or restarting the container, and see if that fixes it.

humphs01 commented 2 years ago

I took out the PIA DNS servers set in the Docker run (209.222.18.218 & 209.222.18.222). Once I recreated the container it worked for me. Not sure if this is specific to my set up but either way it is working now. Thanks for your help