Pequeno Manual OSCAM
Pequeno Manual OSCAM
Pequeno Manual OSCAM
oscam.conf:
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 anti-cascading.
sections
in oscam.conf are nonrecurring. The [global] section is
required. All
other sections are optional.
DESCRIPTIONS
The [global] section
serverip = IP address
bind service to specified IP address, default:all
logfile = filename|/dev/null|/dev/tty|syslog
logging target, default: /var/log/oscam.log
pidfile = filename
PID file, default:no PID file
usrfile = filename
log file for user logging, default:none
date
time
CWs per second
username
IP address of client
TCP/IP port
CWs found
CWs from cache
CWS not found
login time in unix/POSIX format
logout time in unix/POSIX format
protocol
cwlogdir = path
directory for CW logging, default:none
clienttimeout = seconds
value for client process to wait for key, default:5
fallbacktimeout = seconds
time falling back to fallback reader, default:2
clientmaxidle = seconds
value for client process being idle before disconnect,
default:120
cachedelay = milli-seconds
value to delay cached requests , default:0
bindwait = seconds
value to wait for bind request to complete, default:120
netprio = priority
network priority, default:system given
resolvedelay = seconds
delay for DNS resolving, default:30
sleep = minutes
time waiting for inactive users, default:none, can be
overwritten
per user in oscam.user
unlockparental = 0|1
1 = unlock parental mode option to disable Seca pin code
request for
adult movie, default:0
nice = -20..+20
system priority, default:99
serialreadertimeout = milli-seconds
timeout for serial reader, default:1500
maxlogsize = kbytes
max log file size, default:10
showecmdw = 0|1
1 = show DW in log file, default:0
waitforcards = 0|1
1 = wait for local SCs on startup before opening network
ports,
default:0
preferlocalcards = 0|1
1 = try decoding on local cards first, default:0
serverip = IP address
bind service to specified IP address, default:all
aulow = minutes
time no EMM occurs so that client is set to low, default:30
monlevel = 0|1|2|3|4
monitor level:
0 = no access to monitor
1 = only server and own procs
2 = all procs, but viewing only, default
3 = all procs, reload of oscam.user possible
4 = complete access
hideclient_to = minutes
time to hide clients in the monitor if not sending
requests, 0 =
disabled, default:0
serverip = IP address
bind service to specified IP address, default:all
passive = 0|1
1=force passive camd 3.3x client, default:0
example: port =
10000@0100:100000;20000@0200:200000,300000,400000
serverip = IP address
bind service to specified IP address, default:all
serverip = IP address
bind service to specified IP address, default:all
user = username
user name for radegast client
serverip = IP address
bind service to specified IP address, default:all
The [cs378x] section
port =
0|port@CAID[:ident][,ident]...[;port@CAID[:ident][,ident]...]...
TCP port/CAID/ident definitions for camd 3.78x clients,0 =
disabled,
default:0
example: port =
10000@0100:100000;20000@0200:200000,300000,400000
serverip = IP address
bind service to specified IP address, default:all
maxdist = distance
maximum distance to gbox servers, default:5
ignorelist = filename
listing of providers to be ignored, format:
G:{<CAID><provider ID>},
default:none
example: G:{01001234}
onlineinfos = filename
file to store online information, default:none
cardinfos = filename
file to store card information, default:none
numusers = quantity
user per account, default:0
sampletime = minutes
duration of sample, default:2
samples = quantity
quantity of samples over limit, default:10
penalty = 0|1|2
level of penalty:
0 = only logging
1 = send fake CWs
2 = disbable user temporary
default:0, 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
denysamples = quantity
How many samples should be penalized?, default:8
MONITOR
monitor commands:
EXAMPLES
[global]
logfile = /var/log/oscam/oscam.log
usrfile = /var/log/oscam/oscamuser.log
pidfile = /var/run/oscam.pid
waitforcards = 1
[monitor]
port = 988
monlevel = 1
nocrypt = 127.0.0.1
[newcamd]
key = 0102030405060708091011121314
port =
10000@0100:100000;20000@0200:200000,300000,400000
[radegast]
port = 30000
user = radegastuser
allowed = 127.0.0.1,192.168.0.0-192.168.255.255
[camd33]
port = 40000
serverip = 192.168.0.1
key = 01020304050607080910111213141516
[cs378x]
port = 50000@0300:600000
oscam.server:
NAME
oscam.server - reader configuration file for OSCam
SYNOPSIS
The server configuration file for OSCam contains reader
parameters.
sections in oscam.server are recurring (more than one reader
possible).
At least one [reader] section is required.
DESCRIPTIONS
The [reader] section
device = device|<ip|hostname>,<port>[,<lport>]|pcsc
define local or remote reader
lport: remapping to local port
PCSC: number of PCSC readers, starting with 0
password = password
password for remote gbox reader
premium = ???
for gbox reader
account = user,password
user and password for remote reader
pincode = pincode
pincode for Conax and Cryptoworks SCs
services = [!]services[,[!]<services>]...
reader [de]assingment to service group, default=none
inactivitytimeout = minutes
inactivity timeout for newcamd reader, default:none
reconnecttimeout = minutes
TCP reconnect, if missing answers, default:none
disableserverfilter = 0|1
1 = ignore caid and ident settings of reader due faulty
clients,
default=0
label = name
name for reader, required
fallback = 0|1
1 = define reader as fallback, standard and fallback
reader must
have the same group, default:0
logport = 0|port
camd3 reader logport, camd3 UDP must be activated, only
works if
theres no camd3 cascading, 0=disabled, default=0
caid = CAID[&<mask>][,CAID[&<mask>]]...
define CAID for reader, some protocols only support one
CAID,
default:mask=FFFF
example: CAID=0100,0200&FFDF
detect = CD|DSR|CTS|RING|NONE|gpio[2-7]
status detect of card (NONE = no detection), default:CD
cardmhz = mhz
set standard SC frequency in units of 10 kHz, for Irdeto SC
set to
600, refer to OVERCLOCKING, default:357
mhz = frequency
set reader frequency in units of 10 kHz, if mhz > cardmhz you
are in
overclocking mode, refer to OVERCLOCKING, default:357
ident =
<CAID>:<ident>[,ident]...[,<CAID>:<ident>[,ident]...]...
define CAID and ident for reader
provid = ID
define provider ID for reader
class = [!]class[,[!]class]...
define class in hex for reader
chid = CAID:ChID
define Irdeto ChID for reader
showcls = quantity
number of classes subscriptions to show for Viaccess SCs,
default=10
maxqlen = size
size of request queue for reader, default:128
group = groupname
reader assingment to group, required
emmcache = usecache,rewrite,logging
set EMM cache of local reader:
usecache = 0|1 1=enable EMM chaching, default:0
rewrite = determines how often one and the same EMM is
written
logging = 0 = log errors only
1 = log all EMMs except the double EMMs
2 = log all EMMs
blocknano = nano[,nano]...|all
list of EMM-nanos to block (in hex w/o 0x) or all EMM-
nanos, only
valid for physical readers, default:none
savenano = nano[,nano]....|all
list of EMM-nanos to save (in hex w/o 0x) or all EMM-
nanos, only
valid for physical readers, default:none
readnano = [path]filename
write file (usually a copy of a file saved by savenano) to
your
smartcard, if no path is specified, the specified file is
searched
for in the configuration directory, only valid for physical
readers,
default:none
OVERCLOCKING
Dreambox reader
Smargo Smartreader+
[reader]
label = myserialmousereader
detect = cd
protocol = mouse
device = /dev/ttyS1
group = 1
caid = 0100
services = myservice,!thisservice
[reader]
label = myusbmousereader
detect = cd
protocol = mouse
device = /dev/ttyUSB0
aeskey = 0102030405060708090a0b0c0d0e0f10
group = 2
caid = 0200
[reader]
label = mycamd378xreader
protocol = cs378x
device = 192.168.0.1,1234
account = user,password
group = 3
newcamd reader
[reader]
label = mynewcamdreader
protocol = newcamd
key = 0102030405060708091011121314
device = 192.168.0.2,2345
account = user,password
group = 4
CCcam reader
[reader]
label = mycccamreader
protocol = cccam
device = 192.168.0.3,3456
account = user,password
group = 5
caid = 0300,0400,0500
cccversion = 1.2.3
cccbuild = 4567
PCSC reader
[reader]
label = mypcscreader
protocol = pcsc
device = 0
aeskey = 0102030405060708090a0b0c0d0e0f10
group = 6
caid = 0600
oscam.user:
NAME
oscam.user - user configuration file for OSCam
SYNOPSIS
The user configuration file for OSCam contains user
definitions.
[account] sections in oscam.user are recurring (more than one
account).
DESCRIPTIONS
The [account] section
user = name
account name, required
pwd = password
password for account, required
hostname = hostname
host from which user connection is allowed
betatunnel = <CAID>.<ServiceID>:<target
CAID>[,<CAID>.<ServiceID>:
<target CAID>]...
define Betacrypt tunneling (max. see CS_MAXTUNTAB in
globals.h).
The ServiceID can also be used for wildcarded CAIDs.
uniq = 0|1|2
unique level:
0 = disabled, default
1 = only one connection per user is allowed
2 = set user to fake if source ip is different
(e.g. for newcamd clients with different CAIDs and
ports)
sleep = minutes
time waiting for inactive user, default:none
caid = <CAID>[&<mask>][:<CAID>[&<mask>]...
limit CAIDs, default:all CAIDs, required
au = label of reader|1
AU setting:
label of reader = sending EMMs to specified reader
(security issue: client can see SC data!)
1 = auto AU is sending EMMs to all readers
(security issue: client can see SC data!)
default:none
group = group[,<group>]...
user assingment to reader group, default=none, required
services = [!]services[,[!]<services>]...
user [de]assingment to service group, default:none
ident = <CAID>:<ident>[,<CAID>:<ident>]...
user assingment to idents, default:none
class = [!]class[,[!]class]...
user [de]assingment to classes, default=none
chid = <CAID>:<ChID>[,<CAID>:<ChID>]...
user assingment to Irdeto ChID, default:none
monlevel = 0|1|2|3|4
monitor level:
0 = no access to monitor
1 = only server and own procs
2 = all procs, but viewing only, default
3 = all procs, reload of oscam.user possible
4 = complete access
numusers = quantity
anti-cascading: user per account, 0 = anti-cascading
permitted,
default:none
penalty = 0|1|2
anti-cascading: level of penalty:
0 = only logging, default
1 = send fake CWs
2 = disbable user temporary
EXAMPLES
[account]
user = username
pwd = password
group = 1
au = myserialmousereader
services = myservice
betatunnel = 0100.0001:0101,0100.0002:0101
caid = 0100
ident = 0100:000000
uniq = 1
oscam.services:
NAME
oscam.services - definition of services for OSCam
SYNOPSIS
service definitions
DESCRIPTIONS
The [<service name>] section
service name section, service name sections are recurring,
required
caid = CAID[,CAID]...
listing of CAIDs in hex
EXAMPLES
[myservice]
CAID=0100,0200,000A
provid=000001,ABCDEF
srvid=0001,0002,000A,000B
oscam.srvid:
NAME
oscam.srvid - service ID configuration file for OSCam
SYNOPSIS
service ID mappings
DESCRIPTIONS
<srvid>:<name of service>
mapping between service ID and name of service
EXAMPLES
000A:my service 1
00FF:my service 2
By acetatus