Opened 4 years ago
Closed 4 years ago
#1236 closed Bug / Defect (invalid)
Connection Refused when port sharing local requests
Reported by: | Begall | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Networking | Version: | |
Severity: | Not set (select this one, unless your'e a OpenVPN developer) | Keywords: | |
Cc: |
Description
Hopefully this makes sense. I’ve got OpenVPN Access Server 2.7.5 setup on port 443, as I have only one (Ubuntu 18.04) server and I want to access the VPN externally. As I have a number of both internal and external web services I want to use, I have used a custom port share to redirect non-openvpn traffic locally to port 4545, where an OpenResty/Nginx? instance reverse proxies my web applications.
The port-share configuration I’ve got is:
Enable=True
IP_address=127.0.0.1
Port=4545
Service=Custom
This all works fine when I access services from another device on the network, such as my phone. However, I have discovered that requests made from the same server that go across the OpenVPN port-share - even a simple curl - will fail with a connection refused. For example:
curl https://myservice.internal.mydomain.org results in: curl: (7) Failed to connect to my service.internal.mydomain.org port 443: Connection refused
I need these local requests to work as I have an identity service that my server is redirecting to, and I want to use my auth service hostname to SSL encrypt the requests. Possibly I have misunderstood how this should work, so maybe someone could explain what I’m missing? I’ve tried a few variants of my IP address and it hasn’t helped.
Replying to Begall:
This trac is for bugs related to OpenVPN Community edition.
For OpenVPN Access server, please contact their web support portal.
https://openvpn.net/