SSH port forwarding does not natively support forwarding UDP packets, as it is designed to handle TCP connections. However, there are alternative solutions to forward UDP traffic such as Socat, Netcat or SHUTTLE if you really need to stick with SSH. SHUTTLE rocks, I should make a video on it.
Yes. If you connect to your server with "ssh -D 1080 bastion.securecorp.io" it creates a socks5 proxy that listens on your local port 1080. Then you can then use a tool like "proxychains" to forward any TCP port through it. An example would be scanning TCP ports with Nmap through it like so "proxychains nmap -Pn -sT 192.168.1.100".
Wonderful, exactly what I wanted
Thanks for such great explanation and the demonstration as well!
Nice video, very clear concepts.
Thank you for this very well descripted video with images, please keep up the gr8 work
Thanks you, Adrian. I appreciate the comment.
Very nice video, thanks!
thanks for making this
very helpful!
great video m8!
Good video, and by the way, is there a way to forward UDP packet?
SSH port forwarding does not natively support forwarding UDP packets, as it is designed to handle TCP connections. However, there are alternative solutions to forward UDP traffic such as Socat, Netcat or SHUTTLE if you really need to stick with SSH. SHUTTLE rocks, I should make a video on it.
Is it pssible to proxy any port (no only http(s))? Or all ports?
Yes. If you connect to your server with "ssh -D 1080 bastion.securecorp.io" it creates a socks5 proxy that listens on your local port 1080. Then you can then use a tool like "proxychains" to forward any TCP port through it. An example would be scanning TCP ports with Nmap through it like so "proxychains nmap -Pn -sT 192.168.1.100".
very good video. OpenSSH is so powerful.. screw VPN for most cases ;)