PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Server hell - Client nicht



Schnipel91
19.10.09, 17:21
Moin erstmal, mein Problem ist wahrscheinlich ziemlich Banal, aber das ist das erste Mal, dass ich einen Cardserver aufsetze. Ich habe eine Nokia Dbox2 mit AHAB2 Multicam als Server auf der NewCS 1.62 und Camd3 3.899 laufen. Ich habe das Keywelt Image von Oktober 2008 und eine V13 Karte mit Sky-Abo. NewCS scheint gut zu funktionieren, jedenfalls ist mein Bild beim Server hell (kann jedoch sein, dass ich die Zusammenhänge nich ganz begriffen habe und es doch ein NewCS Problem ist, weshalb ich auch beide Configs poste). Wenn ich nun eine Clientbox (Smart mx04) per CS-WSP verbinde, kann er zwar auf den Server verbinden ,bekommt aber keine Antwort vom Server. Ich hab das Port-Forwarding gecheckt, der betroffene Port (1337) wird korrekt weitergeleitet. die Ausgaben der Programme, wenn ich sie über Telnet starte und die configs werde ich auch gleich mitliefern. Ich hoffe, mir kann jemand helfen. Vielen Dank im vorraus.

Hier also erstmal die NewCS.xml:



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

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

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

<newCSconfig>
<readers name="DBox2">
<device>
<!-- valid value for name are:
Any name of your choice, just to name the device for you to read. -->
<name>Multicam</name>

<!-- valid value for type are:
phoenix, dbox, sci, dragon, sc8, mp35, smartreader, pcsc (for own binary) or infinity(for own binary). -->
<type>dbox</type>

<!-- valid value for mhz are:
153(1.53mhz), 358(3.58mhz), 368(3,68Mhz), 450(4.5mhz), 536(5.36mhz), 600(6.00mhz), 715(7.15 mhz), 800(8.00mhz)
1000(10.00 mhz), 1071(10.71mhz), 1200 (12.00mhz), 1431(14.31 mhz), 1600 (16.00mhz)
This setting is now IMPORTANT, normal phoenix usually have 3.57mhz, and can usually be overclocked
to 6mhz. For the others you probably need extra crystal (be careful). -->
<mhz>357</mhz>

<!-- valid value for node are full path to device, f.ex /dev/tts/0,
/dev/sciX (for dreambox), /dev/cardreaderX (for dragon),
/dev/tts/USBX (for a usb2serial device).
COMx on Win32, COM1, COM2 etc.
For PC/SC this is just 0, 1 ,2 and so on (reader number) -->
<node>/dev/tts/1</node>

<!-- valid value for parity are:
Odd, Even, None (ignored on sci and dragon).
This is only used on serial _BEFORE_ ATR is recieved. -->
<parity>odd</parity>

<!-- valid value for reset are:
normal, inverse (ignored on sci and dragon).
normal is phoenix, inverse is smartmouse -->
<reset>normal</reset>

<!-- valid value for export are:
Yes,No - if not exported only localhost can connect. -->
<export>Yes</export>

<!-- valid value for enabled are:
Yes,No - if not enabled it cant be used. -->
<enabled>Yes</enabled>

<!-- valid value for blocksa are:
Yes, No - block shared address emm to card. -->
<blocksa>No</blocksa>

<!-- valid value for blockua are:
Yes, No - block unique address emm to card. -->
<blockua>No</blockua>

<!-- valid value for blockga are:
Yes, No - block group address emm to card. -->
<blockga>No</blockga>

<!-- valid value for boxkey are:
The boxkey/boxid of your nagra/nds STB. -->
<boxkey>00000000</boxkey>

<!-- valid value for irdeto-camkey are:
8byte hex. -->
<irdeto-camkey>0000000000000000</irdeto-camkey>

<!-- valid value for camkey-data are:
64byte hex -->
<irdeto-camkey-data>00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 000000</irdeto-camkey-data>

<!-- valid value for crypto-special are:
Yes, No - Used to enable/disable real-time mosc on Cryptoworks. -->
<crypto-special>No</crypto-special>

<!-- valid value for ipk are:
64byte hex -->
<ipk>00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 000000</ipk>

<!-- valid value for ucpk are:
64byte hex -->
<ucpk>00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 000000</ucpk>

<!-- valid value for PTShanshake are:
Yes, No - Used to enable/disable real-time HighBaud on Cryptoworks and Viacess. -->
<PTShandshake>No</PTShandshake>

<!-- valid value for carddetect are:
Yes, No - Used to try to detect if card is present in you cardreader. -->
<carddetect>yes</carddetect>

