How to : Configure Oscam + Mgcamd as softcam

    • Official Post

    This tutorial will explain how to use the Open Source Conditional Access Module (Oscam) as a server to read your Sly white card and Mgcamd as the softcam.


    OSCAM CONFIGURATION


    All Oscam configuration files are located in /var/tuxbox/config folder for Enigma1 or /etc/tuxbox/config for Enigma2 receivers.
    The three important files are:


    oscam.conf
    oscam.server
    oscam.user


    The oscam.conf is as follows:


    In this section we have used [newcamd] as the client protocol, the port we want to use for the server (34000) and the card type we want this port to service (0963 – NDS white card as used by Sly Digital UK).


    The [webif] is the section we define the web interface configuration. We set such options as username, password, port to access the webinterface. The httpallowed section is what clients we want to connect, the above example allows client with an IP address range of 192.168.1.1-192.168.1.255 to connect, therefore we do not allow external clients to connect. Modify this section to reflect the subnet on your local area network.


    The oscam.server file is as follows:



    In this section we specific the details of the card we wish to share.


    The [Device=/dev/sci0] related to the first card slot in the receiver., if you are using the bottom slot [Device=/dev/sci1]


    The [boxid] is entered here – please note latest releases of OSCam do not require the box key to be included in the oscam.server file – just remove or # out boxid = xxxxxxxx and it will detect it automatically.


    The [caid ]is the card we are to read (0963 – NDS white card as used by Sly Digital UK).


    The oscam.user file is as follows:


    PHP
    [account]
    user = xxxxx
    pwd = xxxxx
    group = 1
    uniq = 1
    monlevel = 0
    au = 1
    caid = 0963
    cccmaxhops = -1
    cccreshare = -10


    This is where all users accounts are created.


    [au] set this to 1 for only one user, who is the only user allowed to send EMM from the client. You can use the web interface to add more user accounts or modify the oscam.user file and add accounts as required.


    For following oscam.user file has 3 accounts setup.



    As you can see, we only allow one user account to au by setting the option to 1 for a single user account and 0 for the other user accounts.
    Once oscam configuration is complete, connect to the web interface via your favourite browser and check the debug information on the main page or use this shell command in telnet.


    Code
    tail -f /var/log/oscam.log


    If no errors were detected, then oscam is ready as a server and waiting for clients to connect.


    MGCAMD CONFIGURATION


    We will use Mgcamd as a client, Modify the newcamd.list file located in /var/keys. The following is an example of the newcamd.list file connect to an internal oscam server on IP address 192.168.1.7, port 34000, with username and password as xxx.


    PHP
    CWS_KEEPALIVE = 300
    CWS_INCOMING_PORT = 21000
    CWS= 192.168.1.7 34000 xxx xxx 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan oscam2


    The mg_cfg file is located in/var/keys has the configuration for Mgcamd client.



    Only a single MGcamd client needs to be configured to update the EMM. Set the AU option (A:) to 1 just for one client.

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!