Tuesday, August 23, 2011

Port Redirection

I had a need to access remote UDP ports that were not open through my VPN connection. I thought no problem I will just configure my ssh connection to tunnel those ports! I quickly found that traditional SSH port forwarding does not support UDP. So I had to find a work around.

In order to tunnel UDP requests through SSH you need to find unused TCP ports on your local and remote machines and configure them to forward requests to the UDP ports that you need to access. This can be accomplished using socat or nc on *NIX machines.

Found a neat utility to ease the process of network port forwarding in Windows.

http://www.quantumg.net/portforward.php