<!-- valid value for newcamd_port are:
0,65535 - Which port newcamd server will listen for incomming connections. -->
<newcamd_port>1338</newcamd_port>

<!-- valid value for autosid are:
Yes, No - Let NewCS decide which sids should be allowed/denied based on card answers. -->
<autosid>Yes</autosid>

<!-- valid value for Seca-PPV are:
Yes, No - Let NewCS decide which sids should be allowed/denied based on card answers. -->
<Seca-PPV>no</Seca-PPV>

<!-- valid value for Pincode are:
0000, 9999 - For f.ex PPV on Conax, also for parental lock on conax and cryptoworks. -->
<pincode>0000</pincode>

<!-- valid value for priority are:
hard, round, fifo - hard is lower userid, higher priority(gets ECM through before user with higher id),
round, there is an equal chance for all users to get ECM through, fifo, first sendt ECM gets through. -->
<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>
<debug>
<!-- 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>init</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 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>newcs</name>

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

<!-- valid value for hostname are:
IP-address or DNS-name - Used for reverse login to the client. -->
<hostname>localhost</hostname>

<!-- 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 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>
</user>
</newcamdserver>
</newCSconfig>


camd3.config:



# Wenn Parameter gebraucht wird - '#' entfernen und eure Werte reinsetzen!!!!!

# Boxtyp(optional): 1-dbox2, 2-dm7000, 3-dm7020, 4-dm500, 5-dm56xx/Triax; Default ist 2
BOXTYPE=1
#
# UDP Port(optional); Defailt - 20248
UDP_PORT=1337

# HTTP Port(optional); Defailt - 9080 ( 0: HTTP-server ausgeschaltet)
#HTTP_PORT=9080
#
# HTTP Login: Default - admin:camd3
#HTTP_ADMIN=admin
#HTTP_PASSWORD=camd3


# TCP Port(optional); Defailt - 0 (TCP-server ausgeschaltet)
#TCP_PORT=24115

# Log(optional): 0 - keine Ausgaben, 1-Datei, 2 - Console, 4 - UDP(syslog), 3 - Console+Datei, 5 - UDP+Datei, 6 - UDP+Console, 7-UDP+Console+Datei; Default ist 2;
LOG=6

# Host für UDP-logging
LOG_HOST=dbox2-cs.dyndns.tv

# Port für UDP-logging(optional); Default ist 514
#LOG_PORT=514

# DNS cache in sekunden; Default ist 600 sec
#DNS_CACHE=600

# Logfile
#LOG_FILE=/mnt/hdd/var/log/camd3.log

# Pfad zum User-File(optional); Default ist /var/keys/camd3.users
#USERS=/var/keys/camd3.users

# Pfad zum Server-File(optional); Default ist /var/keys/camd3.servers
#SERVERS=/var/keys/camd3.servers

# Pfad zum Key-File(optional); Default ist /var/keys/camd3.keys
#KEYS=/var/keys/camd3.keys

# Pfad zum Socket-File(optional); Default ist /tmp/camd.socket
SOCKET=/tmp/camd.sock01

# AU für original Slot dbox2 (optional): 1-ein, 0-aus; Default ist 1
DBOX2_AU=1

# Multichannel mode (optional und nur für DM7000 und DM7020): 0-aus, 1-ein; Default ist 0
MULTI=0


# Kartenslots (anzahl beliebig)
# je eine Zeile für Slot:
#SLOT=devicename:type:au_g:au_s:au_u:port:username :password:desk#ey
# deskey für normale Slots ist optional, aber port,username und password müssen immer angegeben werden!!!
#
# devicename: Pfad (volständig) zum Device, oder Hostname von cardserver(newcamd)
# type: 1-serial, 2-intern(dreamox), 4-cardserver(newcamd)
# au_g: 1-eingeschaltet, 0-ausgeschaltet
# au_s: 1-eingeschaltet, 0-ausgeschaltet
# au_u: 1-eingeschaltet, 0-ausgeschaltet
# port: port
# username: loginname
# password: loginpassword
# deskey: cardserver deskey (14 byte)
SLOT=127.0.0.1:4:1:1:1:1338:newcs:password:0102030 405060708091011121314

#SLOT=/dev/tts/0:1:1:1:1:997:mastercrd:password1
#SLOT=/dev/tts/1:1:1:1:1:997:multicam:password1
#KW-sockcheck


Telnet-Ausgabe camd3:



