nassh-relay icon indicating copy to clipboard operation
nassh-relay copied to clipboard

config.json --> Where to indicate the port where sshd is listening?

Open JotaPin opened this issue 1 year ago • 3 comments

Hi, I see in the config.json file that you can indicate the port where the relay will be listening, but what if your sshd is not on port 22? Thanks for any indication.

JotaPin avatar Jan 17 '25 12:01 JotaPin

just use host:port where you want to connect to. the relay does not care, so it's not in the config

zyclonite avatar Jan 17 '25 14:01 zyclonite

oops, thanks for that, do I understand well then that if the firewall is not strictly limiting per IP/networks, anybody can reach reach all ports in the machine where the relay is running? (sorry if i am totally wrong).

JotaPin avatar Jan 17 '25 14:01 JotaPin

correct, similar risk as with every proxy or tunnel... but that's why you can limit destination ranges in the config. port allow list could be a feature to add in the future.

and you can enable auth to the relay...

zyclonite avatar Jan 17 '25 17:01 zyclonite