A configuration to have a server sharing HTTP/HTTPS, ssh and PostgreSQL on the same ports (80 and 443)

I got into trouble during lectures because of port filtering (classic issues). It was a lecture with PostgreSQL, and I wanted a recent version and to monitor the activity of the students. The easiest way was to use my own version of PostgreSQL. In a better world, I would have used a VM just for the lecture, but the real world is not a fantasy.

Basically, I want to be able to do the following to not have anymore trouble.


Compiled the: dim. 07 janv. 2024 23:19:30 CET