/var # camd3
/var # 30.10.2008 02:15:26 camd3: BOXTYPE: dbox2
30.10.2008 02:15:26 camd3: LOG: 6
30.10.2008 02:15:26 camd3: UDP_PORT: 1337
30.10.2008 02:15:26 camd3: original slot au on
30.10.2008 02:15:26 camd3: HTTP_PORT: 9080
30.10.2008 02:15:26 camd3: LOG_HOST: dbox2-cs.dyndns.tv:514
30.10.2008 02:15:26 camd3: DNS_CACHE: 60 sec
30.10.2008 02:15:26 camd3: DESCR_DELAY: 0 ms
30.10.2008 02:15:26 camd3: error parse line #1 in camd3.map
30.10.2008 02:15:26 camd3: error parse line #2 in camd3.map
30.10.2008 02:15:26 camd3: error parse line #3 in camd3.map
30.10.2008 02:15:26 camd3: error parse line #4 in camd3.map
30.10.2008 02:15:26 camd3: UserDB(add): USER=***** PASS=****** FROM=any SERVICES
30.10.2008 02:15:26 camd3: UserDB(add): USER=benutzer110 PASS=password10 FROM=any
722:000000:0008,
30.10.2008 02:15:26 camd3: UserDB(update): USER=benutzer110 PASS=password10 FROM=
8,1722:000000:0008,
30.10.2008 02:15:26 camd3: camd3.keys not found
30.10.2008 02:15:26 camd3: KeyDB: started
30.10.2008 02:15:26 camd3: original slot: CAID=1722
30.10.2008 02:15:26 camd3: HTTP: started on port 9080
30.10.2008 02:15:26 camd3: rom120.bin -> No such file or directory
30.10.2008 02:15:27 camd3: slot 127.0.0.1:1338 -> init...
30.10.2008 02:15:27 camd3: slot 127.0.0.1:1338 monitor start...
[ 03:15:27 ] [ Newcamd:1338 ] User newcs logged in, client: Generic
30.10.2008 02:15:27 camd3: slot 127.0.0.1:1338 -> card in
30.10.2008 02:15:27 camd3: slot 127.0.0.1:1338 -> CAID 09C4
30.10.2008 02:15:29 camd3: camd v3.899 - erfolgreich gestartet



Telnet-Ausgabe NewCS:



/var # newcs
This is NewCS 1.62 - the New CardServer by the Butter-team..
Compiled on Aug 27 2008 at 16:49:31
Reading Config file from /var/tuxbox/config/newcs.xml
TCP-log password is disabled!
level: normal
type: init
output: console,tcp
logger config: level 1 type 3 output 5
Console log options: level 1 type 3
TCP log options: level 1 type 3
[ 02:28:36 ] [ Box detect ] Box type 4 (Dbox2)
[ 02:28:36 ] [ Config ] Option <blockc0> for device 0 (Multicam) not present, d
[ 02:28:36 ] [ Config ] Value in <ipk> for device 0 (Multicam) is INVALID, skip
[ 02:28:36 ] [ Config ] Value in <ucpk> for device 0 (Multicam) is INVALID, ski
[ 02:28:36 ] [ Config ] Pincode for device 0 (Multicam): 0000
[ 02:28:36 ] [ Config ] /dev/tts/1 ECM priority: round
[ 02:28:36 ] [ EMM Cache ] Initialising dynamic Cache
[ 02:28:36 ] [ ECM Cache ] Initialising dynamic Cache
[ NewCS ] Process ID is: 1073
[ 02:28:36 ] [ Loader ] Starting Telnet on port 1001
[ 02:28:36 ] bind: error! 98: Address already in use
[ 02:28:36 ] [ Loader ] Reader type 4 on node /dev/tts/1
[ 02:28:36 ] [ Dbox ] Opening device /dev/tts/1
[ 02:28:37 ] [ ATR ] T=0 1etu=104.17us Guardtime:15etu WWT:9600etu
[ 02:28:37 ] [ ATR ] Historical bytes: A [B0] [07] i [FF] J P p [00] [00] P 1 [
[ 02:28:37 ] [ Loader ] Init NDS card
[ 02:28:39 ] [ Keyman ] Adding key 0000000009fc12 type 0 on Provider 000000 for
[ 02:28:39 ] [ Keyman ] Adding key 0000000009fc00 type 1 on Provider 000000 for
[ 02:28:40 ] [ Loader ] Card 09C4 on port /dev/tts/1 ready
[ 02:28:40 ] [ Loader ] Starting Newcamd Server on port 1338
[ 02:28:40 ] [ Newcamd ] Newcamd thread Server started on port 1338
[ 02:28:40 ] bind: error! 98: Address already in use
[ 02:28:40 ] [ NewCS ] Ready to GO! :)


MfG
Schnipel