Categories: linux

Disable portmapper services in centos 7 (rpcbind)

PortMapper service runs in port TCP and UDP 111 and provides RPC (Remote Procedure Calls) like NFS mounts.

Portmapper service that can be accessed from the Internet can be exploited by an attacker to perform DDoS attacks. An attacker can gain information about your network, e.g. existing network shares or running RPC services. RPC stands for remote procedure call.

To get the list of RPC services running on your server, you can use the following command:
[root@server ~]# rpcinfo -p

In order to stop the RPC services:
[root@server ~]# systemctl stop rpcbind

[root@server ~]# systemctl stop rpcbind.socket

you can check now with rpcinfo -p to confirm that services are not running.

To disable completely the service and prevent it from restarting after reboots, you can disable the service using the below command.

[root@server ~]# systemctl disable rpcbind

Now you can restart your server and confirm that it is not running by using the rpcinfo -p command.

Stay safe!

panosnet

Share
Published by
panosnet

Recent Posts

Cut Cloud Costs by 40% Without Breaking Your Infrastructure: 2025 Guide

Your AWS bill just doubled again—and nobody can explain why. If you're an IT manager…

11 hours ago

OpenAI Just Declared War on Google Chrome: Why Atlas Could Change Everything

The internet's future was rewritten this week. OpenAI's new "Atlas" browser isn't just another Chrome…

12 hours ago

AI Agents vs. Cyber Threats: How Autonomous Security Is Winning the War

In 2025, cyberattacks are faster and more sophisticated than ever. But now, a new generation…

12 hours ago

Vulnerability Management in 2025: From Swamped to Secure

Cyber attackers don’t wait—neither can your team. Vulnerability management has entered a new era, where…

12 hours ago

Critical Ingress Nightmare: Unauthenticated Remote Code Execution Vulnerabilities in Kubernetes NGINX Controller Demand Immediate Action

Critical Security Flaws Uncovered in Ingress NGINX Controller: Act Now to Protect Your Kubernetes Clusters.…

7 months ago

Apache Tomcat CVE-2025-24813: Understanding and Mitigating the Remote Code Execution Threat

Introduction: A serious vulnerability, identified as CVE-2025-24813, has been disclosed in Apache Tomcat, a widely…

7 months ago

This website uses cookies.