OScam configuration file Settings complete guide

OScam configuration file Settings complete guide

Basic OScam configuration file settings

oscam.conf

[global]

logfile = [filename],[syslog],[stdout]

Log output to the console, you can also use output to a file or in the format for Syslog – logfile = [filename],[syslog],[stdout] , by default logfile = /var/log/oscam.log

disable log, default = 0 (log enabled) disablelog = 1

The priority for the process can vary from -20 to +20 (where -20 is the maximum priority). Given the undemanding oscam to resources, you can set less. If this parameter is missing, then the default value is 99 nice = -1

DW key waiting time

The maximum time to wait for a DW key from the server is in milliseconds, if there is no # response during this time – we will see a timeout in the log. If the value is up to 100, the dimension is taken into account not in milliseconds, but in seconds. default=5 clienttimeout=8000

Retry the request if there is no response within this time. Time in milliseconds from the moment the first request leaves the server, after which there will be a second request if no response is received, default = 2500 fallbacktimeout = 4000

Waiting for an internal CS server before opening network ports. Default=0 (don’t wait) waitforcards=1

Duration of the additional delay

In milliseconds after waiting for the internal CS server at startup, before opening network ports. Default=500 waitforcards_extra_delay=800

try to decode the request on internal maps. Default = 0 (do not try) preferlocalcards = 1

delay before sending DW to the receiver from the cache, some receivers do not digest too fast a response. Default = 0 (no delay) cachedelay = 300

this parameter is used in the modification from yuriks, it is used to set the provID value to zero for the operation of package shares in Irdeto encoding (for example, Redlight HD) setirdetoprov = 0

[monitor] – section for connecting a monitor on port 988

And here is the monitor file that does not require installation, but starts with .exe

OScam_Monitor_0.1.9.zip

  • port = 988 – you can specify your port
  • nocrypt = 192.168.0.0-192.168.255.255 – access to the monitor only from this address range
  • aulow = 120
  • hideclient_to = 0
  1. # monitoring capability level
  2. # 0 = no access to monitor
  3. # 1 = only server and own procs
  4. # 2 = all procs, but viewing only, default
  5. # 3 = all procs, reload of oscam.user possible
  6. #4 = complete access  

monlevel = 4

Indicate the name of the channel in the log appendchaninfo = 1

Newcamd

[newcamd] – section that allows you to share the card for home (and not only) sharing using the newcamd protocol

port = port@CAID:IDENT

as an example Tricolor card 52 series
# port = 10500@4AE0:15

as an example, the Tricolor card of the 13th series
# port = 10500@4AE1:11
key = 0102030405060708091011121314

[dvbapi] – dvbapi section

enable section
enabled = 1

enable map update
au = 1

ATTENTION!!! The following parameters are different for the receivers, so we customize it to your own !!!
boxtype = none
user = root

This setting reduces the chance of oscam crashing.

pmt_mode = 5
1. # PMT mode:
2. # 0 = use camd.socket and PMT file, default
3. # 1 = disable reading PMT file
4. # 2 = disable camd.socket
5. # 3 = read PMT file on startup only
6. # 4 = do not use signal handler for monitoring /tmp
7. # 5 = do not use signal handler for monitoring /tmp, disable camd.socket

parameter to speed up channel switching
request_mode = 1

this parameter should help with remote map update
Force_Emm = 1

[anticasc] — section describing anticascading rules

section is enabled, if = 0 — anti-cascading is disabled, default = 0
enabled = 1

number of users per account
numusers = 1

sample time
sampletime = 3

number of periods to measure, default:10
samples = 10

penalty


penalty = 1
1. # Type of penalty:
2. # 0 = logging only
3. # 1 = sending false responses to CWs
4. # 2 = disconnecting the user temporarily

fakedelay = 200
number of false responses, default 8

[webif] – web interface connection section on port 8080

httpport = 8080 – you can set your port
httpuser = oscam – you can set your login
httppwd = oscam – you can set your password

update information after 5 seconds, default 7c
httprefresh = 5

access only from the range of ripped addresses
httpallowed = 192.168.0.1-192.168.255.255

httphideidleclients=0

Read-only access


httpreadonly=1

httpsavefullcfg=0

oscam.server

[reader] – for example, a reader for a tuner with one card slot for 52 Tricolor cards

reader
label label = tricolor

enabling the reader, if this section is not needed during debugging then = 0
enable = 1

ATTENTION!!! The following parameters are different for the receivers, so we adjust to yours!
protocol=stapi

if there is only one card reader slot
device = SC0

forced setting of CAID regardless of autodetect
setdrecaid = 4AE0

if sharing clients from an installed card define a ProviderID on DRE channels (oscam itself can easily handle different identities), otherwise ident = 4AE0:000000,000015
ident = 4AE0:000015

parameter to call the list from the oscam.services file for channels allowed for processing by the map
services = tricolor_52

set as the main reader
fallback = 0

group=1

enable cache for EMM and monitor written EMM
emmcache = 1,3,2
1. #emmcache = usecache,rewrite,logging
2. #set EMM cache of local reader:
3. #usecache = 0|1 1 = enable EMM caching, default :0
4. #rewrite = determines how often one and the same EMM is written
5. # logging = EMM logging mask:
7. # 0 = EMM logging disabled
8. # 1 = logging EMM errors
9. # 2 = logging written EMMs
10. # 4 = logging skipped EMMs
11. # 8 = logging blocked EMMs

restarting the reader in case of an error after 3 seconds
reset = 3

[reader] – an example of a reader for viewing tricolor channels that do not open with 52 cards (from the reader above) from an external server with filtering using the services parameter

