Is it possible to proxy all requests to another server saving corresponding ports and protocols?
I have a homeserver (without public ip) and VDS (with public ip).
I also established connection between them using VPN (openVPN).
So now, my homeserver has 10.8.0.5
ip address in virtual network.
So i am looking for an opportunity to proxy all requests coming to the VDS to homeserver (through nginx
or any another way
)
For instance:
- proxy ssh connections:
port: 22
protocol: TCP
should be proxied to port 22 using protocol TCP - proxy http requests:
port: 80
protocol: HTTP
should be proxied to port 80 using protocol HTTP - proxy specific requests:
port: ANY PORT
protocol: ANY PROTOCOL
should be proxied to the same port using the same protocol
Is it possible? And if yes, how can i bring it into life? Which tools can I use?
Thank you!