How can I block a connection to a NoMachine server by IP address?

Forum / NoMachine for Linux / How can I block a connection to a NoMachine server by IP address?

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44455
    leonk
    Participant

    Hello,

    I want to block the possibility of connecting to my NoMachine server by IP. I didn’t see this option, I want the NoMachine server to be only available locally, and I use Tailscale (SSH tunneling) to connect to it. At the moment, I have only set up connection via SSH key, with password disabled.

    #44500
    Tom
    Participant

    Hi,
    I’m not sure what you want to do?
    Do you want to block connection via NoMachine to your computer for some addresses from the local network?
    eg. IP 192.168.1.109 can’t connect but IP 192.168.1.165 can.

    What OS are you using?
    Regards,
    Tom

    #44637
    colonel_panic
    Participant

    I’m not familiar with Tailscale, but if you’re connecting by SSH you can add from=”ip address” in front of the public key in the .authorized_keys file.

    #44643
    colonel_panic
    Participant

    Saying that – passwordless authentication over ssh is already quite good security. Provided no-one gets your private key (and you don’t reuse keys over different machines), IMO you don’t need to worry too much.

    Have you actually been logging attempted ssh logins? I would be inclined not to worry too much about the security implications – if you’ve disabled passwords for ssh, people aren’t going to be able to login without a key.

    Put it another way – if someone could access my computer via passwordless ssh, I’d be much more worried about my bank being hacked than me!

    #44645
    Britgirl
    Keymaster

    Bear in mind that SSH connections are a feature of NoMachine Enterprise products and are not available in the Free Edition.

Viewing 5 posts - 1 through 5 (of 5 total)

Closed because the user did not provide further feedback. Please notify us if you confirm that it is resolved or open a new topic if you have the same problem.