jonohill / docker-openvpn-proxy

HTTP proxy server which (selectively) tunnels traffic over an OpenVPN connection
MIT License
80 stars 29 forks source link

ExpressVPN support #8

Closed DoganM95 closed 2 years ago

DoganM95 commented 2 years ago

Hi, i tried creating a container which takes .ovpn files downloaded from ExpressVPN to create a proxy server (ovpn to proxy conversion), but i could not get it working. The logs log my requests, so i am correctly connected to the container, but my ip never changes to the proxy ip (checking with e.g. whatsmyip.com)

Would appreciate any help/info on this

My docker run args include -e "LOCAL_NETWORK=192.168.0.0/24" - where gateway is 192.168.0.1 -e "OPENVPN_USERNAME=<myExpressVpnUsername>" -e "OPENVPN_PASSWORD=<myEvpnPassword>" -v "C:\Users\...\config\:/config/"

Also the network is in bridge mode with ports 80 and 8080 mapped, not in host mode if that makes any difference here

DoganM95 commented 2 years ago

Tried again today, seems to me like the dns server is not working, because it even fails to resolve google.com.

The same config.ovpn file works perfectly fine in windows with openVPN client

Log snippet:

2021-10-16 12:00:29 Initialization Sequence Completed
2021-10-16 12:00:34.851 7fb880054b48 Info: Privoxy version 3.0.32
2021-10-16 12:00:34.852 7fb880054b48 Info: Program name: privoxy
2021-10-16 12:00:34.852 7fb880054b48 Info: Listening on port 8080 on IP address 0.0.0.0

2021-10-16 12:02:34.249 7fb87ff3eb38 Request: github.com:443/
2021-10-16 12:02:36.114 7fb87ff1bb38 Request: whatismyipaddress.com:443/
2021-10-16 12:02:39.254 7fb87ff3eb38 Info: Can not resolve github.com: Try again
2021-10-16 12:02:40.736 7fb87ff3eb38 Request: self.events.data.microsoft.com:443/
2021-10-16 12:02:41.119 7fb87ff1bb38 Info: Can not resolve whatismyipaddress.com: Try again
2021-10-16 12:02:41.218 7fb87fed3b38 Request: web.whatsapp.com:443/
2021-10-16 12:02:42.198 7fb87feb0b38 Request: whatismyipaddress.com:443/
2021-10-16 12:02:42.515 7fb87fe8db38 Request: web.whatsapp.com:443/
2021-10-16 12:02:45.741 7fb87ff3eb38 Info: Can not resolve self.events.data.microsoft.com: Try again
2021-10-16 12:02:46.222 7fb87fed3b38 Info: Can not resolve web.whatsapp.com: Try again
...
DoganM95 commented 2 years ago

Nevermind, switched to https://github.com/haugene/docker-transmission-openvpn which works flawlessly for me