The Best Streaming Software!
VIVO Rent A Car - Your car rental
Върни се   Digital TV Forums - БЪЛГАРСКИЯТ ФОРУМ ЗА ЦИФРОВА ТЕЛЕВИЗИЯ > Шеринг и емулатори > Емулатори > CCcam

Отговори
 
Контрол над темата Начин на разглеждане
  #1  
Стар 04-04-2010
Аватара на thunderstorm6
thunderstorm6 thunderstorm6 не е на линия
metal staff
 

Дата на присъединяване: Apr 2009
Местоположение: Sofia
Мнения: 1,225
Благодари: 784
Получил благодарност:
925 пъти в 580 поста
Сваляния: 329
Ъплоуди: 58
По подразбиране cccam invalid user script за Linux PC

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.
Прикрепени файлове
Тип файл: zip cccam_invalid_user.zip (6.6 КБ, 17 разглеждания)
__________________
210см руска / SuperJack HARL 18" / Truman PF-1 0.3db / 150см Пещерска / SuperJack HARL 18" / Inverto IDLP-SFLANGE White 0.3db / Inverto Twin White 0.3db / Schwaiger SPI1000.0 / Stab 120 / Inverto Red Twin / SuperJack VBOXII / Moteck VBOXII / Dreambox 920UHD / Dreambox 525HD combo / Dreambox 8000HD PVR / Dreambox 520HD / Dreambox 800SE
Отговори с цитат
Следните потребители БЛАГОДАРЯТ на thunderstorm6 за този полезен пост :
heracle (04-04-2010)
Sponsored Links
VIVO Rent A Car  Вземи своят Vu+ сега!  SatPlus
Отговори

Съобщения от Devil M
VIVO Rent A Car  

Тагове
cccam, invalid, linux, pc, script, user, за


Активни потребители разглеждащи тази тема в момента: 1 (0 членове и 1 гости)
 

Подобни теми
Тема Започнал темата Форум Отговори Последно мнение
Как да си на Linux PC CCcam сървър с ClarkConect netman Уроци и съвети за начинаещи 14 27-11-2015 17:14
CCCam на GNU Debian Linux ТИНТИН CCcam 3 12-10-2011 00:18
linux b00m Въпроси и отговори 2 30-12-2009 14:03
script to start OSCAM CCcam 2.0.11 thunderstorm6 Емулатори 3 23-11-2009 18:42
CCcam Check-Script Sharp987 CCcam 4 09-07-2009 01:16


Всички времена са във формат GMT +3. Часът е 20:43.


DTV-BG Powered by vBulletin Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.