Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to standalone OpenVPN with docker-compose #100

Open
githilman opened this issue Aug 19, 2024 · 1 comment
Open

Can't connect to standalone OpenVPN with docker-compose #100

githilman opened this issue Aug 19, 2024 · 1 comment

Comments

@githilman
Copy link

githilman commented Aug 19, 2024

Try to run this with docker-compose with my existing OpenVPN server but still the UI can't connect to the existing OpenVPN.

Here's my docker-compose.yml

openvpn-ui:
       container_name: openvpn-ui
       image: d3vilh/openvpn-ui:latest
       environment:
           - OPENVPN_ADMIN_USERNAME=admin
           - OPENVPN_ADMIN_PASSWORD=admin
       privileged: true
       ports:
           - "8080:8080/tcp"
       volumes:
           - /etc/openvpn:/etc/openvpn
           - ./db:/opt/openvpn-ui/db
           - /etc/openvpn/server/easy-rsa:/usr/share/easy-rsa
           - /etc/openvpn/server/easy-rsa/pki:/usr/share/easy-rsa/pki
           - /var/run/docker.sock:/var/run/docker.sock:ro
       restart: always

Here's the logs:

2024/08/19 02:14:38.635 [E] [default.go:32]  dial tcp: lookup openvpn on 189.255.169.234:53: no such host
2024/08/19 02:14:38.635 [W] [default.go:33]  passed client line: &{tcp openvpn:2080}
2024/08/19 02:14:38.635 [W] [default.go:34]  error: dial tcp: lookup openvpn on 189.255.169.234:53: no such host
2024/08/19 02:14:38.635 [D] [utils.go:51]  null
2024/08/19 02:14:38.647 [E] [default.go:42]  dial tcp: lookup openvpn on 189.255.169.234:53: no such host
2024/08/19 02:14:38.647 [D] [utils.go:51]  null
2024/08/19 02:14:38.657 [E] [default.go:50]  dial tcp: lookup openvpn on 189.255.169.234:53: no such host
2024/08/19 02:14:38.657 [D] [utils.go:51]  -1
2024/08/19 02:14:38.666 [E] [default.go:58]  dial tcp: lookup openvpn on 189.255.169.234:53: no such host
2024/08/19 02:14:38.666 [D] [utils.go:51]  null
2024/08/19 02:14:38.669 [E] [funcmap.go:44]  Unknown type: <nil>
2024/08/19 02:14:38.669 [E] [funcmap.go:44]  Unknown type: <nil>
@thxomas
Copy link

thxomas commented Oct 30, 2024

Hi,

You should change the Management Interface Adress in OpenVPN UI Settings.
Set it to the IP of your docker host, eg. : 10.0.0.1:2080

('openvpn' will never resolve to the right IP to connect to)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants