Skip to content

Alpine Docker Container for proxy services with IP Tables

License

Notifications You must be signed in to change notification settings

scott-8/iptablesproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPTablesProxy

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/iptablesproxy

Optionally, 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/iptablesproxy

Env Options

  • SERVERIP - The IP address of the server you are proxying
  • SERVERPORT - 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 as SERVERPORT (optional)

Build it yourself

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 .

About

Alpine Docker Container for proxy services with IP Tables

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 80.9%
  • Dockerfile 19.1%