Je viens de voir que certaines IP faisaient du scan sur le login de wordpress :
#egrep "wp-login.php" error.*.log* | awk '{print $10}' | sed 's/:/ /g' | awk '{print $1}' | sort -n | uniq 54.39.22.135 -> Canada. 62.171.179.56 -> Germany 93.113.111.100 -> England 103.241.205.1 -> Indonesia 128.199.122.54 -> Singapore 139.162.7.223 -> Singapore 139.59.58.116 -> India 159.89.109.162 -> Germany 201.143.63.92 -> Mexico 202.169.26.237 -> Malaysia 206.189.93.93 -> Singapore 211.43.12.188 -> Korea
Donc je vais filtrer ses IP …. pour rappel voici mon filtre complet.
# cat /etc/iptables/rules.v4 # Generated by xtables-save v1.8.2 on Sun Mar 28 18:20:28 2021 *filter :INPUT ACCEPT [48747901:83300813551] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [9152769:771480779] -A INPUT -s 112.126.90.41/32 -j DROP -A INPUT -s 116.147.2.110/32 -j DROP -A INPUT -s 122.14.209.13/32 -j DROP -A INPUT -s 158.69.13.199/32 -j DROP -A INPUT -s 193.112.88.67/32 -j DROP -A INPUT -s 210.21.218.26/32 -j DROP -A INPUT -s 223.75.249.2/32 -j DROP -A INPUT -s 27.50.160.35/32 -j DROP -A INPUT -s 49.233.63.234/32 -j DROP -A INPUT -s 91.242.37.16/32 -j DROP -A INPUT -s 103.87.167.253/32 -j DROP -A INPUT -s 113.160.229.252/32 -j DROP -A INPUT -s 123.201.235.83/32 -j DROP -A INPUT -s 156.221.147.68/32 -j DROP -A INPUT -s 171.236.213.49/32 -j DROP -A INPUT -s 176.240.226.165/32 -j DROP -A INPUT -s 202.90.133.210/32 -j DROP -A INPUT -s 216.104.201.88/32 -j DROP -A INPUT -s 175.172.174.191/32 -j DROP -A INPUT -s 123.132.65.176/32 -j DROP -A INPUT -s 103.145.13.43/32 -j DROP -A INPUT -s 175.21.153.128/32 -j DROP -A INPUT -s 178.63.34.189/32 -j DROP -A INPUT -s 74.120.14.36/32 -j DROP -A INPUT -s 34.240.212.8/32 -j DROP -A INPUT -s 167.248.133.52/32 -j DROP -A INPUT -s 162.142.125.52/32 -j DROP -A INPUT -s 197.53.220.102/32 -j DROP -A INPUT -s 134.209.87.169/32 -j DROP -A INPUT -s 66.151.211.226/32 -j DROP -A INPUT -s 61.40.0.0/16 -j DROP -A INPUT -s 66.210.251.136/32 -j DROP -A INPUT -s 202.215.160.75/32 -j DROP -A INPUT -s 81.68.159.121/32 -j DROP -A INPUT -s 178.129.246.3/32 -j DROP -A INPUT -s 46.209.56.107/32 -j DROP -A INPUT -s 156.197.215.223/32 -j DROP -A INPUT -s 156.216.50.199/32 -j DROP -A INPUT -s 192.241.224.104/32 -j DROP -A INPUT -s 192.241.206.242/32 -j DROP -A INPUT -s 216.245.193.22/32 -j DROP -A INPUT -s 36.27.208.157/32 -j DROP -A INPUT -s 81.68.106.157/32 -j DROP -A INPUT -s 143.110.212.186/32 -j DROP -A INPUT -s 54.39.22.135/32 -j DROP -A INPUT -s 62.171.179.56/32 -j DROP -A INPUT -s 93.113.111.100/32 -j DROP -A INPUT -s 103.241.205.1/32 -j DROP -A INPUT -s 128.199.122.54/32 -j DROP -A INPUT -s 139.162.7.223/32 -j DROP -A INPUT -s 139.59.58.116/32 -j DROP -A INPUT -s 159.89.109.162/32 -j DROP -A INPUT -s 201.143.63.92/32 -j DROP -A INPUT -s 202.169.26.237/32 -j DROP -A INPUT -s 206.189.93.93/32 -j DROP -A INPUT -s 211.43.12.188/32 -j DROP COMMIT # Completed on Sun Mar 28 18:20:28 2021
Nouvelle liste :
1 101.255.122.146 wp-login.php’
1 114.70.235.43 wp-login.php’
1 121.5.250.245 wp-login.php’
1 125.64.94.221 wp-login.php’
1 13.232.100.135 wp-login.php’
1 139.224.198.47 wp-login.php’
1 173.212.219.223 wp-login.php’
1 18.231.94.162 wp-login.php’
1 185.246.209.147 wp-login.php’
1 3.142.196.207 wp-login.php’
1 34.230.156.67 wp-login.php’
1 34.237.4.205 wp-login.php’
1 3.8.12.221 wp-login.php’