Coder Social home page Coder Social logo

docker-openvpn's People

Contributors

os11k avatar tsaikd avatar whisper40 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-openvpn's Issues

The server side does not set dns resolver in client file

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.

Are you sure the client mode works ?

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.