1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
This commit is contained in:
kev 2015-06-24 17:34:41 +08:00
parent 55dbb0b182
commit 0d4780b70d
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" > 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 \

@ -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 \