added initial tinc config
This commit is contained in:
25
tinc-homeassistant/Dockerfile
Normal file
25
tinc-homeassistant/Dockerfile
Normal 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" ]
|
||||
17
tinc-homeassistant/config.yaml
Normal file
17
tinc-homeassistant/config.yaml
Normal 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
|
||||
3
tinc-homeassistant/run.sh
Normal file
3
tinc-homeassistant/run.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
echo "Hello world!"
|
||||
1
tinc-homeassistant/tinc-down
Normal file
1
tinc-homeassistant/tinc-down
Normal file
@ -0,0 +1 @@
|
||||
ifconfig $INTERFACE down
|
||||
1
tinc-homeassistant/tinc-up
Normal file
1
tinc-homeassistant/tinc-up
Normal file
@ -0,0 +1 @@
|
||||
ifconfig $INTERFACE 10.0.0.1 netmask 255.255.255.0
|
||||
Reference in New Issue
Block a user