binhex / arch-privoxyvpn

Docker build script for Arch Linux base with Privoxy and OpenVPN
GNU General Public License v3.0
102 stars 24 forks source link

[PIA] Port forwarding #4

Closed Davy1992 closed 4 years ago

Davy1992 commented 4 years ago

Hi,

First I'd like to thank you for creating such an awesome script, you saved me and so many other people days of research and work.

I was wondering if you could enable port forwarding for pia in arch-privoxyvpn. I saw that the getvpnport.sh script is included with the image but for whatever reason it isn't working.

I tried running it with these environment variables:

- VPN_PROV=pia
- APPLICATION=qbittorrent
- STRICT_PORT_FORWARD=yes

But I keep getting the "Application does not require port forwarding or VPN provider is != pia" message.

Although when I run docker exec privoxyvpn /root/getvpnport.sh the port gets successfully assigned.

binhex commented 4 years ago

you dont need port forwarding for privoxy/socks5 to operate, and thus its not enabled, do you need incoming ports?

Davy1992 commented 4 years ago

I do need incoming ports for a different service that I'm using in conjunction with your image via network_mode. I tried using VPN_OPTIONS with --up and --route-up to execute my own script but neither wanted to work.

The --up command would override the existing script and --route-up seems like it's being executed before I get DNS resolution, and when I add --route-delay I get Having issues resolving name 'www.google.com' for the duration of the delay that I set.

UPDATE: I got my script running via --route-up by calling my function in the background and sleeping for 5 seconds to allow for the network to fully initialize.