./ MultiCS.r69 / multics.cfg
##
## copy this file to /var/etc/multics.cfg
## to run multics with debug type $# multics -v
## to run multics in background type $# multics -b
## to run multics with another config file type $# multics -C /var/etc/newconfig.cfg
##

// every line starting by a non-alphabetic charachter or '[' is skipped by parser.


##########################################################
## WEB INTERFACE
##########################################################

HTTP PORT: 5500

## web user/pass protection
#HTTP USER: admin
#HTTP PASS: admin

##########################################################
## CLUSTERED CACHE (Compatible with CSP cache)
##########################################################

CACHE PORT: 4444    # cache listen port(udp)

ACCEPT NULL ONID: 1  # accept/block cache requests with networkid=0 (by default = 1)

## this option do the same as "DEFAULT CACHE TIMEOUT", available only for compatibily with older versions
//CACHE TIMEOUT: 300  # timeout to wait dcw from cache servers if a cacherequest was received.

# friend cacheline (host port)
CACHE PEER: myfriend.dns.org 12345
CACHE PEER: localhost 5555

## Output to udp (default=disabled)
#TRACE: 1 localhost 4444 # Output to localhost:4444
#TRACE: 0 # disabled

##########################################################
## SERVERS CONNECTIONS (CCCAM+NEWCAMD+MGCAMD)
##########################################################

## CCcam Client version
CCCAM VERSION: 2.1.1 # Select cccam client version "2.0.11", "2.1.1", "2.1.2", "2.1.3" (default: 2.0.11)

## Change you clientid (in hex) by default it is Generic
#NEWCAMD CLIENTID: 4343 # Mgcamd(6D67).newcs(6E73).Evocamd(6576).CCcam(4343)...

C: localhost 12000 user1 pass1 # get all local cards with reshare or not.

//Connect to same server with different username
C: localhost 12000 user2 pass2
C: localhost 12000 user3 pass3

C: 192.168.1.100 12000 user pass 2 # get locals and hop2

C: mydyndns.no-ip.org 12000 user pass { 5501, 5505 } # Use this server only to decode digital+ and bis


N: localhost \ # Host
   4444 \ # Port
   user \ # Username
   pass \ # Password
   01 02 03 04 05 06 07 08 09 10 11 12 13 14 # DES key

N: localhost 10001 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14
N: 192.168.1.100 10003 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14
N: mydyndns.no-ip.org 10002 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 { 5502 } # Use this server only to decode Canalsat

##Radegast Server Connection
#R: <host> <port> <caid> <providerlist>
R: localhost 5421 0100 3311 3315



##########################################################
## NEWCAMD GLOBAL USERS
##########################################################

## Global Users, must be defined before the first profile
USER: guser1 gpass1  # for all profiles
USER: guser1 gpass1 { 5501, 5502 }  # selected profiles by port list


##########################################################
## PROFILES DEFAULT VALUES
##########################################################

## BAD DCW ( the next examples are filtered automatically by multics )
//BAD-DCW: FD FF FF FB FD FF FF FB FD FF FF FB FD FF FF FB
//BAD-DCW: 00 01 02 03 00 01 02 03 00 01 02 03 00 01 02 03

## default profile options
DEFAULT KEY: 01 02 03 04 05 06 07 08 09 10 11 12 13 14
DEFAULT DCW TIME: 0
DEFAULT DCW TIMEOUT: 5500
DEFAULT DCW MAXFAILED: 10
DEFAULT SERVER MAX: 0
DEFAULT SERVER FIRST: 0
DEFAULT SERVER INTERVAL: 1000
DEFAULT SERVER TIMEOUT: 3500
DEFAULT SERVER VALIDECMTIME: 2000
DEFAULT RETRY NEWCAMD: 0
DEFAULT RETRY CCCAM: 0
DEFAULT CACHE TIMEOUT: 300 

##########################################################
## PROFILES
##########################################################

[Digital+] # Profile name

# Newcamd Server key & port
KEY : 01 02 03 04 05 06 07 08 09 10 11 12 13 14 # optional, if not set default key is used.
PORT : 5501

# Profile Caid&Providers
CAID: 1810
PROVIDERS: 0, 4001, 4101

ONID: 31 # Operator Network ID (hex value)

## Time/Server Config (all times start from ecm receive time)
DCW MINTIME : 300     # minimum time to send dcw to client.( default=0, max=700ms )
DCW TIMEOUT : 3500    # delay after that if no cw returned from servers, multics would send decode failed to client
DCW MAXFAILED: 10     # Maximum of successive decode failed returned from a card on a channel to block sending ecm requests to this card
DCW CHECK: 1          # Check and filter wrong dcw (default=0)
## Next options depend on your cards number and speed for this profile
#SERVER MAX: 2        # (dont use) max server to use for decoding one ecm request. (default=0,unlimited) 
SERVER FIRST: 2       # the number of servers to send ecm upon receiving request (default=0, one server)
SERVER INTERVAL: 1000 # interval between sending ecm request to servers. first server will be requested at receiving ecm request from client, the second request will be done after "SERVER INTERVAL" has been elapsed and so ...
SERVER TIMEOUT: 2500  # max time for selecting servers to decode one ecm request it must be greater than "SERVER INTERVAL"
#SERVER VALIDECMTIME: 2000 # Disable sending ecmrequest to cards with ecmtime greater than 2000ms (default=0,all card are accepted)

## Retries
RETRY NEWCAMD: 1 # Number of retries for newcamd servers (default=0;max=3)
RETRY CCCAM: 5 # Number of retries for Cccam servers (default=3;max=10)

