Why is port 111 eleven open and how can I close it

  • I did a port scan on my LibreELEC system and found several ports open. I closed most of them by deactivating the services that I don't use anyway. Only remaining ones are 22 for ssh and 111. What services causes port 111 to be open and in case I don't need it, how can I close it?

  • Thanks!

    I learned that masking works over symlinking a service to /dev/null, like

    Code
    ln -s /dev/null /etc/systemd/system/rpcbind.service

    But there is no rpcbind.service or rpcbind.socket in /etc/systemd/system.

    And I can't create it since I get the error read only file system.

  • systemctl mask is essentially the same as symlinking a unit to /dev/null

    LibreELEC stores the systemd user configuration in /storage/.config/system.d instead of /etc/systemd/system - therefore there's nothing in the (read only) /etc

    so long,

    Hias