<?xml version="1.0"?>
<!--

For setup-issues, look in readme.txt!
If there are other troubles, try different forums or irc channels around )

The configfile are NOT case-sensitive, and shouldnt care about dos/unix cr/lf.
-->

<newCSconfig>
<globals>
<!-- valid value for listening-ip are:
IPv4 adress of local interface.
<listening-ip>192.168.0.3</listening-ip> -->
</globals>
<readers name="SCI">
<device>
<name>Lower Cardreader</name>
<type>sci</type>
<mhz>600</mhz>
<node>/dev/sci0</node>
<parity>odd</parity>
<reset>normal</reset>
<export>Yes</export>
<enabled>Yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<!-- <boxkey>0000000000</boxkey> -->
<!-- <rsa>0000000000</rsa> -->
<irdeto-camkey>0000000000000000</irdeto-camkey>
<irdeto-camkey-data>000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000</irdeto-camkey-data>
<crypto-special>No</crypto-special>
<ipk>000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000</ipk>
<ucpk>00000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 000000000000</ucpk>
<PTShandshake>No</PTShandshake>
<carddetect>yes</carddetect>
<newcamd_port>34000</newcamd_port>
<autosid>Yes</autosid>
<Seca-PPV>no</Seca-PPV>
<pincode>0000</pincode>
<priority>round</priority>
</device>
</readers>
<cache>
<!-- valid value for emm are:
0-255 - Number of EMM's to cache. -->
<emm>20</emm>

<!-- valid value for ecm are:
0-255 - Number of ECM's to cache.
-1 - Dynamic ECM Cache. -->
<ecm>-1</ecm>
</cache>
<httpd>
<server> <!-- Port to accept connections on -->
<port>8080</port>
<enabled>yes</enabled>
</server>
<user>
<!-- valid value for userfile are:
Any username you'd like - Used for browser to logon (its case sensitive). -->
<name>newcs</name>

<!-- valid value for password are:
Any password you'd like - Used for browser to logon (its case sensitive). -->
<password>newcs</password>

<!-- valid value for accesslevel are:
admin, stats - Define what rights the user has in the web-console -->
<accesslevel>admin</accesslevel>
</user>
</httpd>
<debug>
<!-- valid value for password:
Max 25 characters and minimum 8, this is case-sensitive. -->
<password>NewCSpwd</password>

<!-- valid value for mode:
simple, advanced - Set TCP-Console to advanced mode to get access to
potentially dangerous features.-->
<mode>simple</mode>

<!-- valid value for level are:
normal, verbose, spam - How extensive debug should be. -->
<level>normal</level>

<!-- valid value for type are:
Init, general, ecm, emm, net, all - Section of debug that should be displayed. -->
<type>general</type>

<!-- valid value for output are:
Console, udp, tcp, file, all - Where to show debug. -->
<output>console,tcp</output>

<!-- console_options are so you can set own loglevel/type for console-logger:
Should hold level and type-tags like above. -->
<console_options>normal,init</console_options>

<!-- valid value for logfile are:
Path and filename - Where to write debug logs if file or all is chosed in output. -->
<logfile>/hdd/newcs.txt</logfile>

<!-- file_options are so you can set own loglevel/type for file-logger:
Should hold level and type-tags like above. -->
<file_options>spam,all</file_options>

<!-- valid value for udp_host are:
IP-address or DNS-name - Where to send debug if udp or all is chosed in output. -->
<udp_host>192.168.1.10</udp_host>

<!-- valid value for udp_port are:
0,65535 - Which port to send the udp packets. -->
<udp_port>1000</udp_port>

<!-- udp_options are so you can set own loglevel/type for udp-logger:
Should hold level and type-tags like above. -->
<udp_options>normal,init</udp_options>

<!-- valid value for tcp_port are:
0,65535 - Which port to listen for incomming tcp connections. -->
<tcp_port>1001</tcp_port>

<!-- tcp_options are so you can set own loglevel/type for tcp-logger:
Should hold level and type-tags like above. -->
<tcp_options>normal,init</tcp_options>
</debug>
<newcamdserver>
<!-- valid value for enabled are:
Yes, No - Enable or Disable newcamd server. -->
<enabled>Yes</enabled>

<!-- valid value for name are:
Any name - Used to identify server to remote clients,
if the remote client isnt newcamd, this field have no purpouse. -->
<name>newcs</name>

