Configuracion Oscam - Conf
Configuracion Oscam - Conf
Configuracion Oscam - Conf
conf(5)
oscam.conf(5)
NAME
oscam.conf - main configuration file for OSCam
SYNOPSIS
The main configuration file for OSCam contains global parameters such as
debugging, logging, monitor, protocols and anticascading. sections in oscam.conf are nonrecurring. The [global] section
is required. All other sections are optional.
DESCRIPTIONS
The [global] section
nice = -20..+20
system priority, default:99
pidfile = filename
set PID file, default:none
logfile = [filename][;syslog][;stdout]
logging targets, default:/var/log/oscam.log. You can define a maximum
of one filename and additionally to log to stdout
or syslog (you can also only log to stdout or syslog and omit the file
name).
ecmfmt = format
define ECM log format, default:c&p/i/s/l:h
possible variables:
c
d
e
g
h
i
j
l
o
p
s
w
=
=
=
=
=
=
=
=
=
=
=
=
CAID
PID
CSP hash
ID of origin gbox peer
checksum
Channel ID
distance of gbox hops
length
ONID
provider ID
service ID
CW
use a value as prefix to hide variable with this value, control charac
ters will be escaped by "\"
example: ecmfmt = c&0p/i/d/s/l:h.e_w
(hide provider ID if 0)
loghistorysize = bytes
size of log message history in web interface or monitor, 0 = disabled,
default:4096
maxlogsize = kbytes
maximum log file size, 0 = unlimited, default:10
logduplicatelines = 0|1
0|1|2
support disabled (default)
support enabled for routers
support enabled for Qbox HD
waitforcards = 0|1
1 = wait for local SCs on startup before opening network ports, defaul
t:1
waitforcards_extra_delay = delay
failbancount = count
number of incorrect logins after an ip address will be blocked, defaul
t:0
failbantime = minutes
time for IP based blocking for clients with an invalid login attempt,
0 = failban is disabled, default:0
dropdups = 0|1
mode for duplicate client connections (requirement: uniq > 0):
0 = mark client as duplicate, but don't disconnect them (default)
1 = drop duplicate connections instead of marking as duplicate
unlockparental = 0|1
1 = unlock parental mode option to disable Seca and Viaccess pin code
request for adult movie, default:0
double_check = 0|1
1 = ECM will be send to two or more readers with the same SC and th
e CWs will be verified against each other,
lb_nbest_readers must be set to 2 or higher, default:0
double_check_caid = [CAID1|first two digits of CAID1],[CAID2|first two di
gits of CAID2]...
ECM will be send to two or more readers with the same SC and the CW
s will be verified against each other for defined
CAID or first two bytes of CAID, lb_nbest_readers must be set to 2 or
higher, default:none
lb_mode = mode
load balancing mode:
0 = load balance disabled, ECMs go to all readers (default)
1 = fastest reader first, after 5 ECMs the reader with the fastest
response time will be selected
2 = oldest reader first, reader with the longest no answer
3 = lowest usage level, the usage level will be calculated by the
sum of 5 ECMS response times, the higher a reader is busy, the
higher is usage level
lb_save = 0|counts
save auto load balance statistics:
0 = saving of auto load balance statistics disabled (default)
counts = save auto load balance statistics every counts ECMs
(minimum 100)
To save CPU power a minimum counts of 100 is recommended.
lb_nbest_readers = counts
set count of best readers for load balancing, default:1
lb_nfb_readers = counts
set count of fallback readers for load balancing, default:1
lb_nbest_percaid = CAID1:count1[,CAID2:count2]...
set count of best readers per CAIDs for load balancing, wildcard CAIDs
with two-digit CAIDs possible, default:none
lb_auto_betatunnel_prefer_beta = direction
set direction for automatic Betacrypt/Nagravision selection:
0
1
105
200
=
=
=
=
disabled (default)
always Betacrypt
represents the middle
always Nagravision
=
=
=
=
=
no access to monitor
only server and own procs
all procs, but viewing only (default)
all procs, reload of oscam.user possible
complete access
'p':
'r':
's':
'x':
proxy
reader
server
cache exchange
httpscript = path
path to an executable script which you wish to start from web interfac
e, default:none
httpallowed = IP address|IP address range[,IP address|IP address range]..
.
http web interface connections allowed, default:127.0.0.1,192.168.0.0192.168.255.255,10.0.0.0-10.255.255.255,::1
example: httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255
httpdyndns = hostname[,hostname][,hostname]
http web interface connections allowed, default:none
example: httpdyndns = host.example.com
httpdyndns = host1.example.com,host2.example.com
httpsavefullcfg = 0|1
write config:
0 = all not empty parameters, all not default parameters, all
parameters not containing the same value as the same
parameter in global configuration (default)
1 = all parameters
httpoverwritebakfile = 0|1
1 = overwrite backup configuration files, default:0
httpreadonly = 0|1
1 = read only modus for web interface, default:0
httpshowpicons = 0|1
1 = show picons in user list, default:0
httppiconpath = path
path to picons, default:none
httphelplang = en|de|fr|<available wiki languages>
set right language for wiki entry point, default:en
httplocale = environment
set the locale environment, default:none
The [lcd] section
httposcamlabel = text
set individual label in web interface header, default:OSCam
enablelcd = 0|1
1 =enable LCD output, default:0
lcd_outputpath = path
path for LCD output, default:/tmp
lcd_hideidle = 0|1
1 = hide reader in LCD output if reader idle > 20 seconds, default:0
lcd_writeintervall = seconds
LCD refresh interval (minimum 5), default:10
The [cache] section
delay = milli-seconds
value to delay cached requests, default:0
max_time = seconds
maximum time CWs resist in cache, the time must be 2 seconds highter t
han the parameter clienttimeout, default:15
max_hit_time = seconds
maximum time for cache exchange hits resist in cache for evaluating wa
it_time, default:15
wait_time = [caid][&mask][@provid][$servid][:awtime][:]dwtime[,[caid][&ma
sk][@provid][$servid][:awtime][:]dwtime]...
wait time in milli-seconds for cache exchange and Cardservproxy before
sending ECMs to reader or proxy, default:none
example: wait_time = 0:50:250,0200@00009X:50:150,15:950,0500@000001:1
50,1602&ffdf:1200
cacheexenablestats = 0|1
1 = enable statistics for cache exchange mode, default:0
Please consider memory consumption.
cacheex_cw_check = [caid][&mask][@provid][$servid]:mode:counter[,[caid][&
mask][@provid][$servid]:mode:counter]...
mode = specify behaviour for counter:
0 = when wait_time expires, serve highest counter's CW
got anyway, even if no counter reached (default)
1 = never serve CW from cache exchange stored in cache,
if it's counter not reaches counter. When wait_time
expires, requests will go to normal readers
counter = set minimum CW counter to allow CW is used, default:1
cacheex_mode1_delay = CAID1:time,[BCAID2:time]...
delay in milli-seconds for asking cache exchange mode 1 readers, defau
lt:none
csp_port = port
UDP port of Cardservproxy for cache exchange, default:none
csp_serverip = IP
bind Cardservproxy for cache exchange to specified IP address, default
:none
csp_ecm_filter = [caid][&mask][@provid][$servid][,[caid][&mask][@provid][
$servid]]...
Cardservproxy incoming ECM filter setting, default:none
csp_allow_request = 0|1
allow incoming ECM request from Cardservproxy, default:1
csp_allow_reforward = 0|1
1 = reforward other cacheex updates to Cardservproxy peers, option cou
ld cause loops, default:0
cwcycle_check_enable = 0|1
1 = enable CW cycle check, default:0
cwcycle_check_caid = CAID[,CAID]...
CAID enabled for CW cycle check, default:none
cwcycle_maxlist = count
maximum CW cycle list entries, default:500, maximum:4000
cwcycle_keeptime = minutes
minimum time a learned cycle time resists in memory, default:15, maxim
um:15
cwcycle_onbad = 0|1
0 = log bad CW cycle only, 1 = drop bad CW cycle, default:1
cwcycle_dropold = 0|1
1= drop old CW cycle, default:1
cwcycle_sensitive = 0|2|3|4
drop CW mode:
0
2
3
4
=
=
=
=
disabled
2 (or more) same bytes and drop new CW
3 (or more) same bytes and drop new CW
4 (or more) same bytes and drop new CW (default)
cwcycle_allowbadfromffb = 0|1
1 = allow bad cycles from a fixed fallback reader, default:0
cwcycle_usecwcfromce = 0|1
1 = use CW info from cache exchange, default:0
wait_until_ctimeout = 0|1
answer when cache exchange timeout expires, if no normal readers are a
vailable for sending ECMs:
0 = immediately send 'not found' to client (default)
1 = wait for cache exchange answer until client timeout expires
The [camd33] section
port = 0|port
TCP port for camd 3.3x clients, 0 = disabled, default:0
serverip = IP address
bind service to specified IP address, default:all
nocrypt = IP address|IP address range[,IP address|IP address range]...
unsecured camd 3.3x client connection, default:none
example: nocrypt = 127.0.0.1,192.168.0.0-192.168.255.255
passive = 0|1
1 = force passive camd 3.3x client, default:0
key = 128 bit key
keepalive = 0|1
0 = disable newcamd keepalive modus, default:0
mgclient = 0|1
1 = provide share information of all available CAIDs and provider IDs
to mgcamd clients, default:0
The [radegast] section
port = 0|port
TCP/IP port for radegast clients, 0 = disabled, default:0
serverip = IP address
bind service to specified IP address, default:all
allowed = IP address|IP address range[,IP address|IP address range]...
client connections allowed from, default:none
example: allowed = 127.0.0.1,192.168.0.0-192.168.255.255
user = username
user name for radegast client
The [serial] section
device = <user>@<device>[:baud][?option1=value1[&option2=value2]...]
[;<user>@<device>[:baud][?option1=value1[&option2=value2]...]]..
.
parameters:
user = account
device = serial device name|hostname|IP,port
baud = serial port speed (for serial devices only)
option = timeout = milli-seconds, timeout for connection,
default:50
delay = milli-seconds, additional delay between two
characters, default:0
supported serial devices (autodection):
HSIC
(humax sharing interface client)
SSSP
(simple serial sharing protocol)
bomba (BOMBA firmware)
dsr9500 (DSR 9500)
example: user1@/dev/ttyS1:115200?delay=1&timeout=5000
[email protected],12345?delay=1&timeout=5000
The [cccam] section
port = 0|port[,0|port]...
TCP/IP ports for CCcam clients, 0 = disabled, default:0
version = <main version>.<version>.<sub version>
define CCcam version, minimum CCcam version 2.0.11, used with original
CCcam only, default:none
example: version = 1.2.34
reshare = level
reshare level for CCcam clients (default:10):
-1 = no resharing
0 = resharing for direct peer only
=
=
=
=
=
=
request_mode = 0|1
CAID request mode:
0 = try all possible CAIDs one by one (default)
1 = try all CAIDs simultaneously
boxtype = dbox2|dreambox|dm7000|duckbox|ufs910|ipbox|ipbox-pmt|qboxhd|coo
lstream|neumo|pc
set boxtype, auto detection of DVB API will be aspired, default:dreamb
ox
ipbox with camd.socket support, currently only with PGI image version
0.6 or above, verified on HD models only
ipbox-pmt can be used on any DGS based images (with or without camd.so
cket support), verified on HD models only
pc is for generic pc support (currently supported on VDR with vdr-plug
in-dvbapi)
cw_delay = milli-seconds
delay of CW writing, default:none
delayer = milli-seconds
minimum time to write CW, default:0
reopenonzap = 0|1
1 = reopen demux devices on each channel switching, default:0
The [anticasc] section
enabled = 0|1
1 = enable anti-cascading, default:0
numusers = quantity
anti-cascading: user per account, 0 = anti-cascading disabled, default
:0
sampletime = minutes
duration of sample, default:2
samples = quantity
quantity of samples over limit, default:10
penalty = 0|1|2|3
level of penalty:
0
1
2
3
=
=
=
=
=
=
=
=
LOGGING
reader stages
1
2
3
4
=
=
=
=
logging format
stage/used/chosen/possible
MONITOR
monitor commands:
login <user> <password>
login (for unencrypted connections only)
getuser <user> <parameter>=<value>
get parameter for user
setuser <user> <parameter>=<value>
set parameter for user
setserver <parameter>=<value>
set parameter for server
exit
exit monitor
log <on|onwohist|off>
enable|enable without hitory|disable logging for 2 minutes
status
list of current processes and clients
shutdown
shutdown OSCam
restart
restart OSCam
keepalive
send keepalive
reload
reinit user db, clients and anti-cascading, for newcamd connections: a
fter reloading the provid, please restart newcamd
client
details <PID>
details about selected PID
reread
read again
debug <level>
set debug level (monlevel > 3 required)
debug level mask:
0 = no debugging (default)
1 = detailed error messages
2 = ATR parsing info, ECM dumps, CW dumps
4 = traffic from/to the reader
8 = traffic from/to the clients
16 = traffic to the reader-device on IFD layer
32 = traffic to the reader-device on I/O layer
64 = EMM logging
128 = DVB API logging
256 = load balacing logging
512 = cache exchange logging
1024 = client ECM logging
65535 = debug all
version
show OSCam version
commands
show all valid monitor commands
WEB INTERFACE
template system
The web interface allows you to create your own template. For developi
ng your own template request the orignal template
with the non-linked page savetemplates.html. Store your own template i
n the directory specified by httptpl.
CACHING
oscam.conf(5)