## Servers access
#DISABLE NEWCAMD: 1 # Enable/Disable sending ecm requests to Newcamd servers (default=0,enabled)
#DISABLE CCCAM: 1 # Enable/Disable sending ecm requests to CCcam servers (default=0,enabled)
#DISABLE RADEGAST: 1 # Enable/Disable sending ecm requests to Radegast servers (default=0,enabled)

#DISABLE CACHE: 1 # Enable/Disable receiving dcw from cache

## newcamd clients
USER: user1 pass1 # Newcamd client ( nline is like that "N: mydns.dns 5501 user1 pass1 01 02 03 04 05 06 07 08 09 10 11 12 13 14" )
USER: user2 pass2


[Canalsat] # Profile 2

## Deny ecm requests for channels Cine+ 1...11
SID DENYLIST: 1
SID LIST: 20D2,20D3,20D4,20D5,20D6,20D7,20D8,20D9,20DB,20DC

ONID: fbff
PORT: 5502
CAID: 093B
PROVIDERS: 0

DCW TIMEOUT : 1200
SERVER INTERVAL: 300  # if channel freezes and your cards have high ecmtime set it to 0 
SERVER TIMEOUT: 700 
SERVER VALIDECMTIME: 800 ## dont send ecm to cards having ecmtime more than 800ms


[Cyfra+]
PORT: +  # last profile port number +1 --> 5502+1 = 5503
ONID: 013E
CAID: 0100
PROVIDERS: 65, 68

[MEO]
PORT: +
ONID: 0053
CAID: 0100
PROVIDERS: 5211, 5221, 5225

[Canalsat/Canal+ Seca]
PORT: +
ONID: 0001
CAID: 0100
PROVIDERS: 3311, 3315

[Canalsat/Canal+ Via4]
PORT: +
ONID: 0001
CAID: 0500
PROVIDERS: 32830, 32840

[Orange Fr]
PORT: +
ONID: 0001
CAID: 0500
PROVIDERS: 32920

[Nova]
PORT: +
ONID: 013E
CAID: 0604
PROVIDERS: 0

[SkyUK]
PORT: +
ONID: 0002
CAID: 0963
PROVIDERS: 0
DCW TIMEOUT: 1500
SERVER INTERVAL: 400
SERVER TIMEOUT: 1000
CACHE TIMEOUT: 100

[SkyDE-09C4]
PORT: +
ONID: 0085
CAID: 09C4
PROVIDERS: 0
DCW TIMEOUT: 1500
SERVER INTERVAL: 400
SERVER TIMEOUT: 1000
CACHE TIMEOUT: 100

[SkyIT NDS4]
PORT: +
ONID: FBFF
CAID: 09CD
PROVIDERS: 0
DCW TIMEOUT: 1200
SERVER INTERVAL: 300
SERVER TIMEOUT: 700
CACHE TIMEOUT: 100

[TIVUSAT]
PORT: +
ONID: 013E
CAID: 183D
PROVIDERS: 5411


##########################################################
## CCCAM SERVER
##########################################################

## CCcam server listen port (default=0, server is disabled) 
CCCAM PORT: 18000
CCAM PROFILES: 5501, 5503, 5504 # default profiles available for cccam clients.

## Set nodeid for cccam server/client
//CCCAM NODEID: 1122334455667788

## CCcam clients
F: user1 pass1  # share all profiles with no reshare
F: user2 pass2 1 # share all profiles with 1 reshare
F: user2 pass2 2 # share all profiles with 2 reshare
F: user3 pass3 1 300 # share all profiles with 1 reshare and dcwmintime=300ms(default=0ms)

F: user4 pass4 { 5502, 5504, 5510 } # share only 3 profiles identified by their ports as locals with no reshare
F: user5 pass5 1 { 5502, 5504, 5510 } # share only 3 profiles identified by their ports with 1 reshare
F: user6 pass6 1 300 { 5502, 5504, 5510 } # share only 3 profiles identified by their ports with 1 reshare and dcwmintime = 300ms


F: user7 pass7 { profiles=5502,5504,5510; name=my friend name }

F: user8 pass8 { \
	name=my dreambox; \ # Full Name
	host=192.168.1.81 \ # user8 is only allowed to connect from the host 192.168.1.81
}

## This is only to a request from payservers
F: user9 pass9 { \
	name=Tom and Jerry; \
	enddate=2013-03-03; \ # user9 will be disabled at 4 March 2013 00:00
}

###########################################################
## FREECCCAM SERVER : all clients connect to cccam server with only one username & password 
###########################################################

FREECCCAM PORT: 19000 # FreeCCcam server listen port (default=0, server is disabled)
FREECCCAM USERNAME: freeuser
FREECCCAM PASSWORD: freepass
FREECCCAM MAXUSERS: 100 # Max clients to be connected to server, any other connection would be rejected or replaced by an inactive connection
FREECCCAM DCWMINTIME: 500 # minimum time to send dcw to client = 500ms (default=0). Use only to minimize total ecm requests and eliminate any freeze on your server. 


###########################################################
## MGCAMD SERVER
###########################################################

MGCAMD PORT : 21000 # MGCAMD server listen port(default=0:disabled)
MGCAMD KEY : 01 02 03 04 05 06 07 08 09 10 11 12 13 14
MGCAMD PROFILES: 5501, 5503, 5504 # default profiles available for mgcamd clients.

# Clients
MGUSER: user1 pass1 # send cards of all profiles
MGUSER: user2 pass2 300 # send cards of all profiles with min. ecmtime = 300ms
MGUSER: user3 pass3 { 5504, 5510 } # send cards of 2 selected profiles
MGUSER: user4 pass4 500 { 5502, 5504, 5510 } # send cards of 3 selected profile with min. ecmtime = 300ms