Re: server: listening on two ports at the same time
Gert Doering <[email protected]> Thu, 19 Mar 2026 10:18:25 +0100
| Newsgroups | gmane.network.openvpn.user |
|---|---|
| Message-ID | <[email protected]> |
--===============8614813369687471918==
Content-Type: multipart/signed; micalg=pgp-sha256;
protocol="application/pgp-signature"; boundary="+6A//SPFpQ9ud21E"
Content-Disposition: inline
--+6A//SPFpQ9ud21E
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
On Thu, Mar 19, 2026 at 10:08:45AM +0100, Antonio Quartulli wrote:
> On 18/03/2026 23:55, Greg Troxel wrote:
> > (It would be great if someone could do a blog post or docs change to
> > explain how to configure nginx to function as a proxy to reach an
> > openvpn server on the same host, so that the connection from the client
> > to the server would just be on 443/tcp. Critically, this should work
> > without interfering with the web server, so no remapping /.)
>=20
> It sounds as if you are looking for the --port-share option?
> It's been there for a while (way before multisocket was implemented) and =
it
> seems to be what you are looking for.
I think he wants it the other way round - connections go to nginx, and
*if* openvpn, then forward to openvpn.
No idea if this can be done today - there are some patches floating around
to add various aspects of PROXY PROTOCOL, so maybe it can, maybe not.
gert
--=20
"If was one thing all people took for granted, was conviction that if you=
=20
feed honest figures into a computer, honest figures come out. Never doubte=
d=20
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistre=
ss
Gert Doering - Munich, Germany [email protected]=
=2Ede
--+6A//SPFpQ9ud21E
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCAAdFiEEti5qK05WVwt73GvgHYKe/spWKBIFAmm7v14ACgkQHYKe/spW
KBIRQAv/ZJwdsI4BTpqH2YJibSilNU8xNc9S477u9afhdtkXgL9Y5kyWYryjr1yj
1PRncTouPB47rYhlaIHeay3NF+1fSLK8w9t6tAuKF1IRF0U9j8Xopl/L0hcXblVe
+rSDDvyuz5DeYkzB5Vgg1q4qF0E4IOu++AHZcLFSBB0l3knhsrsbzLwVAYYj5t8d
bv9FxUriDSlc/GldKNii45t80RiVtXnvtXpPSrFB68nMWKbnezDdfbKmcPfU1ISf
oDoV+1284UNu/HRIRXSUD5XqY2u5OBp8jHsy9zuEN0LaCh2V0MK3ccnPHG41AnZC
CvbzdP1dIOewonzhj/v+xJeYBXY4PeH9/H+A6CgxdEQU3+QikLdM1+XMiw7YYrlB
h7ciuuRDoqv/06ErYCYhO/nvnyLwGgtz/xsnkT5OBjkzGGJLhw031sZC+R9nGxYM
yR+d74iqOYy2bPEmv13VHj1LSHTQvEiovF4bCMkF5/VpjKatQhWnubDlurfgHXR7
Jy+nER+P
=CQyv
-----END PGP SIGNATURE-----
--+6A//SPFpQ9ud21E--
--===============8614813369687471918==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============8614813369687471918==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users
--===============8614813369687471918==--