IPTablesProxy is a quick invention using iptables allowing proxying of external services. By default, it will proxy any traffic it receives. To run it on its own:
$ docker run -it --rm -e SERVERIP='172.217.9.46' --cap-add=NET_ADMIN -p 8080:80 soarinferret/iptablesproxyOptionally, you can define SERVERIP and HOSTIP to specify a specific TCP port mapping.
$ docker run -it --rm -e SERVERIP='172.217.9.46' -e SERVERPORT='3200' -e HOSTPORT='80' --cap-add=NET_ADMIN -p 8080:80 soarinferret/iptablesproxySERVERIP- The IP address of the server you are proxyingSERVERPORT- The Port being used by the server you want to proxy (optional)HOSTPORT- Port on the container you plan to expose the port with. This doesn't have to be the same asSERVERPORT(optional)
Nothing special to build this - but if you want to make sure you have the most up to date alpine source, here ya go:
$ docker build -t iptablesproxy .