Skip to content
This repository has been archived by the owner. It is now read-only.
Redsocks in a docker image.
Branch: master
Clone or download
Latest commit 223202a Nov 22, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
redsocks Folder layout rework Nov 22, 2015
Dockerfile Folder layout rework Nov 22, 2015 Make removed Nov 22, 2015

Redsocks Docker image


Docker image used to handle corporate http proxy requests.

Thanks to original project from ncarlier !


Start the container like this:

docker run --privileged=true --net=host -d amontaigu/redsocks 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 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
You can’t perform that action at this time.