BlackArch/torctl

route docker traffic possible?

diiirt opened this issue · 5 comments

is it possible to get this to work with docker containers? I have tried running the container with the '--network host' flag but it still doesn't route the traffic through tor. Thanks!

noraj commented

It may be a problem if docker client supports only HTTP(S) and FTP proxy but not SOCKS ones

Thanks for the response but I couldn't get it to work. I tried setting up the proxy as in the link to 127.0.0.1:9050 but the container doesn't seem to care. I was trying use torctl with https://github.com/vector-im/element-web, maybe their docker version doesn't support socks.

noraj commented

The docker client seems to not support SOCKS proxy for now

noraj commented

Thanks for the response but I couldn't get it to work. I tried setting up the proxy as in the link to 127.0.0.1:9050 but the container doesn't seem to care. I was trying use torctl with https://github.com/vector-im/element-web, maybe their docker version doesn't support socks.

The address should be socks5h://localhost:9050 see AL wiki and not 127.0.0.1:9050. But since docker doesn't support it you can setup a HTTP proxy reading the AL wiki.