Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 04:33

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

Advertisement



[FreeBSD]Little Flooder & DDOS Etc. Blocker

Discussion on [FreeBSD]Little Flooder & DDOS Etc. Blocker within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Closed Thread
 
Old 01/01/2011, 17:45   #16
 
elite*gold: 255
Join Date: Jan 2010
Posts: 2,067
Received Thanks: 756
hm, a hardwarefirewall is better^^
.Zander is offline  
Old 01/01/2011, 17:54   #17

 
Hanashi's Avatar
 
elite*gold: 13
Join Date: Jun 2008
Posts: 1,115
Received Thanks: 2,226
Das ist ja geil, schreib ich mir dann mal für Debian um, soetwas hab ich nämlich die ganze Zeit schon gesucht, vielen Dank.

MfG Hanashi

Edit: zieht euch kein Webmin drauf, Crontabs selbst machen wird weniger Sicherheitslücken aufweisen, als Webmin
Hanashi is offline  
Thanks
2 Users
Old 01/01/2011, 21:32   #18
 
^_Ins4Ne_^'s Avatar
 
elite*gold: 76
Join Date: Oct 2010
Posts: 156
Received Thanks: 47
Das hat ja mal garnix mit Metin2 zu tun
^_Ins4Ne_^ is offline  
Old 01/15/2011, 20:48   #19
 
мзтіи2's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 279
Received Thanks: 572
Quote:
Originally Posted by Silfro95 View Post
hmm at webmin part:
After I click make instal clean then only error...

download this files and copy to /usr/ports/distfiles/ and try again.

Quote:
Originally Posted by .Zander View Post
hm, a hardwarefirewall is better^^
Yes but too expensive $$ .
мзтіи2 is offline  
Old 01/22/2011, 13:35   #20
 
elite*gold: 0
Join Date: May 2009
Posts: 10
Received Thanks: 11
I have made a little mod in the script , to not use webmin crontab
Code:
#!/bin/sh
FR_MIN_CONN=200
TMP_PREFIX='/tmp/frrr'
TMP_FILE=`mktemp $TMP_PREFIX.XXXXXXXX`
i=1
while [ $i -le 55 ]
do
/usr/bin/netstat -ntu -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 >> /home/banlist.txt
/bin/echo "Subject: $CURR_LINE_IP ipden $CURR_LINE_CONN Connect Refused." | /usr/sbin/sendmail -F  -t zzz@***.com
done < $TMP_FILE
/bin/rm -f $TMP_PREFIX.*
sleep1
i=`expr $i + 1`
done
and when i run itd , its every 1 sec from 1 to 55 (posibbly better is 59) make loop , but it gives me ,
Code:
route cannost write to socket : File exist
What is this error?
gemini300 is offline  
Old 01/31/2011, 23:42   #21
 
мзтіи2's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 279
Received Thanks: 572
Quote:
Originally Posted by gemini300 View Post
I have made a little mod in the script , to not use webmin crontab
Code:
#!/bin/sh
FR_MIN_CONN=200
TMP_PREFIX='/tmp/frrr'
TMP_FILE=`mktemp $TMP_PREFIX.XXXXXXXX`
i=1
while [ $i -le 55 ]
do
/usr/bin/netstat -ntu -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 >> /home/banlist.txt
/bin/echo "Subject: $CURR_LINE_IP ipden $CURR_LINE_CONN Connect Refused." | /usr/sbin/sendmail -F  -t zzz@***.com
done < $TMP_FILE
/bin/rm -f $TMP_PREFIX.*
sleep1
i=`expr $i + 1`
done
and when i run itd , its every 1 sec from 1 to 55 (posibbly better is 59) make loop , but it gives me ,
Code:
route cannost write to socket : File exist
What is this error?

files already exist
мзтіи2 is offline  
Old 02/09/2011, 06:43   #22
 
sinepi4ever's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 432
Received Thanks: 88
ähm klappt denn das skript jetzt oder nicht? Hab nämlich ein bisschen Bedenken, wenn ich meinen Root Server anschmeisse, dass da en ddos angriff kommt. Schon bei jemandem geklappt?
sinepi4ever is offline  
Old 02/09/2011, 07:08   #23
 
elite*gold: 265
Join Date: Feb 2011
Posts: 79
Received Thanks: 19
Natürlich wieso sollte das nicht funken?
Du kannst natürlich deinen Luut auch via. IPFW sichern was auch nicht schlecht ist.
Am besten schauen das keiner an die IP kommt.
Und dieses Skript macht folgendes es blockt IP die versuchen den Server zu flooden das heißt nachdem die IP geblockt ist hört auch der DDoS auf.
Ein gutes Skript deshalb.


Daniiel'
Daniiel'dasödijas is offline  
Thanks
1 User
Old 02/09/2011, 08:07   #24
 
sinepi4ever's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 432
Received Thanks: 88
ok gut danke. Ich probiers mal aus.
sinepi4ever is offline  
Old 02/15/2011, 13:12   #25
 
elite*gold: 0
Join Date: Apr 2010
Posts: 92
Received Thanks: 1
it isnt working.
sowanted is offline  
Old 02/15/2011, 13:27   #26
 
elite*gold: 112
Join Date: Jan 2010
Posts: 1,531
Received Thanks: 414
Es funktioniert schon, aber es hilft nicht gegen ein DDOS.
Das einzige was das Script macht, es blockt die Homepage bei ca. 20-30 aufrufen der Homepage.
¿Freaky¿ is offline  
Thanks
1 User
Old 02/15/2011, 14:25   #27
 
elite*gold: 0
Join Date: Jan 2011
Posts: 1,484
Received Thanks: 3,151
Würde nen PF empfehlen, ist sicherer.
Daroolein is offline  
Thanks
1 User
Closed Thread

Tags
blocker, ddos, flooder, freebsd


Similar Threads Similar Threads
cmd blocker?
07/28/2015 - Kal Online - 17 Replies
pyramid server now has new anti cmd hack. how do i get past this?
Usb Blocker
06/03/2010 - AutoIt - 0 Replies
Hey I finished my new tool. You need a Usb stick for it. This tool will block keyboard + mouse input when there is not the right usb stick. Just type your usb stick path in the input like in the example. When the usb stick is plugged everything work but when you unplugge the usb stick keyboard + mouse input is blocked (taskmanager also) Use this tool only when you understand this tutorial!!! Download
Pop up Blocker
04/20/2010 - Main - 3 Replies
Hey com, gibts nen pop up blocker der funkt? also kann au einer sein wo ich erst die seite eingeben muss um zu blocken. weil der von firefox nützt ja nicht wirklich was ^^ mfg Harfu
Ich suche Ts Flooder/I screach a Ts Flooder
06/01/2009 - General Coding - 4 Replies
Ich suche eine Ts Flooder mit download link oder MSN Skype addi
icq flooder
10/14/2008 - Off Topic - 15 Replies
moin, ich such nen icq flooder um so nen kleinen wanna be zu bombem. aber bitte nicht so nen viren verseuchten scheiss ;). danke



All times are GMT +1. The time now is 04:34.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.