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 gopal, Mar 28, 2004.

  1. gopal

    gopal Guest

    disable the ping request from remote maching

    Disable :-

    # iptables -I INPUT -p icmp -d 192.168.1.51 -j DROP

    Enable :-

    # iptables -I INPUT -p icmp -d 192.168.1.51 -j ACCEPT
     
  2. netlook

    netlook Well-Known Member
    PartnerNOC

    Joined:
    Mar 25, 2004
    Messages:
    335
    Likes Received:
    0
    Trophy Points:
    166
    What do you think - is it safe / good to disable ping?

    I thing that someone wants to slow my server and ping it all the time. When I would disable it, would it have any bad sides?
     
  3. Web4uHosting

    Web4uHosting Registered

    Joined:
    Nov 19, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    How can I do this in FreeBSD ?
     
  4. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    166
    man ipfw
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    166

    This is -not- a good idea. In the above example you are totally denying all ICMP. ICMP protos like source-quench,
    destination unreachable, time exceeded etc are necessary.

    You should really read the RFC before blocking entire protocols.

    "....ICMP is actually an integral part of IP, and must be implemented by every IP module."
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Web4uHosting

    Web4uHosting Registered

    Joined:
    Nov 19, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    Re: Re: how to disable ping

    How can I disable ping to a domain on a safe way? :)
     
  7. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    166
    Re: Re: Re: how to disable ping


    Are you trying to disable incoming ping requests or users using the 'ping' command? If the former then just block icmp proto echo-request. If the latter chmod 000 ping.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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