bnhf / openvpn-admin-plus

Docker-based web interface (with golang backend) for monitoring and admin of an OpenVPN TAP/TUN server setup with PiVPN or other OpenVPN server installations. This project has been renamed from pivpn-tap-web-ui, to reflect its new broader scope.
MIT License
143 stars 23 forks source link

Fix your configuration ERROR #73

Closed jrosetto closed 5 months ago

jrosetto commented 5 months ago

Have everything working properly on Ubuntu Server 24.04 except seeing who is connected.

Client count shows MAPPING ERROR and connected clients shows Fix your configuration.

Can you give some pointers on what to look at to get this working?

If you need more info from me feel free to reach out.

Thanks.

Also just noticed the log page is empty

bnhf commented 5 months ago

Client count shows MAPPING ERROR and connected clients shows Fix your configuration.

@jrosetto

This typically means you haven't run through the initial configuration step of inputting your values into Configuration - OpenVPN config. I think sometimes people think they don't need to do this, as their OpenVPN Server is already running -- however it is required. This sets up the OpenVPN Management Interface as well as the logs. Do this first, restart OpenVPN Server, and then you can make your specific changes to Configuration - Settings.

jrosetto commented 5 months ago

Client count shows MAPPING ERROR and connected clients shows Fix your configuration.

@jrosetto

This typically means you haven't run through the initial configuration step of inputting your values into Configuration - OpenVPN config. I think sometimes people think they don't need to do this, as their OpenVPN Server is already running -- however it is required. This sets up the OpenVPN Management Interface as well as the logs. Do this first, restart OpenVPN Server, and then you can make your specific changes to Configuration - Settings.

I think where I went off the rails was when I configured OpenVPN Server as tun instead of tap.

For the fun of it I moved the server back to tap0 and configured OpenVPN GUI v2 client and everything shows as I expect.

Unfortunately OpenVPN Connect v3 Client does not support tap and only works across tun. Is there a way for me to get this gui working with tun?

bnhf commented 5 months ago

Is there a way for me to get this gui working with tun?

@jrosetto

It definitely works with tun and tap, and I use it for both. Can you post your desired OpenVPN tun config, as shown in the WebUI or server.conf file? Your port number is probably the only thing you'd need to redact.

jrosetto commented 5 months ago

Is there a way for me to get this gui working with tun?

@jrosetto

It definitely works with tun and tap, and I use it for both. Can you post your desired OpenVPN tun config, as shown in the WebUI or server.conf file? Your port number is probably the only thing you'd need to redact.

Thank you for pointing me in the right direction. I haven't used OVPN in quite some time and am rusty at configuring. Everything is working as intended now. Frontend looks great, good job :)