Community Forums Today's Posts     Member List     Archive    
Page 1 of 5 123 ... LastLast
Results 1 to 15 of 194

Hybrid View

  1. #1
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    2,297

    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 13:45. Reason: updated URLs

  2. #2
    Join Date
    Jul 2003
    Location
    Lübeck
    Posts
    69

    Thumbs up

    Danke für die Arbeit :-)

  3. #3
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    128
    Habs noch nicht ausprobiert aber ich bin von dem was du tust immer überzeugt! Nice job!

  4. #4
    Join Date
    Oct 2004
    Location
    Germany
    Posts
    1,710
    Tzetzetze gibts doch schon lange ähnliche Sachen für

    Aber trotzdem nice one :-D
    Last edited by Cyrus; 20-03-2006 at 15:18.

  5. #5
    Bastian Guest
    Das Ding ist bei TeamSpeak Einstieg im Einsatz und funktioniert bisher ohne Probleme.

  6. #6
    Join Date
    Jul 2003
    Location
    Lübeck
    Posts
    69
    Schön ist, das es kostenfrei und vor allem auch kostenlos von kommerziellen Hostern genutzt werden kann.

  7. #7
    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

  8. #8
    Join Date
    Oct 2004
    Location
    Germany
    Posts
    1,710
    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.

  9. #9
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    97
    hab linux und alles 1 ( glaub das war standart )

  10. #10
    Bastian Guest
    Quote Originally Posted by DarkCyrus
    Unter Windows solltest du allerdings noch darauf achten dass chat auf 0 bleibt.
    Warum denn?

  11. #11
    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)

  12. #12
    Join Date
    May 2005
    Location
    Germany / Oberhausen
    Posts
    127
    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

  13. #13
    Join Date
    Jul 2003
    Location
    Lübeck
    Posts
    69
    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 :-)

  14. #14
    Join Date
    Feb 2006
    Location
    United States
    Posts
    243
    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.

  15. #15
    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

  1. Start stop script for TeamSpeak daemon (init)
    By Cybernaut in forum [TeamSpeak 2] Server Support
    Replies: 2
    Last Post: 11-11-2004, 17:07
  2. TeamSpeak daemon dies unexpectedly
    By lbaker in forum [TeamSpeak 2] Server Support
    Replies: 5
    Last Post: 04-09-2003, 20:01

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •