1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/tinc
2015-06-14 13:41:39 +08:00
..
docker-compose.yml add tinc 2015-06-14 11:06:12 +08:00
Dockerfile fix 2015-06-14 12:01:04 +08:00
README.md update 2015-06-14 13:41:39 +08:00

tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and encryption to create a secure private network between hosts on the Internet.

To use this image, you need to:

  • Have baisc knowledges of tinc
  • Create a directory tree by hand read this
  • Use docker-compose to manage

directory tree

~/fig/tinc/
├── docker-compose.yml
└── tinc/
    ├── netname/
    │   ├── hosts/
    │   │   ├── client
    │   │   ├── client-down
    │   │   ├── client-up
    │   │   └── server
    │   ├── rsa_key.priv
    │   ├── tinc.conf
    │   ├── tinc-down
    │   └── tinc-up
    └── nets.boot

docker-compose.yml

server:
  image: vimagick/tinc
  ports:
    - "655:655/udp"
  volumes:
    - tinc:/etc/tinc
  net: host
  privileged: true
  restart: always

TODO: I haven't figure out how to make net: bridge work yet!

server

$ fig up -d
$ iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -j MASQUERADE