mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
update
This commit is contained in:
parent
55dbb0b182
commit
0d4780b70d
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user