A docker container to forward traffic to an NTLM HTTP proxy.
To use linux behind http proxy at work.
- start the container with cntlm and redsocks inside
- set up an iptable rules to redirect traffic to the container
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
go-any-proxy may be an alternative.