Consider the following situation:
I have 2 machines (S) and (M). S can use all ports, but M can only use port 80. M is running Windows. S is running Debian.
For example, if a program on M wants to use port X to connect to server A, the request should be redirected to port 80 of S. S should then use its own port X to send the request to A and then return the response to port 80 of M.
Is there a way to produce this?