All Projects → tiredofit → docker-tinc

tiredofit / docker-tinc

Licence: MIT license
Docker Tinc VPN Mesh server w/S6 Overlay Init, Zabbix Monitoring, and distributed configuration updating based on Alpine

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-tinc

docker-mongodb-backup
Docker MongoDB Backup Container based on Alpine w/S6 init, Zabbix Monitoring
Stars: ✭ 27 (-22.86%)
Mutual labels:  alpine, zabbix-agent, s6-overlay
docker-formio-api
Docker Form.io Server based on Debian w/s6 init, Zabbix Monitoring
Stars: ✭ 14 (-60%)
Mutual labels:  alpine, s6-overlay
docker-jitsi-meet
Docker Jitsi Meet WebRTC conferencing system w/Prosody XMPP and s6 overlay
Stars: ✭ 66 (+88.57%)
Mutual labels:  alpine, s6-overlay
alpine-qbittorrent-openvpn
qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
Stars: ✭ 230 (+557.14%)
Mutual labels:  alpine, s6-overlay
docker-nfs4
Simple containerized NFS v4 server running on Alpine Linux
Stars: ✭ 19 (-45.71%)
Mutual labels:  alpine, s6-overlay
docker-alpine
Docker Alpine Linux Base Images
Stars: ✭ 27 (-22.86%)
Mutual labels:  alpine, s6-overlay
docker-terraform-docs
Alpine-based multistage-build version of terraform-docs and terraform-docs-replace in multiple versions to be used for CI and other reproducible automations
Stars: ✭ 59 (+68.57%)
Mutual labels:  alpine
static-php-cli
Build single static PHP binary in linux, build with PHP project together, with Swoole and other popular extensions included.
Stars: ✭ 129 (+268.57%)
Mutual labels:  alpine
docker-opengl
Multi-Arch Docker - Mesa 3D OpenGL Software Rendering (Gallium) - LLVMpipe, and OpenSWR Drivers
Stars: ✭ 68 (+94.29%)
Mutual labels:  alpine
mailbox
📨 簡易電子報發送系統,使用 #Golang 實作,send campaign mail with open, click tracker.
Stars: ✭ 26 (-25.71%)
Mutual labels:  alpine
pi-factory
Bootstrap a bitcoin lightning box for Raspberry Pi 3 based on Alpine Linux
Stars: ✭ 17 (-51.43%)
Mutual labels:  alpine
docker-alpine-sshd
A lightweight OpenSSH Docker Image built atop Alpine Linux.
Stars: ✭ 108 (+208.57%)
Mutual labels:  alpine
mtproxy
Alpine-based Docker Image for Telegram MTProto Proxy
Stars: ✭ 89 (+154.29%)
Mutual labels:  alpine
docker-alpine-python2
The smallest Docker image with Python 2.7 (~50MB)
Stars: ✭ 36 (+2.86%)
Mutual labels:  alpine
php-mssql-alpine
Docker image with Microsoft SQL Server Driver into php image alpine
Stars: ✭ 28 (-20%)
Mutual labels:  alpine
nghttp2-alpine
Minimal nghttp2 docker image with ALPN support
Stars: ✭ 14 (-60%)
Mutual labels:  alpine
youtube-dl-docker
Download with youtube-dl using command line arguments or a configuration file + Automated updates
Stars: ✭ 44 (+25.71%)
Mutual labels:  alpine
adoteumdev
The AdoteUmDev project
Stars: ✭ 101 (+188.57%)
Mutual labels:  alpine
mysqlclient
the mysqlclient Docker image (based on python:3.8.5-alpine3.12) https://github.com/PyMySQL/mysqlclient-python
Stars: ✭ 20 (-42.86%)
Mutual labels:  alpine
docker-njs
Pure njs(Nginx JavaScript) Docker image, more convenient for development and debugging.
Stars: ✭ 16 (-54.29%)
Mutual labels:  alpine

github.com/tiredofit/docker-tinc

GitHub release Build Status Docker Stars Docker Pulls Become a sponsor Paypal Donate


About

This will build a Docker Image for tinc - A VPN service.

  • Latest Release automatically downloaded and compiled (1.1 test series)
  • Automatically downloads peer configuration files from git server based on network name.
  • Configurable Options for resyncing information from git server
  • Configurable Options to enable various types of compression or enable debugging for troubleshooting.
  • Logrotate Installed and will rotate logs daily and hold for 7 days.

