I have a server exposed to the internet and a personal computer in a private network.
I have an application (Project Zomboid dedicated server) that communicates through UDP ports 16261 and 8766.
I want to be able to listen to those ports in my server and forward the traffic to my personal computer.
My personal computer has Windows 10 and the VPS has Amazon Linux 2
In a TCP escenario I can achieve that executing the following command in my personal computer:
For this example, the server public IP is 123.45.67.89
ssh user@123.45.67.89 -R 0.0.0.0:16261:127.0.0.1:16261 -R 0.0.0.0:8766:127.0.0.1:8766
My question is, how can I achieve the same behavior for UDP protocol?