Welcome to Centmin Mod Community
Register Now

How prevent ping to server ip ?

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

  1. negative

    negative Member

    217
    22
    18
    Apr 11, 2015
    Ratings:
    +50
    Local Time:
    10:19 AM
    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:
    9:19 AM
    1.9.9
    10.1.10
    • Informative Informative x 1
  3. negative

    negative Member

    217
    22
    18
    Apr 11, 2015
    Ratings:
    +50
    Local Time:
    10:19 AM
    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:
    9:19 AM
    1.9.9
    10.1.10
    Check if you are whitelisted in csf.allow.
     
  5. negative

    negative Member

    217
    22
    18
    Apr 11, 2015
    Ratings:
    +50
    Local Time:
    10:19 AM
    1.9.10
    10.1.11
    I'm not o_O
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,993
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,424
    Local Time:
    6:19 PM
    Nginx 1.13.x
    MariaDB 5.5
  7. Xon

    Xon Active Member

    134
    57
    28
    Nov 16, 2015
    Ratings:
    +177
    Local Time:
    4:19 PM
    1.13.x
    MariaDB 10.1.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.
     
    • Agree Agree x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,993
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,424
    Local Time:
    6:19 PM
    Nginx 1.13.x
    MariaDB 5.5
    +1 on that FYI
     
    • Like Like x 1