Most basic setup you need 3 config files for oscam and those are oscam.conf, oscam.server and oscam.user.
Oscam.conf
[global]
nice = -1
WaitForCards = 1
# logging
logfile = /dev/console
pidfile = /tmp/oscam.pid
usrfile = /tmp/oscam-user.log
cwlogdir = /var/log/oscam/cw
# monitor
[monitor]
port = 988
aulow = 120
monlevel = 1
# protocols
[newcamd]
key = 000102030405060708090A0B0C0D
port = 10000@0111:000000;10001@0515:000000;10002@0999:000 000;10003@0688:000000
Display More
In oscam.server you define a connection to cccam server and what caids you want to get from it:
oscam.server
[reader]
reconnecttimeout = 5
label = remote
protocol = cccam
reshare = 1
device = server-ip,server-port
account = user,pass
group = 1
caid = 0111,0515,0999,0688
cccversion = 2.1.3
cccbuild = 3165
Display More
Again you replace the above with your details.
In oscam.user you define a user settings for newcamd client. Not really sure what betatunnel values should be, haven't bothered much to look into it either.
You can restrict a user to certain caids and idents buts since this is an example for local connection on the same box it is assumed you want to get everything and I left it empty.
oscam.user
[account]
user = user1
pwd = password1
monlevel = 0
uniq = 0
group = 1
hostname = 127.0.0.1
au = reader1
services = services1
betatunnel = 0300:0001:0100,0400.0005:0100
ident =
caid =
Display More
Then you edit newcamd.list file of mgcamd according to configuration in oscam.conf and oscam.user:
CWS_KEEPALIVE = 300
CWS_INCOMING_PORT = 12000
CWS = 127.0.0.1 10000 user1 password1 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D lan newcs
CWS = 127.0.0.1 10001 user1 password1 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D lan newcs
CWS = 127.0.0.1 10002 user1 password1 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D lan newcs
CWS = 127.0.0.1 10003 user1 password1 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D lan newcs
You have to make sure that newcamd client is enabled in mg_cfg either
G: { 01 } for mgcamd to use only newcamd client or
G: { 33 } to use both cccam and newcamd or you can use some other combination.
That should let you open 4 defined caids from cccam over oscam to mgcamd.