Skip to content

norbertwnuk/docker-proxy-relay

 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%