Opened 3 years ago

Closed 3 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:


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:

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 results in: curl: (7) Failed to connect to my 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.

Change History (1)

comment:1 in reply to:  description Changed 3 years ago by tct

Resolution: invalid
Status: newclosed

Replying to Begall:

I’ve got OpenVPN Access Server 2.7.5 setup

This trac is for bugs related to OpenVPN Community edition.

For OpenVPN Access server, please contact their web support portal.

Note: See TracTickets for help on using tickets.