dperson / torproxy

GNU Affero General Public License v3.0
515 stars 144 forks source link

Routing all host traffic doesn't work out of the box #18

Closed adek05 closed 6 years ago

adek05 commented 6 years ago

I started docker container you provide to setup proxy:

docker run -it -p 8118:8118 -p 9050:9050 -d dperson/proxy

And then run the script tor-route-all-traffic.sh on the host (not container). Problems which I have is 1) DNS resolution doesn't work 2) Even if I disable entries in iptables which route DNS traffic through the proxy, still curl cannot connect to websites via proxy.

Is there some extra tuning needed to the script/docker run command to make it work?

adek05 commented 6 years ago

I've debugged the problem. I had to run container with --net=host for routing to work. Feel free to close if you don't think update to the documentation is needed.

dperson commented 6 years ago

I think that I will update the documentation to make it more clear. Thanks.