Browse Source

ping-disable

Vova Tkach 6 years ago
parent
commit
345056086e
1 changed files with 11 additions and 0 deletions
  1. 11 0
      ping-disable

+ 11 - 0
ping-disable

@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Disable ping reply Permanently
+# You can permanently disable the ping reply using the following method.
+# Step 1: Edit the sysctl.conf file and add the following line.
+# net.ipv4.icmp_echo_ignore_all = 1
+# Step 2: Execute sysctl -p to enforce this setting immediately.
+# sysctl -p
+# The above command loads the sysctl settings from the sysctl.conf file.
+
+echo "1" >  /proc/sys/net/ipv4/icmp_echo_ignore_all