0

I'm working at a company that requires a proxy server for connecting to the internet. Unfortunately I have to deal quite much with VMs and docker containers. It's really hard for me to build and test them locally because I have to enter that proxy in all tools (apt, docker itself, tools during docker build, tools on container runtime, ...) that are involved. Sometimes it's not even possible to set up a proxy explicitely.

Now I'm thinking about some tool that I could run as a virtual machine and acts as a network gateway, forwarding the traffic to the proxy (the proxy supports HTTP Connect).

I didn't find anything like this via google. Does anyone here know about a tool (or some iptables magic) to do this?

  • 1
    @Hanginoninquietdesperation Well it's not really a try to circumvent the policy, just to work around the need to enter the proxy in all his containers, sending traffic to one "aggregator" to forward to the proxy, if I'm not mistaken. – Lenniey Dec 9 '16 at 7:48
  • Possible duplicate of Transparent Proxy with Squid / iptables – Florin Asăvoaie Dec 9 '16 at 7:52
  • Create a VM with two network interfaces (I'm going for Linux here). Enable port forwarding and NAT, use iptables to force traffic on port 80 (or whatever) to use the upstream proxy server. Add this VM as gateway for your containers / VMs. (Added as comment because: short summary). – Lenniey Dec 9 '16 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.