Howto: Cache exchange via Oscam
(Guide written by Copyleft)
In this howto i will show you how to:
- Exchange your cache via Oscam.
- And for the CSP users how to forward all of your CSP cache to Oscam and exchange it via Oscam.
Copyright:
All presented information and code is released under the terms of the GPL-v3 licence
Prerequisits:
- Oscam installed and running.
- OSCam "v1.20-unstable_svn, build #6853" or higher! (this howto is tested with OSCam "v1.20-unstable_svn, build #6853")
- CSP v224, lower versions down to CSP v2.0.* could work also (this howto is tested with CSP v224)
Exchange your cache via oscam
Lets say you are ALICE and you have one Oscam instance running and all of your peers are connected to that instance, so all of the ECM/CW traffic is going through this instance.
- Now you want to send all of your cache to your friend BOB who is using Oscam also.
oscam.user
[account]
user = bob
pwd = bobcacheex
disabled = 0
group = 1
au =
monlevel = 0
keepalive = 1
uniq = 3
cacheex = 2
allowedprotocols = cccam
cccmaxhops = 10
cccreshare = 10
Display More
oscam.conf
[global]
nice = -15
waitforcards = 1
logfile = /path/to/your/oscaminstance.log
maxlogsize = 100000
cachedelay = 30
max_cache_time = 19
max_cache_count = 20000
cacheexwaittime = 25
clientmaxidle = 0
[cccam]
port = 12000
reshare = 7
version = 2.3.0
ignorereshare = 1
minimizecards = 1
keepconnected = 1
stealth = 1
reshare_mode = 0
updateinterval = 30
Display More
And BOB has to connect to ALICE via a reader defined in his "oscam.server".
oscam.server
[reader]
enable = 1
label = alice-cache
protocol = cccam
device = alice.server.url,12000
user = bob
password = bobcacheex
cccversion = 2.3.0
ccckeepalive = 1
cccreshare = 10
cacheex = 2
group = 1
blockemm-unknown = 1
audisabled = 1
blockemm-u = 1
blockemm-s = 1
blockemm-g = 1
dropbadcws = 1
Display More
Also BOB should use the same cacheex parametrs of ALICE in his "oscam.conf" under [global], cachedelay = 30, max_cache_time = 19, max_cache_count = 20000, cacheexwaittime = 25
- Now if BOB wants to send his cache to ALICE, then ALICE and BOB must do the same but vice versa.
Forwarding all of your CSP cache to Oscam for cache exchange via Oscam
Lets say ALICE is using CSP und all of the ECM/CW traffic is going through that CSP instance. Now ALICE wants to sent her CSP cache to BOB but BOB uses Oscam only! For that ALICE must now forward her CSP cache to her Oscam instance and then send it via Oscam to BOB.
- ALICE has to configure her CSP like follows:
proxy.xml
...
<cache-handler class="com.bowman.cardserv.ClusteredCache">
<cache-config>
<cw-max-age>19</cw-max-age>
<max-cache-wait>40%</max-cache-wait>
<local-port>54277</local-port>
<local-host>localhost</local-host>
<sync-period>5</sync-period>
<cw-validation checksum="true" zero-counting="true" log-warnings="true"/>
<tracker-update>1</tracker-update>
<tracker-url>file:///path/to/csp/cache-tracker-file</tracker-url>
</cache-config>
</cache-handler>
...
Display More
cache-tracker-file
- ALICE has also to configure her Oscam instance in "oscam.conf" like follows:
oscam.conf
[global]
nice = -15
waitforcards = 1
logfile = /path/to/your/oscaminstance.log
maxlogsize = 100000
cachedelay = 30
max_cache_time = 19
max_cache_count = 20000
cacheexwaittime = 25
clientmaxidle = 0
[csp]
port = 54276
wait_time = 5
[cccam]
port = 12000
reshare = 7
version = 2.3.0
ignorereshare = 1
minimizecards = 1
keepconnected = 1
stealth = 1
reshare_mode = 0
updateinterval = 30
Display More
Cheers and have fun!
All credit to Copyleft