mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-27 02:09:06 +02:00
update
This commit is contained in:
parent
cc743c01fc
commit
55dbb0b182
@ -19,7 +19,7 @@ RUN apk add -U iptables tinc \
|
|||||||
|
|
||||||
WORKDIR /etc/tinc/$NETNAME
|
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 "Subnet=$ADDRESS\\nSubnet=0.0.0.0/0" > hosts/server \
|
||||||
&& echo -e "\\n" | tincd -n $NETNAME -K4096 \
|
&& echo -e "\\n" | tincd -n $NETNAME -K4096 \
|
||||||
&& echo -e "ifconfig \$INTERFACE $ADDRESS netmask $NETMASK" > tinc-up \
|
&& echo -e "ifconfig \$INTERFACE $ADDRESS netmask $NETMASK" > tinc-up \
|
||||||
|
@ -66,7 +66,7 @@ $ watch docker exec tinc_tinc_1 netstat -an
|
|||||||
|
|
||||||
```
|
```
|
||||||
# start
|
# start
|
||||||
$ tincd -D -d -n netname --pidfile /tmp/tinc.pid
|
$ tincd -d -D -n netname --pidfile /tmp/tinc.pid
|
||||||
|
|
||||||
# stop
|
# stop
|
||||||
$ tincd -k --pidfile /tmp/tinc.pid
|
$ tincd -k --pidfile /tmp/tinc.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user