Skip to content
This repository has been archived by the owner. It is now read-only.
Redsocks in a docker image.
Shell
Branch: master
Clone or download
Latest commit 223202a Nov 22, 2015
Permalink
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
README.md Make removed Nov 22, 2015

README.md

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
You can’t perform that action at this time.