Results 1 to 15 of 194
Thread: TeamSpeak 2 Anti-Flood Daemon
-
20-03-2006, 11:42 #1
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,298
TeamSpeak 2 Anti-Flood Daemon
Hi there!
I have just finished my work on a small script, which I called TeamSpeak 2 Anti-Flood Daemon. I know many of you have searched a workaround for the well known flooding attempts on TeamSpeak 2 servers. This script might help you. There are a few alternatives to this script, but some of them don't work on Windows, or the installation is way too complicated.
Download:
Click here to Download the latest version of the script or open the following URL with your browser:
http://www.planetteamspeak.com/compo...etails/gid,42/
Features:
- Prevents flooding attempts on TeamSpeak 2 servers by banning the performing IP address for 5 minutes.
- Protects all virtual servers in a running TeamSpeak 2 server instance
- Logs flooding attemps with exact date and IP address
- Sends a private message to every serveradmin connected to the respective virtual server
- A distribution of Perl
- One of the latest BETA versions of the TeamSpeak 2 server (i.e. 2.0.22.3)
- The script uses the TeamSpeak 2 servers logfile (server.log) to prevent flooding attempts by banning the performing IP address. This means you'll have to enable the enhanced logging capabilities of your TeamSpeak 2 server.
Look for the following lines in your server.ini file and enable at least access_r and access_u for the script to function normally:
Code:[log] access_r=0 access_u=0 channel_registerred=0 channel_unregisterred=0 sa=0 chat=0 kick_server=0 kick_channel=0
- Create a new folder and copy all files from the Zip-archive into it. The folder should now contain the following files and folders:
Code:drwxr-xr-x 2 TeamSpeak2 -rwxr-xr-x 1 ts2afd.pl -rwxr-xr-x 1 ts2afd_startscript
- Open the file ts2afd.pl with your favorite text-editor and follow the instructions in the configuration area. An example is shown below:
Code:# ============================================================================================ # ======================================= CONFIGURATION ====================================== # ============================================================================================ # ****** SERVER ADDRESS AND TCP QUERY PORT ****** # This is the hostname or IP address and TCP port of the TeamSpeak 2 server. # If you are unsure of what to put here, leave the default values. my $server_address = "localhost"; my $server_tcpport = "51234"; # ****** SUPERADMIN USERNAME & PASSWORD ****** # This is the username and password you use to access your TeamSpeak 2 server. # This must be an existing superadmn account. my $ssa_username = "superadmin"; my $ssa_password = "password"; # ****** FULL PATH TO SERVER LOGFILE ****** # On a few systems it may be necessary to input the full path to your servers logfile # for the TeamSpeak 2 Anti-Flood Daemon to function normally. # Example Unix: # my $server_logfile = "/home/ts2/teamspeak2/server.log"; # Example Windows: # my $server_logfile = "C:/Program Files/TeamSpeak2/server.log"; my $server_logfile = "/home/teamspeak/teamspeak2/server.log"; # ****** SERVER SPAM LIMITS ****** # These values define the max amount of new connections from an IP address in a limited # number of seconds. # Do NOT set one of these values to 0! # Example: # my $spam_connections = 3; # my $spam_seconds = 10; # In this case an IP address will be able to connect 3 times in 10 seconds. my $spam_connections = 3; my $spam_seconds = 10; # ****** ENABLE/DISABLE UNIX DAEMON ****** # This option allows you to start the script as a background process on Unix based systems # without using the startscript. # Do NOT enable this feature on Windows servers. my $script_daemonize = 0;
- Make sure Perl is installed on your system. Usually Perl is installed on dedicated Linux servers by default.
- Simply use the startscript ts2afd_startscript to start the TeamSpeak 2 Anti-Flood Daemon.
- On Windows servers you'll need to use a ready-to-install distribution like ActivePerl, which is also available for Linux.
- After ActivePerl is installed, double-click the ts2afd.pl to start the TeamSpeak 2 Anti-Flood Daemon.
As a small bonus the Zip-archive contains the latest versions of my TeamSpeak 2 Perl modules (TeamSpeak2::TCPquery and TeamSpeak2::Log), which I already used to create scripts like the TS2PerlMod.
Have fun!Last edited by ScP; 21-06-2006 at 13:45. Reason: updated URLs
-
20-03-2006, 11:49 #2
Danke für die Arbeit :-)
-
20-03-2006, 13:58 #3
Habs noch nicht ausprobiert aber ich bin von dem was du tust immer überzeugt! Nice job!
-
20-03-2006, 14:50 #4
-= TeamSpeak Fanatic =-
- Join Date
- Oct 2004
- Location
- Germany
- Posts
- 1,710
Tzetzetze gibts doch schon lange ähnliche Sachen für

