Join the community today
Register Now

How prevent ping to server ip ?

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

  1. negative

    negative Member

    216
    21
    18
    Apr 11, 2015
    Ratings:
    +49
    Local Time:
    10:40 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:
    9:40 PM
    1.9.9
    10.1.10
    • Informative Informative x 1
  3. negative

    negative Member

    216
    21
    18
    Apr 11, 2015
    Ratings:
    +49
    Local Time:
    10:40 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:
    9:40 PM
    1.9.9
    10.1.10
    Check if you are whitelisted in csf.allow.
     
  5. negative

    negative Member

    216
    21
    18
    Apr 11, 2015
    Ratings:
    +49
    Local Time:
    10:40 PM
    1.9.10
    10.1.11
    I'm not o_O
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,165
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    5:40 AM
    Nginx 1.13.x
    MariaDB 5.5
  7. Xon

    Xon Active Member

    130
    57
    28
    Nov 16, 2015
    Ratings:
    +171
    Local Time:
    3:40 AM
    1.11.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,165
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    5:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    +1 on that FYI
     
    • Like Like x 1