Do NOT use a public git server to host your repository, as it will reveal personal details of your network! You have been warned

Maintainer

Table of Contents

Prerequisites and Assumptions

  • This image relies on a private Git Repository to store configuration data. Create a private repo and user account in git before proceeding.

Installation

Build from Source

Clone this repository and build the image with docker build <arguments> (imagename) .

Prebuilt Images

Builds of the image are available on Docker Hub and is the recommended method of installation.

The following image tags are available along with their tagged release based on what's written in the Changelog:

Container OS Tag
Alpine :latest

Multi Architecture

Images are built primarily for amd64 architecture, and may also include builds for arm/v7, arm64 and others. These variants are all unsupported. Consider sponsoring my work so that I can work with various hardware. To see if this image supports multiple architecures, type docker manifest (image):(tag)

Configuration

Quick Start

Persistent Storage

The following directories are used for configuration and can be mapped for persistent storage.

Directory Description
/etc/tinc/ Root tinc Directory
/var/log/tinc Log Files

Environment Variables

Base Images used

This image relies on an Alpine Linux base image that relies on an init system for added capabilities. Outgoing SMTP capabilities are handlded via msmtp. Individual container performance monitoring is performed by zabbix-agent. Additional tools include: bash,curl,less,logrotate, nano,vim.

Be sure to view the following repositories to understand all the customizable options:

Image Description
OS Base Customized Image based on Alpine Linux
Parameter Description Default
CIPHER Encryption Cipher aes-256-cbc
COMPRESSION Level of LZO Compression (e.g. 9) 0
CRON_PERIOD Adjustable time to check GIT Server for any updates 30
DEBUG Adjustable Debug level as per tinc documentation (e.g 5) 0
DIGEST Hashing Digest sha256
ENABLE_GIT Enable Git Repository Functionality TRUE or FALSE TRUE
ENABLE_CONFIG_RELOAD Enable reloading Tinc when configuration changes TRUE
ENABLE_WATCHDOG Reload Tinc when it can't get a response from a host FALSE
GIT_PASS Password for above user (e.g. password)
GIT_URL GIT Repository URL (ie https://github.com/username/repo.git)
GIT_USER Username to Authenticate to git server (e.g. username)
INTERFACE Which Interface to use (relies on /dev/tun) (e.g. tun0) tun0
LISTEN_PORT Listening Port 655
LOG_PATH Log Path /var/log/tinc
MAC_LENGTH MAC Length 16
NETWORK The VPN name - (e.g. securenetwork)
NODE The unique hostname of the machine joining the VPN (e.g. hostname)
PEERS Which server should be used to contact first to create the mesh VPN (e.g. host1_hostname_com host2_hostname_com)
PRIVATE_IP The private IP that is assigned to this machine on the VPN (e.g. 172.16.23.13)
PUBLIC_IP The public IP you wish to listen on (e.g. 137.233.212.121)
SETUP_TYPE Utilize these above environment variables AUTO or MANUAL AUTO
WATCHDOG_HOST IP Address or hostname of host to check connectivity
WATCHDOG_FREQUENCY How many seconds to wait between checks on host 60

Networking

The following ports are exposed.

Port Description
655 Tinc

NOTE: You must also allow capabilities for NET_ADMIN to docker to be able to have access to the IP Stack. Also, you must create /dev/tun as a device. If you want to make the Docker Host be able to be accessible you also must add network:host as an option otherwise only the containers will be accessible. See the working docker-compose.yml example as shown above.


Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

bash docker exec -it (whatever your container name is) bash

Support

These images were built to serve a specific need in a production environment and gradually have had more functionality added based on requests from the community.

Usage

  • The Discussions board is a great place for working with the community on tips and tricks of using this image.
  • Consider sponsoring me personalized support.

Bugfixes

  • Please, submit a Bug Report if something isn't working as expected. I'll do my best to issue a fix in short order.

Feature Requests

  • Feel free to submit a feature request, however there is no guarantee that it will be added, or at what timeline.
  • Consider sponsoring me regarding development of features.

Updates

  • Best effort to track upstream changes, More priority if I am actively using the image in a production environment.
  • Consider sponsoring me for up to date releases.

License

MIT. See LICENSE for more details.

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].