OpenVPN-Client

OpenVPN-Client

Application Docker from ich777's Repository

Vue d'ensemble

This OpenVPN container was designed to be started first to provide a connection to other containers (using '--net=container:OpenVPN-Client'), see the documentation for further help here: https://github.com/ich777/docker-openvpn-client The basic steps for a OpenVPN connection that requires a Username and Password are: 1) Rename your *.ovpn to 'vpn.ovpn' and place it in your OpenVPN-Client directory, 2) Create in the same directory a file named 'vpn.auth' and place your Username in the first line and the Password for the connection in the second line and save it 3) Restart the container open the logs and see if the connection to your VPN establishes successfully. To tunnel traffic from another container through this container edit the template from the other container, set the 'Network Type' to: 'None', enable the advanced view in the top right corner and at 'Extra Parameters' add the following: '--net=container:OpenVPN-Client' (replace 'OpenVPN-Client' with the name of this container if you choose a different name for it) and write down the port(s) that you need to connect to. After that go back to edit this containers template and add the port that you have noted in the above step to this container and click 'Apply' now you can connect to the container that you tunneld the traffic though this container. You can route the traffic from multiple containers through this container with the steps above, if you need more ports then simply add more ports in this containers template. DNS: By default this container uses Googles DNS Server: 8.8.8.8 if you want to edit this turn on 'Advanced View' and edit this setting at 'Extra Parameters'. IPv6: By default IPv6 is disabled in this container. If you want to enable it turn on 'Advanced View' and delete the entry: '--sysctl net.ipv6.conf.all.disable_ipv6=1' from the 'Extra Parameters' or simply set it to: '--sysctl net.ipv6.conf.all.disable_ipv6=0'. ADVANCED CONFIG: If you leave the appdata directory for this container empty it will start up and you have to manually configure it with the builtin comand: 'openvpn.sh', see: https://github.com/ich777/docker-openvpn-client

Arguments d'exécution

Réseau
bridge
Coquille
bash
Privilégié
false
Paramètres supplémentaires
--cap-add=NET_ADMIN --dns=8.8.8.8 --sysctl net.ipv6.conf.all.disable_ipv6=1 --restart=unless-stopped

Configuration du modèle

Data PathPathrw

Data Path for your 'vpn.ovpn' and your certificates or your 'vpn.auth'.

Cible
/vpn
Valeur
/mnt/cache/appdata/openvpn-client
TUN deviceDevice

TUN device that is needed to run the container.

Valeur
/dev/net/tun
FIREWALLVariable

This variable enables the firewall and blocks any connection when the VPN connection is not established (you don't have to specify anything here, if you want to disable the Firewall then simply delete this entry)

CONNECTED_CONTAINERSVariable

This variable enables the Connected Containers feature which will notify compatible containers when the VPN is restarted and restart themselves. To enable this feature enter '27286' without quotes, if you don't want to enable this feature leave this field empty.

PING_IPVariable

Enable a ping check if the container is still connected to the VPN (specify a IP like '8.8.8.8' or a domain name 'google.com' without quotes here). The container will restart if the ping fails (default interval is 30 seconds). If you don't want to use this feature leave this field empty.

PING_INTERVALVariable

Specify your ping interval in seconds here (default 30 seconds).

Valeur
30

Catégories

Télécharger les statistiques

42,880
Total des téléchargements
1,138
Ce mois-ci
605
Moyenne / Mois

Total des téléchargements au fil du temps

Chargement du graphique...

Détails

Référentiel
ghcr.io/ich777/openvpn-client
Dernière mise à jour2025-12-11
Première vue2022-01-09

Exécutez OpenVPN-Client sur Unraid.

OpenVPN-Client est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.