Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    gopal
    Guest

    Default how to disable ping

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    347

    Default

    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. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    2

    Default

    How can I do this in FreeBSD ?

  4. #4
    Member netwrkr's Avatar
    Join Date
    Apr 2003
    Posts
    203

    Default

    Originally posted by Web4uHosting
    How can I do this in FreeBSD ?
    man ipfw
    Thomas Petersen
    Myriad Network
    http://www.myriadnetwork.com

  5. #5
    Member netwrkr's Avatar
    Join Date
    Apr 2003
    Posts
    203

    Default Re: how to disable ping

    Originally posted by gopal
    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

    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."
    Thomas Petersen
    Myriad Network
    http://www.myriadnetwork.com

  6. #6
    Registered User
    Join Date
    Nov 2003
    Posts
    2

    Default Re: Re: how to disable ping

    Originally posted by netwrkr
    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."
    How can I disable ping to a domain on a safe way?

  7. #7
    Member netwrkr's Avatar
    Join Date
    Apr 2003
    Posts
    203

    Default Re: Re: Re: how to disable ping

    Originally posted by Web4uHosting
    How can I disable ping to a domain on a safe way?

    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.
    Thomas Petersen
    Myriad Network
    http://www.myriadnetwork.com

Similar Threads & Tags
Similar threads

  1. Ping timing out?
    By Chriz1977 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-15-2007, 09:49 AM
  2. Disable / enable ping ?
    By billau in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-30-2004, 12:49 PM
  3. How to disable PING
    By hugo24 in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 01-25-2004, 03:20 PM
  4. Ping
    By xp2u in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-14-2003, 09:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube