2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-28 16:06:34 +01:00

fix /dev/net/tun

This commit is contained in:
kev
2015-06-14 15:15:04 +08:00
parent 1ca9164f76
commit 84144a30f7
3 changed files with 16 additions and 15 deletions

View File

@@ -32,21 +32,18 @@ To use this image, you need to:
server:
image: vimagick/tinc
ports:
- "655:655/udp"
- "655:655"
volumes:
- tinc:/etc/tinc
net: host
privileged: true
cap_add:
- NET_ADMIN
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
```
[1]: http://tinc-vpn.org/