added initial tinc config

This commit is contained in:
jkoschke
2022-01-12 23:20:46 +01:00
parent c98b394b0d
commit 23a4dd23e0
5 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,25 @@
ARG BUILD_FROM
FROM $BUILD_FROM
RUN sudo apt-get update
RUN sudo apt-get install tinc
EXPOSE 655/tcp 655/udp
VOLUME [ "/etc/tinc" ]
ENTRYPOINT [ "/usr/sbin/tinc" ]
COPY run.sh /
COPY tinc-down /
COPY tinc-up /
RUN chmod a+x /run.sh
RUN chmod a+x /tinc-up
RUN chmod a+x /tinc-down
RUN mkdir hosts
RUN tincd -c . -K
#CMD [ "/run.sh" ]
CMD [ "start" "-D" "-U" "nobody" ]

View File

@ -0,0 +1,17 @@
name: "Tinc VPN"
description: "Addon to connect HASS via Tinc VPN"
version: "1.0.0"
slug: "hassio_tinc"
arch:
- aarch64
- amd64
- armhf
- armv7
- i386
ports:
- 655/tcp: 655
- 655/udp: 655
options:
name: "hassio"
schema:
name: str

View File

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bashio
echo "Hello world!"

View File

@ -0,0 +1 @@
ifconfig $INTERFACE down

View File

@ -0,0 +1 @@
ifconfig $INTERFACE 10.0.0.1 netmask 255.255.255.0