securesocketfunneling / ssf

Secure Socket Funneling - Network tool and toolkit - TCP and UDP port forwarding, SOCKS proxy, remote shell, standalone and cross platform

Home Page:https://securesocketfunneling.github.io/ssf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remote UDP port forwarding syntax?

slannon97 opened this issue · comments

I am attempting to use SSF to establish a remote port forward from my Linux VPS to my Windows computer. I would like to forward incoming traffic from UDP 9995 on my VPS to the same port on my local computer to host a server for an online game. Unfortunately, I cannot figure out the command line syntax to set this up.

First, I ran the Linux version of SSF. I used "./ssfd -p 9995" and allowed incoming traffic from port 9995 on my VPS firewall.
Next, I tried the following command in the Windows command line, replacing example.com with the domain name of my VPS. "ssf -U example.com:9995:127.0.0.1:9995" Unfortunately, this gives me an error message. What am I doing wrong? What is the correct syntax to establish this remote port forward rule for UDP port 9995?

If you are still interested;

You should run the following on the remote Linux server:

./ssfd -g

The client command for remote UPD Port forwarding should be like that:

./ssf -g -V x.x.x.x: 9995:127.0.0.1:9995 x.x.x.x

where x.x.x.x is the remote server IP.

On version 3 of ssf (maybe old versions) -V and -U doesn't work. In the logs, instead of forwarding the port you specify, it forwards 65536 + the number you specified. For example, specifying 10000 wouldn't forward 10000, it would forward 75536.