1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02: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

View File

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

View File

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