-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UDP Forwarding - Nonsensical Ports #99
Comments
To anyone coming later - @jasonmerc has attempted to fix this bug in a fork, at jasonmerc@9873933 |
I think I fixed it, but building the actual program requires libraries that are very old, so I was never able to actually compile anything. |
I am not really sure this is a functional issue. Sure it does forward to a "fiber" port that is [specified port]+65536 When I use the following connection string on the client (this was all done on the same machine to different ports, but the concept is the same, there is just a lot of localhost references): When connected the server the log says: and the client side log says: This connection works if I use netcat listener: and netcat to: I never worked with fiber ports, but from what I can tell this create a working UDP port forwarding mechanism. I am going to do a more thorough check on this, because I actually need this functionality, so hopefully I'll remember to report back here on my findings. |
ok so I can UDP port forward with no issues
on the SSF server I can tftp to one of its local ports and get a file on the TFTP server through the use of UDP port forwarding on from the SSF client. TFTP server has open port 69 on my local network SSF server start command SSF client start command then on SFF server execute the following to connect to it's IP
the forwarded ports indicated on the SSF server ssf log: the forwarded ports indicated on the SSF client ssf log: all that being said. SSF only worked this way on Linux, and I did not test windows, I only have so much hair left. |
Fwiw, this isn't a real issue. That fabric port is not the actual port being forwarded. After doing the port forwarding, you can validate yourself that the port you're requesting is actually being used, and not the fabric port. |
When port forwarding or reverse forwarding UDP, the port number specified isn't the port number it forwards, it's that PLUS 65536. This is only for UDP, TCP works just fine.
Example: ssf -V 10000:localhost:10000 in the log files shows it forwarding to server port 75536 (which is 65536 + 10000, the port number I specified). Not only is this not the port number specified, it's an impossible port number.
I cannot find a workaround for this. Putting in a negative number, like -55536 to try and make it 10000, doesn't work.
The text was updated successfully, but these errors were encountered: