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?
Why is port 111 eleven open and how can I close it
-
tuep -
February 20, 2020 at 6:07 PM -
Thread is Unresolved
-
-
111 is rpcbind. If you don't plan to use NFS you can disabling it by masking rpcbind.service and rpcbind.socket
so long,
Hias
-
-
- Official Post
Just use:
systemctl mask rpcbind.service
systemctl mask rpcbind.socket
To re-enable just use unmask
-
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
-
Ah I didn't know about the command and never heard of masking either.
Just read that masking means the linking to /dev/null.
Thanks a lot.