I'm no expert in reading logs, so I posted some of my log today at another forum answered: DDOS Attack. This is what I've done so far:
copied all sys logs, kern log , ufw log & auth log in one folder, merged them into one text file
grep:
grep -E "UFW" ~/merged.log > ~/filter_ufw_Block_lines.txt
grep:
grep -E -o "SRC=([0-9]{1,3}[\.]){3}[0-9]{1,3}" ~/filter_ufw_block_lines.txt > ~/Get_SRC_IP_Addresses.txt
sort -u ~/Get_SRC_IP_Addresses.txt > ~/unique_SRC_IP.txt
Step 2 & 3 had 14,893 lines all with UFW block entries & step 4 had 1,967 lines i.e around 2000 ip addresses.
I was making a personal blog site, which is 7-8 days old, which had only one default wordpress page so far. I know its a normal thing to get server attacks but still I went into collecting details because I was learning a lot.
After unique attacking ip addresses are isolated, can we block them in a single go. And Can a dynamic list of such IP addresses be created which should be blocked by server. Is that possible ? Here are the two files unique_src_IP_addresses and portion_of_merged_log.