tsaikd / docker-openvpn Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The documentation specifies this test to check if the container is using the vpn connection :
$ apk add --no-cache curl
$ curl http://ifconfig.io
But if you follow exactly the documentation, you can see that your docker client container does not contains a dns to resolve the address. So it will not work.
If you set the dns manually, it will works.
I know that we can put an option for dns resolver in the client file. So i think that it should be in by default when creating user file.
** To reproduce **
Create a server side vpn
Create a client file
Create a client container and use the client file.
In the openvpn container you go to /etc/resolv.conf and see that there is no dns resolver
A temporary bad solution can be to set dns: 1.1.1.1
in the docker-compose.
Hello, i'm trying the client mode, but it seems to have problems...
This is my docker-compose :
version: '3.9'
services:
openvpn:
image: tsaikd/openvpn
container_name: openvpn
restart: unless-stopped
command: --config "/openvpn/client.ovpn"
volumes:
- /home/whisper40/config/openvpn/openvpn-data/ovpn-deadpool.ovpn:/openvpn/client.ovpn
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
ports:
- "45000-45010:45000-45010"
Error :
ERROR: for openvpn Cannot start service openvpn: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "--config": executable file not found in $PATH: unknown
ERROR: for openvpn Cannot start service openvpn: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "--config": executable file not found in $PATH: unknown
ERROR: Encountered errors while bringing up the project.
The file /home/whisper40/config/openvpn/openvpn-data/ovpn-deadpool.ovpn
exists, sure
I tried : --config /openvpn/client.ovpn
and --config "/openvpn/client.ovpn"
I just don't understand what's wrong.. Not a problem of /bin/sh /bin/bash in the container ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.