Sign inSign up

jusschwa/transocks-proxy-pi

By jusschwa

Updated over 5 years ago

transocks for transparently routing to an HTTP(S) proxy

Image
0

10K+

jusschwa/transocks-proxy-pi repository overview

transocks-proxy-x86

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.

  • PROXY_IP: IP of proxy server you want to proxy to
  • PROXY_PORT: port that proxy is listening on

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

Tag summary

Content type

Image

Digest

Size

46.4 MB

Last updated

over 5 years ago

docker pull jusschwa/transocks-proxy-pi