Results 1 to 15 of 194
Thread: TeamSpeak 2 Anti-Flood Daemon
Hybrid View
-
20-03-2006, 11:42 #1
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,297
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.
-
24-03-2006, 20:18 #7
-= 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 #8
-= 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 #9
-= TeamSpeak Lover =-
- Join Date
- Jan 2005
- Location
- Germany
- Posts
- 97
hab linux und alles 1 ( glaub das war standart )
-
24-03-2006, 21:34 #10Bastian GuestWarum denn?
Originally Posted by DarkCyrus
-
24-03-2006, 21:43 #11
-= 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)
-
24-03-2006, 21:48 #12
Joa da wirst du gefragt ob du vielleicht eine ältere Version des Servers benutzt z.b. 2.0.20.1 . Die neuste Version ist diese: http://www.goteamspeak.com/index.php...downloads&id=7
-
24-03-2006, 22:33 #13
Könnte vielleicht an Fielmann liegen... denn damit wäre das nicht passiert :-) Du nutzt scheinbar die falsche Version von Teamspeak! Hau Dir mal die aktuellere Beta rauf :-)
-
01-04-2006, 08:24 #14
Oh cool. This program works like a charm. Very smoothly ran, too.
Deustch - OH- kühl. Dieses Programm arbeitet wie ein Charme. Lief sehr glatt, auch.
-
23-04-2006, 14:01 #15
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,297
I've just uploaded the updated archive. The following things have been changed:
TeamSpeak 2 Anti-Flood Daemon 0.3 -> 0.4
The script no longer crashes when getting weird output from the TeamSpeak2::Log module.
The script now stops with the TeamSpeak 2 server instance.
The scripts logfile now shows detailed information about the virtual server on which the flooder has been banned.
The scripts logfile now shows detailed information about weird lines in the servers logfile.
The time is now shown correctly on Windows servers.
TeamSpeak2::Log 0.3.2 -> 0.3.6
The object method analyze() now recognizes weird lines in the servers logfile.
The object method analyze() now recognizes "log ended" lines.
TeamSpeak2::TCPquery 0.4.7 -> 0.4.9
The object method get_serverlog() now recognizes "log ended" lines.
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






