From 0d4780b70d0c1681469c897fc0cc58eb9d7a240a Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 24 Jun 2015 17:34:41 +0800 Subject: [PATCH] update --- tinc/Dockerfile | 2 +- tinc/Dockerfile.debian | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tinc/Dockerfile b/tinc/Dockerfile index 88c0ec3..a55c0e0 100644 --- a/tinc/Dockerfile +++ b/tinc/Dockerfile @@ -19,7 +19,7 @@ RUN apk add -U iptables tinc \ WORKDIR /etc/tinc/$NETNAME -RUN echo -e "Name=server" > tinc.conf \ +RUN echo -e "Name=server\\nInterface=tun0" > 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 \ diff --git a/tinc/Dockerfile.debian b/tinc/Dockerfile.debian index f5c0f67..8cbf97d 100644 --- a/tinc/Dockerfile.debian +++ b/tinc/Dockerfile.debian @@ -20,7 +20,7 @@ RUN apt-get update \ WORKDIR /etc/tinc/$NETNAME -RUN /bin/echo -e "Name=server\\nAddressFamily=ipv4\\nInterface=tun0" > tinc.conf \ +RUN /bin/echo -e "Name=server\\nInterface=tun0" > tinc.conf \ && /bin/echo -e "Subnet=$ADDRESS\\nSubnet=0.0.0.0/0" > hosts/server \ && /bin/echo -e "\\n" | tincd -n $NETNAME -K4096 \ && /bin/echo -e "ifconfig \$INTERFACE $ADDRESS netmask $NETMASK" > tinc-up \