haugene / docker-transmission-openvpn

Docker container running Transmission torrent client with WebUI over an OpenVPN tunnel
GNU General Public License v3.0
4.13k stars 1.21k forks source link

No external connections when VPN is running #52

Closed scottydelicious closed 8 years ago

scottydelicious commented 8 years ago

I fired up a haugene/transmission-openvpn docker instance with PIA credentials. I can reach the web interface, but adding magnet links or torrent files never progresses. They are stalled at 0% with no connections.

Tailing the log I can see: (6) Could not resolve host: www.privateinternetaccess.com Got new port from pia transmission auth not required localhost:9091/transmission/rpc/ responded: "success" Checking port... Error: portTested: http error 0: No Response

When I "docker exec -it haugene-transmission /bin/bash", I cannot ping anything. restarting openvpn through the script doesn't help. If i issue "ip link delete tun0" to remove the tunnel device (tun0-00), I get "File descriptor in bad state".

Any ideas?

haugene commented 8 years ago

Sounds like a DNS issue. Have you tried starting the container with Google dns as stated in the "Known Issues" section of the readme?

scottydelicious commented 8 years ago

Thank you haugene. I feel like an idiot missing such a simple corrective measure that was laid out right in the README. Adding "--dns 8.8.8.8 --dns 8.8.4.4" to my docker run command resolved this issue.

I apologize for taking up your time on this. Please mark this issue as solved or resolved.

SOLUTION: add --dns flags to the docker command.

haugene commented 8 years ago

No worries :) Glad it worked!