Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.02 KB

File metadata and controls

45 lines (26 loc) · 1.02 KB

docker-proxy-relay

A docker container to forward traffic to an NTLM HTTP proxy.

Why?

To use linux behind http proxy at work.

  1. start the container with cntlm and redsocks inside
  2. set up an iptable rules to redirect traffic to the container

How to use it?

Download / clone the repository to build the container:

docker build . -t docker-proxy-relay:1.0

Create ntlm_proxy.config file with the set of parameters as below:

domain=DOMAIN
proxy_host=proxy.company.com
proxy_port=8080
proxy_user=username

Redirect outgoing HTTP traffic to the container, iptables.sh contains very minimal setup for clean Centos 7 installation:

./iptables.sh

Start the container:

./docker_proxy.sh start

To stop the container:

./docker_proxy.sh stop
./iptables-clean.sh

To get status:

./docker_proxy.sh status

Alternatives

go-any-proxy may be an alternative.