1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
This commit is contained in:
kev 2015-06-23 15:13:00 +08:00
parent cc743c01fc
commit 55dbb0b182
2 changed files with 2 additions and 2 deletions

@ -19,7 +19,7 @@ RUN apk add -U iptables tinc \
WORKDIR /etc/tinc/$NETNAME
RUN echo -e "Name=server\\nAddressFamily=ipv4\\nInterface=tun0" > tinc.conf \
RUN echo -e "Name=server" > tinc.conf \
&& echo -e "Subnet=$ADDRESS\\nSubnet=0.0.0.0/0" > hosts/server \
&& echo -e "\\n" | tincd -n $NETNAME -K4096 \
&& echo -e "ifconfig \$INTERFACE $ADDRESS netmask $NETMASK" > tinc-up \

@ -66,7 +66,7 @@ $ watch docker exec tinc_tinc_1 netstat -an
```
# start
$ tincd -D -d -n netname --pidfile /tmp/tinc.pid
$ tincd -d -D -n netname --pidfile /tmp/tinc.pid
# stop
$ tincd -k --pidfile /tmp/tinc.pid