I have a server behind gateway, which means it’s only pingable internally. Now I want to forward traffic from a outside server to this internal server. I want to use socat like:
socat TCP4-LISTEN:8080, TCP:[internal server]:8080 # on external server
Which clearly won’t work because the IP address of that server is not available.
So how can I achieve this? I am open to any solutions.