Giter Site home page Giter Site logo

Comments (14)

bnhf avatar bnhf commented on May 19, 2024

@swimer-girl

What OS are you using (Raspbian, Debian, Ubuntu) and what version (Buster, Bullseye, etc)?

Are you launching the container via Portainer Stacks (as shown below), and have you set your environment variables?

Please login through a terminal, and post the output of pivpn -d

image

from openvpn-admin-plus.

swimer-girl avatar swimer-girl commented on May 19, 2024

OS: Ubuntu 16.04 xenial
Yes, I launch the container via Portainer Stacks. I use the environment variables as you used

  • PIVPN_SERVER=vpn_ac01d026-c0d2-4203-9441-bd9e1e35b5a3
  • PIVPN_CONF=server.conf

debug.log

from openvpn-admin-plus.

bnhf avatar bnhf commented on May 19, 2024

@swimer-girl

Looks like the issue is here, based on your debug log:

Oct 14 15:35:45 vpn ovpn-server[4583]: MANAGEMENT: Socket bind failed on local address [AF_INET]REDACTED:2080: Address already in use (errno=98)
Oct 14 15:35:45 vpn ovpn-server[4583]: Exiting due to fatal error

So PiVPN isn't running, and even if it were the port we need to use for the management interface isn't open. I believe the problem may be your use of 127.0.0.1 instead of 0.0.0.0 for the IP of the host. My recollection is that in a Docker environment, 127.0.0.1 refers to the container, and 0.0.0.0 to the host. It's also possible you're already using port 2080 for something else, but I think my first explanation is more likely.

Edit your settings file in the WebUI to match the Management setting shown below and reboot, and of course, make sure that all the other OpenVPN server settings are the way you want them:

image

from openvpn-admin-plus.

swimer-girl avatar swimer-girl commented on May 19, 2024

I checked everything and made changes.
Here is the result of the command again pivpn -d
debug.log

from openvpn-admin-plus.

bnhf avatar bnhf commented on May 19, 2024

@swimer-girl

OK, PiVPN is running now and listening on the management port. Is the WebUI showing you status information on the Home page now? OPENVPN VERSION, OPERATING SYSTEM, ARCHITECTURE and the like?

from openvpn-admin-plus.

swimer-girl avatar swimer-girl commented on May 19, 2024

I see only this.
2022-10-14_21-42-43

from openvpn-admin-plus.

bnhf avatar bnhf commented on May 19, 2024

@swimer-girl

How do you have your settings page configured in the UI? You may need to use the IP address of your host computer rather than the hostname -- which may or may not resolve depending on your network setup. Hostname is used in this example, but just replace it with the LAN IP of your host:

image

from openvpn-admin-plus.

bnhf avatar bnhf commented on May 19, 2024

@swimer-girl

Just to clarify I'm talking about the "Management interface address" field. Try using the IP address of the host with a :2080 after.

from openvpn-admin-plus.

swimer-girl avatar swimer-girl commented on May 19, 2024

I understood you, I just wrote the answer and tried to realize my epic-fail.
I spent a lot of time thinking about this setting. Only did it in the wrong context.
I tried to specify different options: localhost, 0.0.0.0 and 127.0.0.1.
But I never had an idea to put exactly the host-IP of the machine on my local network.
Now everything works for me.
Mega giant thanks for your help.
You are amazing!!!
2022-10-14_22-02-36

from openvpn-admin-plus.

swimer-girl avatar swimer-girl commented on May 19, 2024

While I was tinkering with the code, I found where you can make other changes for me. For example, fix config files and other points related specifically to the openvpn server.
But what IP to use in this setting, I did not guess

from openvpn-admin-plus.

bnhf avatar bnhf commented on May 19, 2024

@swimer-girl

Out of curiosity, how are you handling reaching your external (public) IP from an OpenVPN client? Do you have a static IP, or are you using a Dynamic DNS service to give you a reliable hostname?

from openvpn-admin-plus.

swimer-girl avatar swimer-girl commented on May 19, 2024

I have port forwarding configured from the firewall to my openvpn server for client. Server has static IP.

from openvpn-admin-plus.

bnhf avatar bnhf commented on May 19, 2024

@swimer-girl

So in that same Settings page, there's a field for "Server Address (external)". This refers to the IP address you get from your Internet provider, if it's a static address you can use that directly. If not, you're going to want to sign-up with a DDNS service so that you have a hostname you can use that will keep track of an occasionally changing Internet IP address from that ISP.

from openvpn-admin-plus.

swimer-girl avatar swimer-girl commented on May 19, 2024

In this field I used my external IP from my Internet provider, yes.

from openvpn-admin-plus.

Related Issues (20)

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.