Register for your free account! | Forgot your password?

You last visited: Today at 01:52

  • 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   #2

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


.Shōgun is offline  
Old   #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   #4
 
elite*gold: 1
Join Date: Aug 2014
Posts: 1,232
Received Thanks: 794
cd /root && rm -R banlist.txt ?


.Ryuzaki™ is offline  
Old   #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   #6
 
elite*gold: 0
Join Date: Jan 2014
Posts: 8
Received Thanks: 0
Solved rebooting machine and clean banlist.txt
morion77 is offline  
Old   #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



« Previous Thread | Next Thread »



All times are GMT +1. The time now is 01:52.


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

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