1
23.7 Legacy Series / Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
« on: August 24, 2023, 06:21:11 am »
Following the advice on this thread, I have been trying the sslh package for the last few days. This is really easy to setup.
However, there is one problem I have not yet been able to solve. Because sslh takes port 443 and "forward" to services hosted on other ports on localhost (like 1194 for openVPN et 444 for nginx, for exemple), the source IP that is logged by these services is only the localhost IP, and not the real source IP. Thus, IP ACLs setup in Nginx do not work, for exemple.
The original software has a "transparent mode" that solve this problem, but this mode does not seem (or I was not able to find it) to be available on OPNsense.
However, there is one problem I have not yet been able to solve. Because sslh takes port 443 and "forward" to services hosted on other ports on localhost (like 1194 for openVPN et 444 for nginx, for exemple), the source IP that is logged by these services is only the localhost IP, and not the real source IP. Thus, IP ACLs setup in Nginx do not work, for exemple.
The original software has a "transparent mode" that solve this problem, but this mode does not seem (or I was not able to find it) to be available on OPNsense.