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!

How to disable PING

Discussion in 'General Discussion' started by hugo24, May 10, 2003.

  1. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    156
    Hello all,

    Any idea how can I disable PING?
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Try chmod 750 /bin/ping

    This only then allows root to use it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    156
    How do the root use it?

    By default, what is permission? 777?
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    By default the permissions are 0755

    It can still be used by root in ssh

    ping www.microsoft.com
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    156
    I see...so that is to say, only root user can do the ping through shell access not anyone else. Am I right saying so?

    Is the true that PING can be used for a DoS attack against any server and more? Some interested articles found in google, not really sure how true this fact is.
     
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    **Possible, not likely**
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    156
    Thanks David, appreciated your kind assistance! :)
     
  8. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Okay, this is a really stupid question, but how do you get it to stop? I had to go to WHM and kill the process...:D
     
  9. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    ctrl+c

    :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Thanks!!;)
     
  11. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    428
    Likes Received:
    0
    Trophy Points:
    166
    I chmod 750 /bin/ping on a server but I can still ping it from various locations at the internet. Is this command not working anymore?

    Thanks
    John

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    This does not stop someone from pinging a server, it stops the ping command from being used on the server.

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. mesranet

    mesranet Well-Known Member

    Joined:
    May 6, 2002
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    316
    Hi,

    1- pico /etc/sysctl.conf

    2- Add this:

    # Ignore Ping
    net.ipv4.icmp_echo_ignore_all = 1

    3- Save it

    4- Run this to update:

    /etc/rc.d/init.d/network restart


    Thats all, Thank you.

    cPanel.net Support Ticket Number:
     
  14. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Sydney, Australia
    Hi mesranet,

    I just follwed the steps you mentioned for disabling the ping, that is ok, but i want to enable it once again, so i redo it, back to normal but it is still not pinging. what am i doing wrong ??? :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. soulblade

    soulblade Member

    Joined:
    Jan 23, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    did u restart your networks?

    /etc/rc.d/init.d/network restart
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice