Results 1 to 1 of 1

Thread: Block deleted CCcam users

  1. #1
    Super Moderator aguda's Avatar
    Join Date

    Block deleted CCcam users

    Block deleted CCcam users

    This script was written to work on standard Linux machine with iptables firewall installed. However, i see no reason why this script (with some modifications) wouldn’t work on any Enigma1 / Enigma2 based image with iptables installed. Idea was to block unwanted users from trying to connect to your CCcam server. directly on firewall. There can be few reasons for this:

    * you deleted the F: line but client still tries to connect every 15 seconds
    * client has a valid login, but keeps on reconnecting every 15 seconds because his line was hacked, or simply bad connection

    In order for this script to work i had to make some presumptions:

    * script will be run by cron daemon every XX minutes
    * CCcam is running in debug mode (-d switch) and log is being written on disk
    * log is deleted/moved after every script run
    * script uses iptables firewall to block users
    * firewall is beeing “cleaned” once a day
    * person reading this knows what he/she is doing and understands the conecept

    Script has two parts.
    First one goes trough CCcam log file, finds “invalid user” and blocks all traffic FROM this addresses. Meaning you will still have to connect to their server.
    Second part blocks users with to many connection attempts in specified period of time. You have to set values inside the script maximum number of reconnect attempts between two script runs, and how long you would like person to be blocked. When block expires user will be allowed to connect, if problem keeps repeating it will be blocked again. This way person will be allowed to connect every XX minutes, and user will not see your server offline for hours or days.

    Thanks to shax
    Attached Files Attached Files

Similar Threads

  1. Replies: 18
    Last Post: 21-05-2010, 11:03:38
  2. block cards
    By gelderland27 in forum General Discussions: Cardsharing
    Replies: 0
    Last Post: 27-03-2010, 12:01:20
  3. Question CCcam.cfg deleted
    By smokiesam in forum Dreambox
    Replies: 1
    Last Post: 30-10-2009, 15:36:46
  4. Info Pirate Bay ordered to block Dutch users
    By <<ELVIS>> in forum Daily Satellite TV News
    Replies: 0
    Last Post: 01-08-2009, 14:14:36
  5. New old kid on the block....
    By beanbag in forum Introductions
    Replies: 2
    Last Post: 02-05-2008, 17:52:04

Posting Permissions

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