![]() |
![]()
| ![]() |
![]()
NAMEoscam.conf - main configuration file for OSCam SYNOPSISThe main configuration file for OSCam contains global parameters such as debugging, logging, monitor, protocols and anti-cascading. sections in oscam.conf are nonrecurring. The [global] section is required. All other sections are optional. DESCRIPTIONSThe [global] sectionnice = -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 filename).
PP initial_debuglevel = level
set initial debug level for OSCam start, default:0
PP sysloghost = hostname
set remote syslog host, default:none
syslogport = port set TCP/IP port for remote syslog host,
default:none
ecmfmt = format define ECM log format, default:c&p/i/s/l:h
possible variables:
use a value as prefix to hide variable with this value, control characters will be escaped by "\"
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 1 = enable logging of duplicate lines in the log,
default:0
disablelog = 0|1 1 = disable log file, default:0
cwlogdir = path directory for CW logging, default:config dir
emmlogdir = path directory for EMM logging, default:config dir
usrfile = filename log file for user logging, default:none
log file format:
disableuserfile = 0|1 1 = avoid logging although userfile is set,
default:1 (also set automatically if userfile is empty)
usrfileflag = 0|1 usrfile logging mode:
disablemail = 0|1 1 = disable saving NDS Videoguard mail messages from
provider, default:1
mailfile = file define file saving NDS Videoguard mail messages from
provider, default:none
enableled = 0|1|2 0 = LED support disabled (default) 1 = LED support enabled for routers 2 = LED support enabled for Qbox HD waitforcards = 0|1 1 = wait for local SCs on startup before opening network
ports, default:1
waitforcards_extra_delay = delay additional delay in milli-seconds after waiting for local
SCs on startup before opening network ports, default:500
preferlocalcards = 0|1 SC decoding behavior:
readerrestartseconds = seconds seconds beetween restarts, 0 = disable reader restart,
default:5
block_same_ip = 0|1 1 = reject looping ECMs from clients to readers with the
same IP address, default:1
block_same_name = 0|1 1 = reject looping ECMs from clients to readers with the
same name, default:1
clienttimeout = milli-seconds|seconds value (clienttimeout in seconds < 100, else
milli-seconds) for client process to wait for key, default:5
clientmaxidle = seconds value for client process being idle before disconnect, 0
= idle disconnect disabled, default:120
suppresscmd08 = 0|1 0 = tell camd 3.5x, 3.57x and 3.78x clients not to
request again for rejected CAID, service ID and provider ID combination, 1 =
disable, can be overwritten per user in oscam.user, default:0
fallbacktimeout = milli-seconds time falling back to fallback reader, default:2500
fallbacktimeout_percaid = milli-seconds time falling back to CAID restricted fallback reader,
default:2500
sleep = minutes time waiting for inactive users, default:none, can be
overwritten per user in oscam.user
serverip = IP address bind service to specified IP address, default:none
bindwait = seconds value to wait for bind request to complete,
default:120
netprio = 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20 value for network priority: IPP value will be applied to
SO_PRIORITY (system internal prioritization) DSCP value will be applied to
IP_TOS/IPV6_TCLASS (the TOS field in the IP packet header)
resolvegethostbyname = 0|1 set mode for DNS resolving:
failbancount = count number of incorrect logins after an ip address will be
blocked, default: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):
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 the 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 digits of CAID2]... ECM will be send to two or more readers with the same SC
and the CWs 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
getblockemmauprovid = 0|1
1 = server overrides EMM blocking defined on client site,
default:0
lb_mode = mode load balancing mode:
lb_save = 0|counts save auto load balance statistics:
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_min_ecmcount = counts minimal ECM count to evaluate load balancing values,
default:5
lb_max_ecmcount = counts maximum ECM count before resetting load balancing values,
default:500
lb_reopen_seconds = seconds time between retrying failed load balanced
readers/CAIDs/providers/services, default:900
lb_reopen_invalid = 0|fB1 0 = E_INVALID will be blocked until statistics has been
cleaned, default:1
lb_force_reopen_always = 0|1 1 = force reopening immediately all failing readers if no
matching reader was found, default:0
lb_retrylimit = milli-seconds retry next load balanced reader only if response time is
higher then lb_retrylimit, default:0
lb_savepath = filename filenanme for saving load balancing statistics,
default:/tmp/.oscam/stat
lb_stat_cleanup = hour hours after the load balancing statistics will be
deleted, default:336
lb_retrylimits = CAID1:time1[,CAID2:time2]... load balancing retry limit time per CAID, wildcard CAIDs
with two-digit CAIDs possible, default:none
lb_noproviderforcaid = CAID1[,CAID2]... ignore provider information for CAIDs to reduce load
balancing statistic data, wildcard CAIDs with two-digit CAIDs possible,
default:none
lb_max_readers = limit restrict the reader count to limit during load balancing
learning:
lb_auto_timeout = 0|1 1 = enable automatic timeout based on load balancing
statistics, default:0
lb_auto_timeout_p = percent percent added to average time as timeout time,
default:30
lb_auto_timeout_t = milli seconds minimal time added to average time as timeout time,
default:300
lb_auto_betatunnel = 0|1 1 = enable automatic Betacrypt tunneling detection for
CAIDs 1801, 1833, 1834, and 1835 for load balancing, Betacrypt defintion in
oscam.user with betatunnel will be prefered, default:1
lb_auto_betatunnel_mode = 0|1|2 set mode for automatic Betacrypt tunneling:
lb_auto_betatunnel_prefer_beta = direction set direction for automatic Betacrypt/Nagravision
selection:
The [monitor] sectionport = 0|port UDP port for monitor, 0 = monitor 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 monitor connection, default:none
aulow = minutes time no EMM occurs so that client is set to low, switch
from status "active" to "on", default:30
monlevel = 0|1|2|3|4 monitor level:
monlevel can be overwritten per user in oscam.user. hideclient_to = seconds time to hide clients in the monitor if not sending
requests, 0 = disabled, default:25
The [webif] sectionhttpport = [+]port port for web interface, 0 = disabled, praefix + = enable
SSL, default:none, required
httpcert = file file for http SSL certificate,
default:oscam.pem
httpforcesslv3 = 0|1 1 = force using SSLv3, default:0
httpuser = username username for password protection, default:none
httppwd = password password for password protection, default:none
httpcss = path path for external CSS file, default:none
http_prepend_embedded_css = 0|1 1 = embedded CSS will be added before external CSS ,
default:0
httptpl = path path for external templates and picons, multiple
simultaneously templates and picons are possible by creating sub folders
(maximum length of 32 alphanumeric characters), sub folders naming is
corresponding to sub folder in URL, default:none
httpjscript = path path for oscam.js javascript, default:none
httprefresh = seconds status refresh in seconds, default:none
httphideidleclients = 0|1 1 = enables hiding clients after idle time set in
parameter hideclient_to, default:0
httphidetype = type[type]... characters defining columns to hide in web interface
status page (see type column), default:none
httpscript = path path to an executable script which you wish to start from
web interface, 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.0-192.168.255.255,10.0.0.0-10.255.255.255,::1
httpdyndns = hostname[,hostname][,hostname] http web interface connections allowed, default:none
httpsavefullcfg = 0|1 write config:
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] sectionhttposcamlabel = 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] sectiondelay = 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 than the parameter clienttimeout, default:15
max_hit_time = seconds maximum time for cache exchange hits resist in cache for
evaluating wait_time, default:15
wait_time = [caid][&mask][@provid][$servid][:awtime][:]dwtime[,[caid][&mask][@provid][$servid][:awtime][:]dwtime]... wait time in milli-seconds for cache exchange and
Cardservproxy before sending ECMs to reader or proxy, default:none
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]...
cacheex_mode1_delay = CAID1:time,[BCAID2:time]... delay in milli-seconds for asking cache exchange mode 1
readers, default: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 could 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, maximum: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:
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 available for sending ECMs:
The [camd33] sectionport = 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
passive = 0|1 1 = force passive camd 3.3x client, default:0
key = 128 bit key key for camd 3.3x client encryption, default:none
The [cs357x] sectionport = 0|port UDP port for camd 3.57x clients, 0 = disabled,
default:0
serverip = IP address bind service to specified IP address, default:all
suppresscmd08 = 0|1 0 = tell camd 3.5x / 3.57x clients not to request again
for rejected CAID, service ID and provider ID combination, 1 = disable, can be
overwritten per user in oscam.user, default:0
The [cs378x] sectionport = 0|port[@CAID][:provid][,provid]...[;port@CAID[:provid][,provid]...]... TCP port/CAID/provid definitions for camd 3.78x clients,
0 = disabled, default:0
serverip = IP address bind service to specified IP address, default:all
keepalive = 0|1 0 = disable camd 3.78x keepalive modus, default:0
suppresscmd08 = 0|1 0 = tell camd 3.78x clients not to request again for
rejected CAID, service ID and provider ID combination, 1 = disable, can be
overwritten per user in oscam.user, default:0
The [newcamd] sectionkey = DES key default key for newcamd client encryption, default:none
port = port[{DES key}]@CAID[:provid][,provid]...[;port[{DES key}]@CAID[:provid][,provid]...]... TCP port/DES key/CAID/provid definitions, default:none
Each CAID requires a separate port. If you don't specify a DES key for a port, the default DES key will be used. serverip = IP address bind newcamd service to specified IP address,
default:all
allowed = IP address|IP address range[,IP address|IP address range]... newcamd client connections allowed from, default:none
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] sectionport = 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
user = username user name for radegast client
The [serial] sectiondevice =
<user>@<device>[:baud][?option1=value1[&option2=value2]...]
parameters:
supported serial devices (autodection):
The [cccam] sectionport = 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
reshare = level reshare level for CCcam clients (default:10):
-1 = no resharing
reshare_mode = mode CCcam reshare mode:
Every server is shared as hop = 0 and with defined reshare values. Service reshare only works if positive services defined: no service - no reshare! ignorereshare = 0|1 CCcam reshare setting:
stealth = 0|1 1 = behaviour like the original CCcam: no activate
partner detection and extended OSCam-CCcam protocol, prevent other OSCam to
detect the server as OSCam server, default:0
minimizecards = mode mode how to provide CCcam servers to CCcam clients:
updateinterval = seconds interval to provide share list update to CCcam clients,
values <= 10 are invalid and will be set to 30, default:240
keepconnected = 0|1 set CCcam keepalive modus:
recv_timeout = milli-seconds set network timeout for receiving data,
default:2000
forward_origin_card = 0|1 1 = forward ECM request to reader holding this card,
load balancer, fallback and caching will be disabled, default:0
nodeid = ID set CCcam node ID in hex, default:none
The [gbox] sectionhostname = hostname| IP address set hostname or IP address for gbox protocol,
default:none
port = port[,port]... UDP port for gbox server, default:0
my_password = password password for connection to local gbox peer,
default:none
proxy_card = <CAID><provid>[,<CAID><provid>]... proxy reader SCs to be reshared into gbox network,
default:none
ccc_reshare = 0|1 1 = enable CCCam reshare, default:0
my_vers = version set gbox version in hexadecimal low byte,
default:2A
my_cpu_api = byte set gbox CPU and API byte in hexadecimal,
default:40
gbox_reconnect = time send hello message to peers in seconds, default:180,
min:60, max:300
log_hello = 0|1 1 = log hello messages, default:1
dis_attack_txt = 0|1 1 = disable creation of attack.txt, default:0
gsms_disable = 0|1 1 = disable gbox short message service (GSMS),default:1
sending a messeage: /tmp/gsms.txt: <box ID> <1=mormal message|2=OSD/TV message> <message 6 to 127 characters>, status will be stored in '/tmp/gsms.ack' respective 'gsms.nack', receiving a message: The message will be stored in /tmp/gsms.log tmp_dir = path temporary directory for gbox, default:/tmp/.oscam
accept_remm_peer = peer-id1[,peer-id2]... accept REMM requests from gbox peer(s),
default:none
The [scam] sectionport = port UDP port for scam server, default:0
The [dvbapi] sectionenabled = 0|1 1 = DVB API enabled, default:0
Create file /tmp/.pauseoscam to pause DVB API, e.g. if STB goes into standby and OSCam remains as SC server only. listen_port = 0|port TCP/IP port for SAT IP clients, filtering has to be done
on client site, 0 = disabled, default:0
user = username user name for DVB API client, default:anonymous
ignore = <CAID>[,<CAID>]... (detached by oscam.dvbapi, obsolete) CAIDs to be ignored, default:none
services = <service ID>[,<service ID>]... (detached by oscam.dvbapi, obsolete) services to be prioritized, default:none
priority = <CAID>:<provider ID>[,CAID:<provider ID>]... (detached by oscam.dvbapi, obsolete) CAIDs and provider IDs to be prioritized, default:CAIDs
and provider IDs of local SCs will be prioritized
au = 0|1|2 AU mode:
pmt_mode = 0|1|2|3|4|5 PMT mode:
ecminfo_file = 0|1 ecm.info file:
ecminfo_type = 0|1|2|3|4|5 ecm.info types:
request_mode = 0|1 CAID request mode:
boxtype = dbox2|dreambox|dm7000|duckbox|ufs910|ipbox|ipbox-pmt|qboxhd|coolstream|neumo|samygo|pc set boxtype, auto detection of DVB API will be aspired,
default:dreambox
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.socket support), verified on HD models only pc is for generic pc support (currently supported on VDR with vdr-plugin-dvbapi) read_sdt = 0|1|2 mode of provider, channel name and service type auto
detection via SDT:
write_sdt_prov = 0|1 mode writing provider name into oscam.srvid2 file:
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] sectionenabled = 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:
penalty can be overwritten per user in oscam.user. aclogfile = filename file for anti-cascading logging, default:none
fakedelay = milli-seconds fake delay time, default:1000, minimum value is 100,
maximum value is 3000
denysamples = quantity how many samples should be penalized, default:8
acosc_enabled = 0|1 1 = enable anti-cascading over SID count, default:0
acosc_max_ecms_per_minute = count maximum ecms per minute, 0 = unlimited, default:0
Can be overwritten per user in oscam.user. acosc_max_active_sids = count maximum active SIDs with anti-cascading over SID, 0 =
unlimited, default:0
Can be overwritten per user in oscam.user. acosc_zap_limit = count zap limit for anti-cascading over SID, 0 = unlimited,
default:0
Can be overwritten per user in oscam.user. acosc_penalty = 0|1|2|3|4 level of penalty with anti-cascading over SID count:
Can be overwritten per user in oscam.user. acosc_penalty_duration = seconds penalty duration for anti-cascading over SID count,
default:0
Can be overwritten per user in oscam.user. acosc_delay = milli-seconds delay for anti-cascading over SID count, default:0
Can be overwritten per user in oscam.user. LOGGING
MONITORmonitor commands:
WEB INTERFACE
CACHINGtypes of ECM caching:
SEE ALSOlist_smargo(1), oscam(1), oscam.ac(5), oscam.cacheex(5), oscam.cert(5), oscam.dvbapi(5), oscam.fakecws(5), oscam.guess(5), oscam.ird(5), oscam.provid(5), oscam.ratelimit(5), oscam.server(5), oscam.services(5), oscam.srvid(5), oscam.srvid2(5), oscam.tiers(5), oscam.user(5), oscam.whitelist(5)
|