csp does not work after a few hours
I have the following problem: after 1 day of operation of csp, users can not connect to csp. This problem is solved by restarting the linux. The OSCAM ok.
config csp
<cardserv-proxy ver="0.9.0">
<ca-profiles>
<default-des-key>01 02 03 04 05 06 07 08 09 10 11 12 13 14</default-des-key>
<block-caid-mismatch>true</block-caid-mismatch>
<max-threads>45000</max-threads>
<default-deny-list></default-deny-list>
<session-timeout>5</session-timeout>
<session-keepalive excluded-clients="">3</session-keepalive>
<newcamd-maxmsgsize>480</newcamd-maxmsgsize>
<block-caid-mismatch>false</block-caid-mismatch>
<!--######################################################-->
<!--##**************INICIA PROFILE TELF*****************##-->
<!--######################################################-->
<profile name="NetBH" ca-id="1802" network-id="0002" provider-idents="00 00 00" enabled="true" debug="false">
<newcamd listen-port="35010"/>
<no-encryption>false</no-encryption>
<no-validation>false</no-validation>
<exclude-profiles></exclude-profiles>
<load-balance>true</load-balance>
<services-file format="cccam" ca-id="1802" provider="000000">etc/net.channelinfo</services-file>
<max-cw-wait>150</max-cw-wait>
</profile>
</ca-profiles>
<logging log-ecm="false" log-emm="false" log-zapping="false" hide-ip-addresses="false">
<log-file rotate-count="10" rotate-max-size="1024">log/cardserv.log</log-file>
<log-level>SEVERE</log-level>
<silent>true</silent>
<debug>false</debug>
</logging>
<rmi>
<display-name>CSP_PT TurboCache</display-name>
<allowed-ip-masks></allowed-ip-masks>
<registry-port>6042</registry-port>
<local-port>5032</local-port>
<status-web>
<listen-port>35050</listen-port>
<ssl enabled="false">
<keystore password="xxxxx3">etc/csp_keystore</keystore>
</ssl>
<war-file>lib/cs-status.war</war-file>
<welcome-file>cs-status.html</welcome-file>
<super-users>administrador</super-users>
</status-web>
</rmi>
<user-manager class="com.bowman.cardserv.XmlUserManager" allow-on-failure="false" log-failures="true">
<auth-config>-->
<user name="administrador" password="313233" max-connections="1" admin="true" enabled="true" />
<update-interval>1</update-interval>
<user-source name="gerenciadorcsp">
<user-file-url>http://192.168.0.30:8080/genxml/genxml.php</user-file-url>
</user-source>
<update-interval>2</update-interval>
</auth-config>
</user-manager>
<connection-manager>
<reconnect-interval>10</reconnect-interval>
<max-cw-wait>15</max-cw-wait>
<default-des-key>01 02 03 04 05 06 07 08 09 10 11 12 13 14</default-des-key>
<default-keepalive-interval>30</default-keepalive-interval>
<default-client-id>00 00</default-client-id>
<default-min-delay>10</default-min-delay>
<default-max-queue>1220</default-max-queue>
<service-map>
<mapper>
<enabled>true</enabled>
<unknown-sid>99aa</unknown-sid>
<block-services>0065 0066 0067 0068 0069 006a</block-services>
<cache-dir>cache</cache-dir>
<hide-disabled-connectors>true</hide-disabled-connectors>
<cache-save-age>300</cache-save-age>
<auto-map-services>true</auto-map-services>
<auto-reset-threshold>30</auto-reset-threshold>
<broadcast-missing-sid>false</broadcast-missing-sid>
<hide-unknown-services>false</hide-unknown-services>
<log-missing-sid>true</log-missing-sid>
<hide-disabled-connectors>true</hide-disabled-connectors>
<redundant-forwarding>false</redundant-forwarding>
<dummy-services>0 101 1101</dummy-services>
<reset-services></reset-services>
</mapper>
</service-map>
<cws-connectors>
<newcamd-connector name="Oscam" profile="NetBH" enabled="true" metric="0">
<host>192.168.0.30</host>
<port>9191</port>
<user>csp</user>
<password>csp</password>
<asynchronous>true</asynchronous>
<au-users></au-users>
<caid-profile-map>1802=netbh</caid-profile-map>
<can-decode-services></can-decode-services>
<cannot-decode-services></cannot-decode-services>
</newcamd-connector>
</cws-connectors>
</connection-manager>
<proxy-plugins>
<!--#################################################################-->
<!--##***********INICIA Cache Plugin CONFIGURACAO***************##-->
<!--#################################################################-->
<plugin class="com.bowman.cardserv.CacheCoveragePlugin" enabled="true" jar-file="cachecoverageplugin.jar">
<plugin-config>
<cache-context network-id="0002" ca-id="1802" interval="15"/>
</plugin-config>
</plugin>
<!--#################################################################-->
<!--##*************INICIA LoggingPugin CONFIGURACAO****************##-->
<!--#################################################################-->
<plugin class="com.bowman.cardserv.LoggingPlugin" enabled="false">
<plugin-config>
<log-dir>log/traffic</log-dir>
<log-level>ALL</log-level>
<ip-filter>*</ip-filter>
</plugin-config>
</plugin>
<!--#################################################################-->
<!--##***********INICIA DcwFilterPlugin CONFIGURACAO***************##-->
<!--#################################################################-->
<plugin class="com.bowman.cardserv.DcwFilterPlugin" enabled="true" jar-file="dcwfilterplugin.jar"/>
<plugin-config>
<bad-dcw>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01</bad-dcw>
<bad-dcw>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00</bad-dcw>
<bad-dcw>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16</bad-dcw>
<bad-dcw>00 00 00 00 00 00 3C 3C 00 00 00 00 00 00 3C 3C</bad-dcw>
<detect-links>true</detect-links>
<verify-replies>true</verify-replies>
</plugin-config>
<!--#################################################################-->
<!--##***************INICIA GeoipPlugin CONFIGURACAO***************##-->
<!--#################################################################-->
<plugin class="com.bowman.cardserv.GeoipPlugin" enabled="false" jar-file="geoipplugin.jar">
<plugin-config>
<geoipcity-path>etc/GeoLiteCity.dat</geoipcity-path> <!-- Path to maxmind.com city database -->
<!-- Free but inaccurate: http://www.maxmind.com/downloa…tabase/GeoLiteCity.dat.gz -->
<googlemaps-key>AIzaSyAXvxu3xJ5nrXzJhaFyG2SnT1_V--y7j0E</googlemaps-key>
<!-- Key must match your proxy status web access hostname, free signup @ http://code.google.com/apis/maps/signup.html -->
<start-lat>62.35</start-lat>
<start-long>18.066667</start-long>
<start-zoom>5</start-zoom>
<!-- Starting center point and zoom level for the map, default roughly = scandinavia -->
</plugin-config>
</plugin>
<!--#################################################################-->
<!--##************INICIA DreamboxPlugin CONFIGURACAO***************##-->
<!--#################################################################-->
<plugin class="com.bowman.cardserv.DreamboxPlugin" enabled="false" jar-file="dreamboxplugin.jar">
<plugin-config>
<check-interval>5</check-interval> <!-- the starting interval downloaded installers will be configured for -->
<agent-web>
<listen-port>888</listen-port>
<frontend-host>192.168.2.22</frontend-host> <!-- external hostname boxes will be accessing via -->
<frontend-port>88</frontend-port> <!-- external port (remove to use same as listen port) -->
<log-file rotate-count="5" rotate-max-size="2048">log/agent-web-access.log</log-file> <!-- remove to disable -->
<alternative-connect>false</alternative-connect>
<!-- if true: use XCNT instead of CONNECT, to avoid anti-abuse/open-proxy-scan blocks (if certain boxes never get output through) -->
</agent-web>
<agent-sshd enabled="true"> <!-- starting the sshd requires java6 or newer -->
<listen-port>2222</listen-port>
<tunnel-port-range start="2323" count="10"/> <!-- allow clients to open remote tunnel endpoints for these ports -->
</agent-sshd>
<file-upload enabled="true"> <!-- allow certain users to upload files, but only to preconfigured locations -->
<file name="links.cfg" target-path="etc/links.cfg" user="linkslave"/>
<file name="lamedb" target-path="etc/services.someuser.e2" user="someuser"/>
<file name="lamedb" target-path="etc/services.otheruser.e2" user="otheruser"/>
<file name="ecm.info" target-path="/tmp/" user="testuser"/>
<!-- if target-path is a dir the provided file name will be appended, e.g /tmp/ecm.info -->
</file-upload>
</plugin-config>
</plugin>
<!--#################################################################-->
<!--##***********INICIA MessagingPlugin CONFIGURACAO***************##-->
<!--#################################################################-->
<plugin class="com.bowman.cardserv.MessagingPlugin" enabled="false" jar-file="messagingplugin.jar">
<plugin-config>
<auto-mgcamd-osd min-interval="20" enabled="true"> <!-- min interval is flood protection, in seconds -->
<exclude-users></exclude-users> <!-- never send to these even if they do id as mgcamd -->
<exclude-profiles></exclude-profiles> <!-- never send to anyone in these profiles -->
<!-- if the user is an admin and flagged "warning"-transaction occurs for him, send notification -->
<msg-trigger match-warnings="true" admin-only="true" cws-owner-only="true">
<msg format="TR warning: {0}"/>
</msg-trigger>
<!-- format masks
{0} full preformatted text (similar to whats shown in the status web for cws events and tr warnings)
{1} name (user, connector or proxy name depending on the type of event matched)
{2} profile name
{3} service name and sid (if an ecm transaction was matched, otherwise blank)
{4} formatted time of the event/transaction
{5} just the event text (e.g "disconnected" for cws event or "service name - time - flags" for ecm tr)
-->
<!-- if a user zaps to sid 04f2 in profile profileX, send immediate msg with the channel name -->
<msg-trigger match-flags="F" match-sids="04f2" match-profiles="VIA">
<msg format="You zapped to: {3}"/>
</msg-trigger>
<!-- if a cws connect failure or invalid card event occurs, send notification to the cws owner user -->
<msg-trigger match-events="4 8" cws-owner-only="true">
<msg format="CWS Event: {0}"/>
</msg-trigger>
<!-- CWS Events
2 = Successfully connected
3 = Disconnected
4 = Connection attempt failed
5 = Warning (timeout)
6 = Lost service
8 = Invalid card data (on connect)
10 = Proxy node startup notification
-->
<!-- if a user zaps to a blocked or unavailable service, tell them so -->
<msg-trigger match-flags="Z N">
<msg format="Service '{3}' is not available"/>
</msg-trigger>
<!-- if these cws events occur, notify the user 'adminuser' -->
<msg-trigger match-events="4 6 8">
<msg format="CWS Event: {0}" target="adminuser"/>
</msg-trigger>
<!-- every time 'someuser' zaps in profile profileX, send him the msg -->
<msg-trigger match-flags="Z" match-profiles="CEU" match-usernames="calhordas">
<msg format="Por favor verifique seu email!"/>
</msg-trigger>
<!-- fetch additional message triggers from an external file -->
<external-msg-triggers enabled="true">
<trigger-file-url>http://192.168.0.5/triggers.xml</trigger-file-url>
<trigger-file-key>asdf22</trigger-file-key> <!-- optional, remove if there is no encryption -->
<update-interval>5</update-interval> <!-- minutes, 0 for only manual updates -->
</external-msg-triggers>
</auto-mgcamd-osd>
<email enabled="true"> <!-- this requires javamail: mail.jar placed in lib -->
<smtp-server>localhost</smtp-server>
<smtp-port>25</smtp-port>
<sender-address>proxy@host.com</sender-address> <!-- reply to -->
<mail-footer>--=--------[ user: {0} ] ------=------ [ CSP: {1} ] --------------------------=--</mail-footer>
<!-- format masks: {0} = target username, {1} = CSP version -->
<auto-email min-interval="600" enabled="true"> <!-- max one mail per 10 mins and user -->
<msg-trigger match-events="4 8" cws-owner-only="true">
<msg format="CWS Event: {0}"/> <!-- mail the cws owner user when the connector wont connect -->
</msg-trigger>
<msg-trigger match-events="4 8">
<msg format="CWS Event: {0}" target="admin@email.com"/> <!-- mail this address when any connector wont connect -->
</msg-trigger>
<msg-trigger match-events="4 6 8">
<msg format="CWS Event: {0}" target="someuser"/> <!-- mail this user when any connector wont connect or a servic -->
</msg-trigger>
</auto-email>
</email>
<!-- javamail download @ JavaMail API -->
</plugin-config>
</plugin>
</proxy-plugins>
<cache-handler class="com.bowman.cardserv.ClusteredCache">
<cache-config>
<cw-max-age>17</cw-max-age>
<max-cache-wait>2500 ms</max-cache-wait>
<tracker-url></tracker-url>
<local-port>54210</local-port>
<local-host></local-host>
<tracker-key></tracker-key>
<enable-service-linking>true</enable-service-linking>
<tracker-update>1</tracker-update>
<sync-period>0</sync-period>
<hide-names>true</hide-names>
<debug>false</debug>
</cache-config>
</cache-handler>
</cardserv-proxy>