Aber trotzdem nice one :-DLast edited by Cyrus; 20-03-2006 at 15:18.
-
20-03-2006, 14:55 #5Bastian Guest
Das Ding ist bei TeamSpeak Einstieg im Einsatz und funktioniert bisher ohne Probleme.
-
20-03-2006, 16:30 #6
Schön ist, das es kostenfrei und vor allem auch kostenlos von kommerziellen Hostern genutzt werden kann.
-
23-03-2006, 11:22 #7
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,298
We're using the script on our first public server (TeamSpeak Public -1-) now and it seems to be very effective (8 banned IP addresses in less than 48 hours).
@warumdarum:
"kostenfrei" UND "kostenlos"... Du sprichst mir aus der Seele. Allerdings glaube ich, dass in deinem Satz das Wörtchen "ist" fehlt.
-
23-03-2006, 12:40 #8
@ ScP
Da kannst Du mal sehen...
Da bin ich so von kostenlosem und kostenfreiem geprägt, dass ich bei all dem Ersparten das Wörtchen "ist" wegrationalisiert habe. :-)
-
23-03-2006, 17:43 #9
gute arbeit sven

mal schaun, das klingt echt nützlich!
-
24-03-2006, 02:44 #10
Aww, sweet. That's freaking awesome, dude. Nicely done! *Claps*
-
24-03-2006, 20:18 #11
-= TeamSpeak Lover =-
- Join Date
- Jan 2005
- Location
- Germany
- Posts
- 97
muss ich das alles auf 0 stellen ?? mein englisch ist nicht gerade so gut
Code:[log] access_r=0 access_u=0 channel_registerred=0 channel_unregisterred=0 sa=0 chat=0 kick_server=0 kick_channel=0
-
24-03-2006, 20:25 #12
-= TeamSpeak Fanatic =-
- Join Date
- Oct 2004
- Location
- Germany
- Posts
- 1,710
Bedeutet, dass du mindestens access_r und access_u auf 1 setzen solltest.Look for the following lines in your server.ini file and enable at least access_r and access_u for the script to function normally
Der Rest sollte egal sein.
Unter Windows solltest du allerdings noch darauf achten dass chat auf 0 bleibt.
-
24-03-2006, 20:45 #13
-= TeamSpeak Lover =-
- Join Date
- Jan 2005
- Location
- Germany
- Posts
- 97
hab linux und alles 1 ( glaub das war standart )
-
24-03-2006, 21:34 #14Bastian GuestWarum denn?
Originally Posted by DarkCyrus
-
24-03-2006, 21:43 #15
-= TeamSpeak Lover =-
- Join Date
- Jan 2005
- Location
- Germany
- Posts
- 97
bei mir kommt beim starten You are running an outdated version of the TeamSpeak 2 server (2.0.20.1)
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Start stop script for TeamSpeak daemon (init)
By Cybernaut in forum [TeamSpeak 2] Server SupportReplies: 2Last Post: 11-11-2004, 17:07 -
TeamSpeak daemon dies unexpectedly
By lbaker in forum [TeamSpeak 2] Server SupportReplies: 5Last Post: 04-09-2003, 20:01






