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 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:
    16
    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:
    1
    How can I do this in FreeBSD ?
     
  4. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    man ipfw
     
  5. netwrkr

    netwrkr Well-Known Member

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

    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."
     
  6. Web4uHosting

    Web4uHosting Registered

    Joined:
    Nov 19, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
    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.
     
Loading...

Share This Page