Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
OpenVPN - New Instances cannot use Advanced options like "port-share"
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN - New Instances cannot use Advanced options like "port-share" (Read 2289 times)
utmoab
Newbie
Posts: 2
Karma: 0
OpenVPN - New Instances cannot use Advanced options like "port-share"
«
on:
August 16, 2023, 03:11:42 am »
Some roadwarrior users use their openVPN connection on very restricred networks where they are usually allowed only port 80 et 443. We only have one public IP address and host a couple of web applications on the same 443 port.
As such, I have setup an openVPN server over TCP, port 443 with the option "port-share" where non-openVPN traffic (i.e. normal https traffic) is forwarded to an nginx reverse proxy.
On the new "Instances" UI, there is not anymore the possibility to use advances options like "port-share". On the "old" UI for openVPN server, the Advanced option is even commented with "This option will be removed in the future due to being insecure by nature".
Is there any plan to add the posbility to use the "port-share" option on the new Instances UI ?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #1 on:
August 16, 2023, 08:22:22 am »
Hi,
That's sort of why we don't like advanced options: people add useful features and nobody requests a GUI inclusion.
I think this can go in, but I'm asking to create a ticket for it:
https://github.com/opnsense/core/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=
Cheers,
Franco
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #2 on:
August 16, 2023, 08:27:45 am »
The port share feature tends to be slow in my experience. I recommend investigating the os-sslh plugin instead. It works great.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
seed
Full Member
Posts: 174
Karma: 12
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #3 on:
August 19, 2023, 07:39:44 pm »
I also need this option and created a feature request on github:
https://github.com/opnsense/core/issues/6758
Logged
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:
AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance
private user, no business use
seed
Full Member
Posts: 174
Karma: 12
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #4 on:
August 22, 2023, 04:58:47 pm »
it lloks like port-share will not be inplemented
Logged
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:
AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance
private user, no business use
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #5 on:
August 22, 2023, 05:39:42 pm »
Well, not today.
Cheers,
Franco
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #6 on:
August 22, 2023, 05:50:38 pm »
Can't you use os-sslh? It's orders of magnitude faster!
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
smema79
Newbie
Posts: 29
Karma: 0
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #7 on:
August 23, 2023, 06:42:28 pm »
Just tried it, setting up a new Instance.
through the use of os-sslh plugin I can safely make up for not being able to use port-share... in fact, it is more practical.
thanks for the suggestion.
Regards
Logged
seed
Full Member
Posts: 174
Karma: 12
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #8 on:
August 23, 2023, 07:18:47 pm »
i prefer openvpn running on port 443 and use port-share.
The reason:
when sslh stops i cant reach my box. When openvpn is running on tht port its is "closer" to the net. when nginx stop i can connect using openvpn and start the service again. when sslh stops i cant connect to vpn and figure out what happend.
Its also not possible to the the "real" ip in the openvpn log.
Logged
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:
AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance
private user, no business use
smema79
Newbie
Posts: 29
Karma: 0
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #9 on:
August 23, 2023, 08:20:39 pm »
Correct. In the previous post, I was referring to a home/test use condition.
Indeed, the port-share solution has the merits as you indicated and is more convenient in case of traceability of the connections/tunnels/users.
At the moment and pending further development, this plugin gives the possibility to test on the new instance mode if we are in the condition of having only one public IP and need to use port 443 for both, nginx/haproxy and OpenVPN.
Inviato dal mio SM-A336B utilizzando Tapatalk
Logged
utmoab
Newbie
Posts: 2
Karma: 0
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #10 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.
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #11 on:
August 24, 2023, 10:27:16 am »
As far as I get from the available documentation transparent mode for sslh is supported on FreeBSD. You would need manual inbound and outbound firewall/NAT rules to make it work, though. I found this article which explains all the basics, but uses ipfw instead of pf. But one can probably adapt the rules quite easily:
https://www.rutschle.net/tech/sslh/doc/config
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
smema79
Newbie
Posts: 29
Karma: 0
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #12 on:
August 24, 2023, 11:11:11 am »
what I did not understand is whether or not the port-share command on new openvpn instances (not legacy) can, or will, be used again in the future. If yes, at this point I will wait for development to transition.
SSLH can be used in the meantime for just testing compatibility openvpn configurations between clients and legacy/new.
Logged
seed
Full Member
Posts: 174
Karma: 12
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #13 on:
September 28, 2023, 04:24:32 pm »
I don't understand why features like port sharing are not possible.
Removing the extended free text section is fine. But not offering a form where you can set this configuration is not very nice.
If I want a dumb firewall with no finetuning options, I'll take something like a Sophos. The detailed configuration has always been a reason for Opnsense.
i had to vent.
Logged
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:
AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance
private user, no business use
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: OpenVPN - New Instances cannot use Advanced options like "port-share"
«
Reply #14 on:
September 28, 2023, 07:27:16 pm »
There's no reason not to work on a PR for anyone. Expecting someone else to spend their time on it instead is where there is contention. It's probably "easy", but making sure to double-check the OpenVPN documentation and consider the constraints and put them into place and update the help text correctly is what makes this time consuming especially for someone else not using this feature, because then someone else needs to pick it up and wait and debug and so on and so forth.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
OpenVPN - New Instances cannot use Advanced options like "port-share"