Sign inSign up

davideciarmi/alpine-router

By davideciarmi

Updated almost 4 years ago

This is a docker image of Alpine with router redirect features

Image
0

10K+

davideciarmi/alpine-router repository overview

alpine-router

This is a docker image of Alpine with router redirect features

Features:

  • Routes and forwarding: Allow to create a port forwarding rules, allowing the other clients of the vpn, to connect to the ports of the docker host.

Usage

Here are some example snippets to help you get started creating a container.

---
version: "2.1"
services:
  alpine-router:
    image: davideciarmi/alpine-router
    cap_add:
      - NET_ADMIN
    privileged: true
    environment:
      #- DEBUG=true	
      #SETTINGS ROUTING - FORWARDING:
      - HOST_ROUTES=192.168.99.0/24  #Create a route to 192.168.99.0/24, because i have a ip 172.17.0.2, and after a VPN, i can't redirect ports to ip 192.168.99.1.
      #redirect ports below to this host, VPNIP:3389 -> 192.168.99.1:3389
      - PORT_FORWARD_HOST=192.168.99.1
      - PORT_FORWARD_PORTS=5900,3389      
    restart: unless-stopped

Tag summary

Content type

Image

Digest

sha256:f15dd80e6

Size

6.2 MB

Last updated

almost 4 years ago

docker pull davideciarmi/alpine-router