Register for your free account! | Forgot your password?

You last visited: Today at 22:42

  • Please register to post and access all features, it's quick, easy and FREE!


ddos

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2014
Posts: 8
Received Thanks: 0
Exclamation ddos

Hi I'm using this script to block ddos, the system has mistakenly locked the address of my web server, I am trying to remove the block but I can not. Do you have any idea how to do?
Thank You

Code:
#!/bin/sh
FR_MIN_CONN=400
TMP_PREFIX='/tmp/frrr/'
TMP_FILE=`mktemp $TMP_PREFIX.XXXXXXXX` 
/usr/bin/netstat -unp tcp -f inet| awk '{if(NR>2 && NF=6) print $5}' | cut -d. -f1-4 | grep '^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' | sort | uniq -c | sort -nr > $TMP_FILE
while read line; do
 CURR_LINE_CONN=$(echo $line | cut -d" " -f1)
 CURR_LINE_IP=$(echo $line | cut -d" " -f2)
 if [ $CURR_LINE_CONN -lt $FR_MIN_CONN ]; then
 break
 fi
/sbin/route -q add $CURR_LINE_IP 127.0.0.1
/bin/echo $CURR_LINE_IP >> /root/banlist.txt
/bin/echo "Subject: $CURR_LINE_IP ipden $CURR_LINE_CONN Connect Refused."
done < $TMP_FILE
/bin/rm -f $TMP_PREFIX.*



morion77 is offline  
Old 01/01/2015, 15:00   #2

 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,592
Received Thanks: 3,299
rm /root/banlist.txt


.Shōgun is offline  
Old 01/01/2015, 15:04   #3
 
elite*gold: 0
Join Date: Jan 2014
Posts: 8
Received Thanks: 0
Quote:
Originally Posted by .Shōgun View Post
rm /root/banlist.txt
Don't Work
morion77 is offline  
Old 01/01/2015, 15:48   #4
 
elite*gold: 1
Join Date: Aug 2014
Posts: 1,232
Received Thanks: 794
cd /root && rm -R banlist.txt ?


.Ryuzaki™ is offline  
Old 01/01/2015, 16:07   #5
 
elite*gold: 0
Join Date: Mar 2011
Posts: 873
Received Thanks: 165
Quote:
Originally Posted by .Shōgun View Post
rm /root/banlist.txt
Quote:
Originally Posted by .Xynex™ View Post
cd /root && rm -R banlist.txt ?
bitte les dir erstmal den thread durch.
Gillette Kaito is offline  
Old 01/01/2015, 16:18   #6
 
elite*gold: 0
Join Date: Jan 2014
Posts: 8
Received Thanks: 0
Solved rebooting machine and clean banlist.txt
morion77 is offline  
Old 01/01/2015, 16:47   #7
 
elite*gold: 1
Join Date: Aug 2014
Posts: 1,232
Received Thanks: 794
Quote:
Originally Posted by RealKagami View Post
bitte les dir erstmal den thread durch.
Wenn er die entfernt, dann funkt. es auch nicht mehr. Also bitte
ließ es dir selber erstmal durch


.Ryuzaki™ is offline  
Reply



« [P]Autopotts Effekt + Umrandung + Icon | Metin2 DE patcher »



All times are GMT +2. The time now is 22:42.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.