Learn about Centmin Mod LEMP Stack today
Register Now

How prevent ping to server ip ?

Discussion in 'System Administration' started by negative, Dec 27, 2015.

  1. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    4:26 PM
    1.9.10
    10.1.11
    Hello

    How can i prevent ping to my server ip ? I think it may possible with CSF firewall or which way ?

    I don't want to take ping packets etc.


    Thanks.
     
  2. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    3:26 PM
    1.9.9
    10.1.10
  3. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    4:26 PM
    1.9.10
    10.1.11
    I edit the ICMP_IN to Zero and csfrestart command, but still i can ping the server ip
     
  4. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    3:26 PM
    1.9.9
    10.1.10
    Check if you are whitelisted in csf.allow.
     
  5. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    4:26 PM
    1.9.10
    10.1.11
    I'm not o_O
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    12:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    10:26 PM
    1.15.x
    MariaDB 10.3.x
    You really don't wan to block ping, it makes diagnosing faults quite hard and doesn't give you any benefit out of it.

    Even if you block ping, people can still send the data at you.
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    12:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    +1 on that FYI