Label = tricolor_shara
enable = 1
Protocol = newcamd
Key = 0102030405060708091011121314
Device = server,port
Account = login,pass
IDENT = 4AE1:000011

organize filtering by SID of channels allowed or prohibited for processing on a remote server balls
Calling the list from the oscam.services file filtering by SID for channels allowed to be sent to an external server.
services=tricolor_13

calling the list from the oscam.services file for channels prohibited for processing by the map
#services =! tricolor_52ignore

group=1
fallback=0

time in minutes after which the server is reconnected if requests are sent but no responses are received. Default=30
ReconnectTimeout=20

ignore the response from the remote server if it only responds with a null id instead of the correct 000011 for card 13.
disableserverfilter=1

[reader] – an example of a reader for a tuner with two card readers for an NTV card with id 023700 and a paid subscription only to the basic extended package

label = ntv
enable = 1
protocol = stapi

card in the upper card reader, SC0 – lower

00device=SC1

ident=0500:0237

allow card requests only for channels of the basic extended package by filtering by class

class = 07
group = 1
fallback = 0
emmcache = 1,3,2

[reader] – an example of a reader for an external server ntv balls

Label = ntv_shara
enable = 1
Protocol = newcamd
Key = 0102030405060708091011121314
Device = server,port
Account = login,pass
IDENT = 0500:023700

we allow requests to an external sharing server except for the channels of the basic extended package – WHICH WE LOOK FROM THE MAP (see the previous reader)

class = !07
Group = 1
fallback = 0
ReconnectTimeout = 20

[reader] – another example of a reader for an external share server

Label = All
enable = 1
Protocol = newcamd

 


Key = 0102030405060708091011121314
Device = server,port Account = login,pass IDENT = …. ,
042200,042400,042700,040810

Group=1
fallback=0
ReconnectTimeout=20

[reader] – another example of a reader for an external backup share server

Label = All
enable = 1
Protocol = newcamd
Key = 0102030405060708091011121314
Device = server_rezerv,port_rezerv
Account = login_rezerv,pass_rezerv
IDENT =
# list the necessary packages, as an example for VIA encoding
# IDENT = 0500:
023100,042300,024F00,032500,04100,04100,04100 ,042400,042700,040810

group=1

If there is a backup sharing server, then you can set it in addition to the main one

parameter fallback = 1, while the request is sent to readers with fallback = 0 (if there is no such parameter in the reader, then it is equal to 0) if there is no response after the fallbacktimeout (default 2500 ms), then the request is sent to ALL readers – that is, repeatedly on readers with fallback = 0 and for the first time on readers with fallback = 1

fallback = 1
ReconnectTimeout = 20

oscam.user

[account] – monitoring program

user=monitor
pwd=monitor
monlevel=4

[account] – your account

user=root
pwd=root
group=1
monlevel=4

enable update 52 tricolor cards for root user (see the first reader in oscam.server with label = tricolor)
au = tricolor

enable ntv card update for root user (see third reader in oscam.server with label = ntv)
# au = ntv

below we list all the CAID:IDENT packages that we will watch
ident = 4AE0:15;0500:023700,023100,042300,024F00
,032500,041700,042200,042400,042700,0408
10;4AE1:000011;0628:0

we allow periodic sending of packets from the client to the server so that the server knows that the client is connected and does not terminate the connection due to inactivity timeout.
keepalive=1

[account] – account for those who will watch from our map (home shara)

user = user1 – what you need to enter in the clients for the home share – login

pwd = user 1 – and pass

disabled = 0 – account is disabled

group=1
uniq=0
sleep=0
monlevel=4

allow viewing from our 52 tricolor map (see the first reader in oscam.server)
ident = 4AE0:0.15

services = tricolor_52 – see the first reader in oscam.server

allow viewing from our ntv card with a subscription to the basic extended package
# ident = 0500:023700

# class = 07 – see third reader in oscam.server

keepalive=1
numusers=0
penalty=0

oscam.dvbapi

[services1] – name
caid = … – CAID
provid = … – IDENT
srvid = … – SID

as an example for readers for viewing Tricolor, considered when describing the file oscam.server
[trikolor_52] – Caid, ident and SID channels opened by 52 tricolor card (Optimum package)
caid = 4AE0
provid = 15
srvid = 0385,0386,0387,0388,0389 ,038A,038D,038E,
0D49,0D4A,0D4B,0D4C,0D4D,0D4E,0D4F,61A8,

61B2,61BC,61C6,61D0,61DA,61E4,61EE,61F8 ,
6202,6978,697D ,6982,6987,698C,6991,6996, 7922, 792C,7936,7940,794A,795E, 7954,7968,7972,0D50,0D51,0D53,0D54

 


another example
[trikolor_13] – Caid, ident and SID of channels opened by the 13th tricolor card
caid = 4AE1
provid = 11
srvid = 014E,014F,0150,0151,038B,038C,69F0,6915,
6916,6917,6918,6919,691A 0130
_
_
_
_
_ 0140,0141,0142,0143,
0144,0145,0146,0147,0148,014A,014B,014C

PS
In this file, you can implement any tasks for filtering by channel SID, including all channels of the package as well.

So is the arbitrary choice of channels that will be processed (parameter services = ….) or ignored (parameter services =!….) by readers.

ATTENTION!

The # sign in the line before the parameter – excludes this parameter from processing by the binary!!!

 

 

Previous articleWhat is AV Receiver?
Next articleE-Channelizer Channel editor Download Latest files

What are you Looking for?