Sign inSign up

amontaigu/redsocks

By amontaigu

Updated almost 10 years ago

Redsocks in a docker image.

Image
0

882

amontaigu/redsocks repository overview

Redsocks Docker image

Description

Docker image used to handle corporate http proxy requests.

Thanks to original project from ncarlier !

Usage

Start the container like this:

docker run --privileged=true --net=host -d amontaigu/redsocks 1.2.3.4 3128

Replace the IP and the port by those of your proxy.

The container will start redsocks and automatically configure iptable to forward all the TCP traffic through the proxy.

If you want to add exception for an IP or a range of IP you can edit the whitelist file. Once edited you can replace this file into the container by mounting it:

docker run --privileged=true --net=host \
  -v whitelist.txt:/etc/redsocks-whitelist.txt \
  -d amontaigu/redsocks 1.2.3.4 3128

Use docker stop to halt the container. The iptables rules should be reversed. If not, you can execute this command:

iptables-save | grep -v REDSOCKS | iptables-restore

Tag summary

Content type

Image

Digest

sha256:70d8ec716

Size

58.9 MB

Last updated

almost 10 years ago

docker pull amontaigu/redsocks