Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to secure Portmapper with NFS?

Discussion in 'Security' started by Razva, Apr 9, 2018.

Tags:
  1. Razva

    Razva Member

    Joined:
    Aug 30, 2012
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hello,

    The best way to secure a server agains Portmapper vulns/scans/ddos is to basically stop and disable the service. Unfortunately this will render NFS unusable which, in my case, is a no-go.

    What is the best solution in this case?

    Thank you,
    Razvan
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You may need to enable the service and restrict it with iptables firewall rules. However, keep in mind this is unsupported and more of an OS-related topic that's better answered on a website such as Stackoverflow or the CentOS forums. Here's a third-party URL you may find helpful:

    iptables rules for nfs

    Additionally, keep in mind that using NFS on a cPanel & WHM environment is unsupported at this time.

    Thank you.
     
  3. Razva

    Razva Member

    Joined:
    Aug 30, 2012
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Will cPanel complain when adding firewall rules that restrict it? Is there any other way to secure this? Thank you!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The "rpcbind" package isn't required unless you utilize NFS mounts on the server. No other cPanel & WHM functionality relies on it. I recommend posting on Stackoverflow or the CentOS forums for more feedback on alternatives to protect against attacks against the PortMapper service when using a NFS mount.

    Thank you.
     
Loading...

Share This Page