Secure RPC Portmapper
Problem
Server-Monitoring-Service warns about open Ports
Solution: disable service
Disable Portmapper
sudo netstat -apn | grep LISTEN
# shows
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
grep 111 /etc/services
# shows
sunrpc 111/tcp portmapper # RPC 4.0 portmapper
sunrpc 111/udp portmapper
rpcinfo -p
# shows
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
systemctl status rpcbind
sudo systemctl disable rpcbind rpcbind.socket