<!-- valid value for deskey are:
any 14x2 numbers - Used to encrypt the communication between
the client and the server. -->
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>

<!-- Notes about users:
The first user doesnt have au without beeing it set to on (unlike newcamd cardserver).
You can add as many user-sections as you want, just put them under eachother. -->
<user>
<!-- valid value for userfile are:
Any username you'd like - Used for client to logon (its case sensitive). -->
<name>dummy</name>

<!-- valid value for password are:
Any password you'd like - Used for client to logon (its case sensitive). -->
<password>dummy</password>

<!-- valid value for hostname are:
IP-address or DNS-name - Used for reverse login to the client.
<hostname>127.0.0.1</hostname> -->
<!-- valid value for port are:
0-65535 - Which port reverse login to the client. -->
<port>21000</port>

<!-- valid value for au are:
On,Off - Wheather the client are allowed to send EMM to the server. -->
<au>on</au>

<!-- valid value for sidoverride are:
On,Off - Wheather the client are allowed to override the SID-filter. -->
<sidoverride>off</sidoverride>

<!-- valid value for readers are device name,
if one <allow> present, other readers will be disabled!
<readers>
<allow>Cardreader</allow>
</readers>
-->
<!-- valid value for spider are:
Yes,No - Wheather the client are allowed to be newcamd Cardspider. -->
<spider>No</spider>

<!-- valid value for rate are:
1-60 - number of seconds between each ecm -->
<rate>2</rate>

<!-- valid value for cardlevel are:
1 - If its set Mgcamd will use all cards over the same port. -->
<cardlevel>1</cardlevel>
</user>
<user>
<!-- valid value for userfile are:
Any username you'd like - Used for client to logon (its case sensitive). -->
<name>mpcs</name>

<!-- valid value for password are:
Any password you'd like - Used for client to logon (its case sensitive). -->
<password>dummy</password>

<!-- valid value for hostname are:
IP-address or DNS-name - Used for reverse login to the client.
<hostname>127.0.0.1</hostname> -->
<!-- valid value for port are:
0-65535 - Which port reverse login to the client. -->
<port>21000</port>

<!-- valid value for au are:
On,Off - Wheather the client are allowed to send EMM to the server. -->
<au>on</au>

<!-- valid value for sidoverride are:
On,Off - Wheather the client are allowed to override the SID-filter. -->
<sidoverride>off</sidoverride>

<!-- valid value for readers are device name,
if one <allow> present, other readers will be disabled!
<readers>
<allow>Cardreader</allow>
</readers>
-->
<!-- valid value for spider are:
Yes,No - Wheather the client are allowed to be newcamd Cardspider. -->
<spider>No</spider>

<!-- valid value for rate are:
1-60 - number of seconds between each ecm -->
<rate>2</rate>

<!-- valid value for cardlevel are:
1 - If its set Mgcamd will use all cards over the same port. -->
<cardlevel>1</cardlevel>
</user>
</newcamdserver>
<chameleon2>
<server>
<!-- valid value for tcp_port are:
0,65535 - Which port to listen for incomming tcp connections. -->
<port>1234</port>
<!-- enable or disable the server, valid values are yes/no -->
<enabled>No</enabled>
</server>
<peer> <!-- Connect to remote Chamelon server with the below credentials -->
<hostname>localhost</hostname>
<!-- valid value for tcp_port are:
0,65535 - Which port to listen for incomming tcp connections. -->
<port>1234</port>
<!-- valid value for userfile are:
Any username you'd like - Used for client to logon (its case sensitive). -->
<name>myname</name>
<!-- valid value for password are:
Any password you'd like - Used for client to logon (its case sensitive). -->
<password>mypassword</password>
<!-- Not yet implemented, this will be how chameleon will connect to more than one network -->
<realm>myShares</realm>
</peer>
<user>
<!-- valid value for userfile are:
Any username you'd like - Used for client to logon (its case sensitive). -->
<name>myname</name>
<!-- valid value for password are:
Any password you'd like - Used for client to logon (its case sensitive). -->
<password>mypassword</password>
<!-- Not yet implemented, this will be how chameleon will connect to more than one network -->
<realm>myShares</realm>
</user>
</chameleon2>
</newCSconfig>



CWS_KEEPALIVE = 300
CWS_INCOMING_PORT = 21000
CWS = 192.168.0.5 10000 user password 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan newcs
CWS = 192.168.0.5 10001 user password 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan newcs
#CWS = 127.0.0.1 34002 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan newcs