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 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:
    6
    Hello all,

    Any idea how can I disable PING?
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

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

    This only then allows root to use it.
     
  3. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    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,578
    Likes Received:
    3
    Trophy Points:
    38
    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
     
  5. hugo24

    hugo24 Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    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,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    **Possible, not likely**
     
  7. hugo24

    hugo24 Well-Known Member

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

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    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,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    ctrl+c

    :D
     
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Thanks!!;)
     
  11. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    430
    Likes Received:
    0
    Trophy Points:
    16
    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:
     
  12. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    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:
     
  13. mesranet

    mesranet Well-Known Member

    Joined:
    May 6, 2002
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    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 ??? :(
     
  15. soulblade

    soulblade Member

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

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

Share This Page