English   German
  #1  
Old 20-03-2006, 12:42
ScP's Avatar
ScP ScP is offline
-= TeamSpeak Support =-
 
Join Date: Oct 2003
Location: Germany
Posts: 1,718
ScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond repute
Sticky 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
Requirements:
  • A distribution of Perl
  • One of the latest BETA versions of the TeamSpeak 2 server (i.e. 2.0.22.3)
How to install the script:
  • 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;
How to start the script on Linux:
  • 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.
How to start the script on Windows:
  • 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.
Hint:
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 14:45. Reason: updated URLs
Reply With Quote
  #2  
Old 20-03-2006, 12:49
TS-Rent TS-Rent is offline
-= TeamSpeak Lover =-
 
Join Date: Jul 2003
Location: Lübeck
Posts: 72
TS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to behold
Send a message via ICQ to TS-Rent Send a message via AIM to TS-Rent
Thumbs up

Danke für die Arbeit :-)
Reply With Quote
  #3  
Old 20-03-2006, 14:58
ginger|HFD's Avatar
ginger|HFD ginger|HFD is offline
-= TSViewer.com =-
 
Join Date: Jun 2005
Location: Germany
Posts: 115
ginger|HFD is a splendid one to beholdginger|HFD is a splendid one to beholdginger|HFD is a splendid one to beholdginger|HFD is a splendid one to beholdginger|HFD is a splendid one to beholdginger|HFD is a splendid one to beholdginger|HFD is a splendid one to behold
Send a message via ICQ to ginger|HFD Send a message via AIM to ginger|HFD Send a message via MSN to ginger|HFD Send a message via Yahoo to ginger|HFD
Habs noch nicht ausprobiert aber ich bin von dem was du tust immer überzeugt! Nice job!
Reply With Quote
  #4  
Old 20-03-2006, 15:50
Cyrus's Avatar
Cyrus Cyrus is offline
-= TeamSpeak Fanatic =-
 
Join Date: Oct 2004
Location: Germany
Posts: 1,711
Cyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond repute
Tzetzetze gibts doch schon lange ähnliche Sachen für

Aber trotzdem nice one :-D

Last edited by Cyrus; 20-03-2006 at 16:18.
Reply With Quote
  #5  
Old 20-03-2006, 15:55
Bastian Bastian is offline
-= TeamSpeak Fanatic =-
 
Join Date: Jul 2003
Location: ...
Posts: 2,903
Bastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond repute
Das Ding ist bei TeamSpeak Einstieg im Einsatz und funktioniert bisher ohne Probleme.
Reply With Quote
  #6  
Old 20-03-2006, 17:30
TS-Rent TS-Rent is offline
-= TeamSpeak Lover =-
 
Join Date: Jul 2003
Location: Lübeck
Posts: 72
TS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to behold
Send a message via ICQ to TS-Rent Send a message via AIM to TS-Rent
Schön ist, das es kostenfrei und vor allem auch kostenlos von kommerziellen Hostern genutzt werden kann.
Reply With Quote
  #7  
Old 23-03-2006, 12:22
ScP's Avatar
ScP ScP is offline
-= TeamSpeak Support =-
 
Join Date: Oct 2003
Location: Germany
Posts: 1,718
ScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond reputeScP has a reputation beyond repute
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.

Reply With Quote
  #8  
Old 23-03-2006, 13:40
TS-Rent TS-Rent is offline
-= TeamSpeak Lover =-
 
Join Date: Jul 2003
Location: Lübeck
Posts: 72
TS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to beholdTS-Rent is a splendid one to behold
Send a message via ICQ to TS-Rent Send a message via AIM to TS-Rent
@ 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. :-)
Reply With Quote
  #9  
Old 23-03-2006, 18:43
St4Lk3R St4Lk3R is offline
-= TeamSpeak Lover =-
 
Join Date: Sep 2005
Location: Cologne / GER
Posts: 65
St4Lk3R is on a distinguished road
Send a message via ICQ to St4Lk3R Send a message via MSN to St4Lk3R Send a message via Skype™ to St4Lk3R
gute arbeit sven

mal schaun, das klingt echt nützlich!
Reply With Quote
  #10  
Old 24-03-2006, 03:44
.Swerve's Avatar
.Swerve .Swerve is offline
-= TeamSpeak Addict =-
 
Join Date: Feb 2006
Location: United States
Posts: 243
.Swerve has a little shameless behaviour in the past
Send a message via AIM to .Swerve Send a message via MSN to .Swerve
Aww, sweet. That's freaking awesome, dude. Nicely done! *Claps*
Reply With Quote
  #11  
Old 24-03-2006, 21:18
MikeRivle's Avatar
MikeRivle MikeRivle is offline
-= TeamSpeak Lover =-
 
Join Date: Jan 2005
Location: Germany
Posts: 95
MikeRivle is on a distinguished road
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
Reply With Quote
  #12  
Old 24-03-2006, 21:25
Cyrus's Avatar
Cyrus Cyrus is offline
-= TeamSpeak Fanatic =-
 
Join Date: Oct 2004
Location: Germany
Posts: 1,711
Cyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond reputeCyrus has a reputation beyond repute
Quote:
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
Bedeutet, dass du mindestens access_r und access_u auf 1 setzen solltest.
Der Rest sollte egal sein.

Unter Windows solltest du allerdings noch darauf achten dass chat auf 0 bleibt.
Reply With Quote
  #13  
Old 24-03-2006, 21:45
MikeRivle's Avatar
MikeRivle MikeRivle is offline
-= TeamSpeak Lover =-
 
Join Date: Jan 2005
Location: Germany
Posts: 95
MikeRivle is on a distinguished road
hab linux und alles 1 ( glaub das war standart )
Reply With Quote
  #14  
Old 24-03-2006, 22:34
Bastian Bastian is offline
-= TeamSpeak Fanatic =-
 
Join Date: Jul 2003
Location: ...
Posts: 2,903
Bastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond reputeBastian has a reputation beyond repute
Quote:
Originally Posted by DarkCyrus
Unter Windows solltest du allerdings noch darauf achten dass chat auf 0 bleibt.
Warum denn?
Reply With Quote
  #15  
Old 24-03-2006, 22:43
MikeRivle's Avatar
MikeRivle MikeRivle is offline
-= TeamSpeak Lover =-
 
Join Date: Jan 2005
Location: Germany
Posts: 95
MikeRivle is on a distinguished road
bei mir kommt beim starten You are running an outdated version of the TeamSpeak 2 server (2.0.20.1)
Reply With Quote
Reply

Tags
antiflood


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start stop script for TeamSpeak daemon (init) Cybernaut [TeamSpeak 2] Server Support 2 11-11-2004 18:07
TeamSpeak daemon dies unexpectedly lbaker [TeamSpeak 2] Server Support 5 04-09-2003 21:01


All times are GMT +1. The time now is 23:43.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Add to Bookmarks   |   Printview   |   Contact Us   |   Legal Notices



You Rated this Thread: