transocks for transparently routing to an HTTP(S) proxy
10K+
Transocks for transparently proxying HTTP(S). I made this to be used with jusschwa/squid-ssl-x86 as part of the e2guardian-angel project. This container can replace jusschwa/redsocks-squid-x86 as redsocks does not seem to work in Redhat flavored Linux.
transocks user is uid 32.
Usage:
docker run -e "PROXY_IP=127.0.0.1" -e "PROXY_PORT=3128" --network host jusschwa/transocks-proxy-x86
Use host network if you are wanting to use iptables on the host to redirect to transocks.
Of course you can replace PROXY_IP and PROXY_PORT with whatever matches your setup.
For redirection:
iptables -t nat -A OUTPUT -m owner --uid-owner 32 -j ACCEPT
iptables -t nat -A OUTPUT -m owner --uid-owner root -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 12345
iptables -t nat -A OUTPUT -p tcp --dport 443 -j REDIRECT --to-ports 12345
Content type
Image
Digest
Size
46.4 MB
Last updated
over 5 years ago
docker pull jusschwa/transocks-proxy-pi