News for hackers. Stuff that matters.
Re:Visual guide to SSH tunneling and port forwarding by cfinnberg on Friday September 20, 2024 @01:04AM (#41598960)
I think that using 0.0.0.0 it's a bad idea. That is supposedly opening the port in all network interfaces, including the external ones. So, if you don't have a firewall (especially on the remote server) you are exposing something to the world.

OTOH if I'm going to use some tunnelling/port forwarding quite often, I would use the config file option, but for an one time or sporadic use, the command line option is better IMHO.

Re:Visual guide to SSH tunneling and port forwarding by lamnguyenx on Friday September 20, 2024 @02:46AM (#41599452)
Nice catch. You're right. At my company all servers operate inside a complex & heavily-guarded intranet, so I usually use 0.0.0.0 instead of localhost / 127.0.0.1. Sometimes, only using the former worked (e.g: using Code-Server or Jupyter Notebook), and I'm not so good at networking to dive into iptables and firewall things.