Forwarding UDP

Openport uses reverse-ssh behind the scenes, so UDP forwarding is not (yet) supported out of the box. However, with some scripting you can achieve UDP forwarding.

This guide uses the command “socat” which is included in most Linux distributions. On windows you will need to use [Cygwin](

Let’s say you want to forward UDP port 1054 on machine A.

On Machine A: —

[Optional] If you want to start a UDP server to test:

Forward UDP traffic to a TCP port (6667 in this example):

Start openport to forward the TCP port to the outside world:

Example output:

Remember the port you got from openport (23607 in this example).

On Machine B: —

Here we listen on UDP port 2054 (but it can be the same port as on machine A if you want)

[Optional] If you want to test the forward: