corenova-storm
v1.1.17
Published
corenova-storm plugin module manages stormflash enabled corenova instance
Downloads
6
Readme
stormflash-corenova
List of uproxy APIs
Create a new corenova instance
Verb URI Description
POST /corenova Create a new corenova instance.
Response
{
"debug_level": 2,
"novacache": false,
"logdir": "/var/log/corenova",
"engine": {
"exec_queue_timeout": 1000,
"exec_timeout": "180s",
"feeder_queue_timeout": 1,
"load_delay": 250,
"max_load": 200,
"max_threads": 150,
"min_threads": 50,
"prefork": 1,
"use_atomic": true,
"use_cache": true
},
"transform": {
"name": "uproxy",
"source": {
"url": "http://registry.corenova.com/uproxy.xfc",
"encoding": "base64",
"data": "dGhpcyBpcyB0cmFuc2Zvcm0tc291cmNlLnhmYyBmaWxlIGNvbnRlbnQ="
},
"include": {
"HAVE_NFQUEUE": false,
"HAVE_CATDNS": false,
"HAVE_FFPROXY": true,
"HAVE_COMMTOUCH": true,
"HAVE_KASPERSKY": true,
"HAVE_SAFESEARCH": true,
"UPROXY_LISTEN_PORT": 12345,
"PROTOCOL_ANALYSIS_TIMEOUT": 10000,
"PROTOCOL_ANALYSIS_MODULES": "cpn.net.analysis.http,cpn.net.analysis.smtp,cpn.net.analysis.pop3,cpn.net.analysis.imap,cpn.net.analysis.ssl",
"HTTP_DATASCAN_MAXSIZE": "1M",
"SMTP_DATASCAN_MAXSIZE": "3M",
"POP3_DATASCAN_MAXSIZE": "3M",
"IMAP_DATASCAN_MAXSIZE": "6M",
"KASPERSKY_SCAN_TIMEOUT": 2000,
"KASPERSKY_MAX_SESSIONS": 4,
"COMMTOUCH_PORT": 5678,
"COMMTOUCH_IP": "127.0.0.1",
"COMMTOUCH_CATEGORY_MAP": {
"filename": "commtouch.map",
"encoding": "base64",
"data": "MQlBZHZlcnRpc2VtZW50cyAmIFBvcC1VcHMNCjIJQWxjb2hvbCAmIFRvYmFjY28NCjMJQW5vbnltaXplcnMNCjQJQXJ0cw0KNQlCdXNpbmVzcw0KNglUcmFuc3BvcnRhdGlvbg0KNwlDaGF0DQo5C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0KNjcJSWxsZWdhbCBTb2Z0d2FyZQ0KNjgJSW1hZ2UgU2hhcmluZw0KNjkJSW5mb3JtYXRpb24gU2VjdXJpdHkNCjcwCUluc3RhbnQgTWVzc2FnaW5nDQo3MQlOZXR3b3JrIEVycm9ycw0KNzIJUGFya2VkIERvbWFpbnMNCjczCVBlZXItdG8tUGVlcg0KNzQJUHJpdmF0ZSBJUCBBZGRyZXNzZXMNCjc1CVNjaG9vbCBDaGVhdGluZw0KNzYJU2V4IEVkdWNhdGlvbg0KNzcJVGFzdGVsZXNzDQo3OAlDaGlsZCBBYnVzZSBJbWFnZXM"
},
"SAFESEARCH_POLICY": {
"filename": "safesearch.policy",
"encoding": "text",
"data": "c2FmZXNlYXJjaC5wb2xpY3kgY29udGVudA=="
},
"HTTP_FILTER_TEMPLATE": {
"filename": "template.filter",
"encoding": "base64",
"data": "dGVtcGxhdGUuZmlsdGVyIGNvbnRlbnQ="
},
"HTTP_VIRUS_TEMPLATE": {
"filename": "template.virus",
"encoding": "base64",
"data": "dGVtcGxhdGUudmlydXMgY29udGVudA=="
},
"PROXY_FILTER_SSL": false,
"SSL_FILTER_SUBALTNAMES": false,
"SSL_FILTER_RESTRICT_ACC_BLOCKED": false,
"SSL_FILTER_RESTRICT_ACC_SELFCERT": false,
"SSL_FFPROXY_DIR": "/config/ssl/data/db",
"PROXY_INSPECT_SSL": false,
"SSL_INSPECT_CACHE": true,
"SSL_INSPECT_CACHE_MAX_ENTRIES": 1000,
"SSL_INSPECT_CACHE_PERSIST": true,
"SSL_INSPECT_CACHE_STORE": "/var/ssl-inspect.cache",
"SSL_INSPECT_WEBWARNING": false,
"SSL_INSPECT_SUBALTNAMES": false,
"SSL_INSPECT_CABUNDLE": {
"filename": "ca-cert.pem",
"encoding": "base64",
"data": "Y2EtY2VydC5wZW0gYmFzZTY0IGVuY29kZWQgZGF0YQ=="
},
"SSL_INSPECT_CACERT": {
"filename": "rootcert.pem",
"encoding": "base64",
"data": "cm9vdGNlcnQucGVtIGJhc2U2NCBlbmNvZGVkIGRhdGE="
},
"SSL_INSPECT_CAKEY": {
"filename": "rootkey.pem",
"encoding": "base64",
"data": "cm9vdGtleS5wZW0gYmFzZTY0IGVuY29kZWQgZGF0YQ=="
},
"PROXY_HTTP": true,
"HTTP_AV_SCAN": true,
"KASPERSKY_HTTP_UPLOAD": true,
"KASPERSKY_HTTP_DOWNLOAD": true,
"CONTENT_FILTERING": false,
"HTTP_CUSTOM_FILTER": false,
"HTTP_FFPROXY_DIR": "/config/ffproxy/data/db",
"COMMTOUCH_CATEGORY": false,
"COMMTOUCH_CATEGORY_POLICY": {
"filename": "commtouch-category.policy",
"encoding": "text",
"data": "0.0.0.0/32 !9 !42 !2"
},
"SAFESEARCH": false,
"SAFESEARCH_RESPONSE": false,
"MAIL_AV_SCAN": true,
"PROXY_SMTP": true,
"KASPERSKY_SMTP": true,
"PROXY_POP3": true,
"KASPERSKY_POP3": true,
"PROXY_IMAP": true,
"KASPERSKY_IMAP": true
}
}
}
Response
{
"id": "db92f47b-57ae-42e1-8d2e-14d871681cb1",
"status": "running"
}
List corenova instance
Verb URI Description
GET /corenova/:id Get details of a corenova instance.
Response
{
"debug_level": 2,
"novacache": false,
"logdir": "/var/log/corenova",
"engine":
{
"exec_queue_timeout": 1000,
"exec_timeout": "180s",
"feeder_queue_timeout": 1,
"load_delay": 250,
"max_load": 200,
"max_threads": 150,
"min_threads": 50,
"prefork": 1,
"use_atomic": true,
"use_cache": true
},
"transform":
{
"name": "uproxy",
"source":
{
"url": "http://registry.corenova.com/uproxy.xfc",
"encoding": "base64",
"data": "dGhpcyBpcyB0cmFuc2Zvcm0tc291cmNlLnhmYyBmaWxlIGNvbnRlbnQ="
},
"include":
{
"HAVE_NFQUEUE": false,
"HAVE_CATDNS": false,
"HAVE_FFPROXY": true,
"HAVE_COMMTOUCH": true,
"HAVE_KASPERSKY": true,
"HAVE_SAFESEARCH": true,
"UPROXY_LISTEN_PORT": 12345,
"PROTOCOL_ANALYSIS_TIMEOUT": 10000,
"PROTOCOL_ANALYSIS_MODULES": "cpn.net.analysis.http,cpn.net.analysis.smtp,cpn.net.analysis.pop3,cpn.net.analysis.imap,cpn.net.analysis.ssl",
"HTTP_DATASCAN_MAXSIZE": "1M",
"SMTP_DATASCAN_MAXSIZE": "3M",
"POP3_DATASCAN_MAXSIZE": "3M",
"IMAP_DATASCAN_MAXSIZE": "6M",
"KASPERSKY_SCAN_TIMEOUT": 2000,
"KASPERSKY_MAX_SESSIONS": 4,
"COMMTOUCH_PORT": 5678,
"COMMTOUCH_IP": "127.0.0.1",
"COMMTOUCH_CATEGORY_MAP":
{
"filename": "commtouch.map",
"encoding": "base64",
"data": "MQlBZHZlcnRpc2VtZW50cyAmIFBvcC1VcHMNCjIJQWxjb2hvbCAmIFRvYmFjY28NCjMJQW5vbnltaXplcnMNCjQJQXJ0cw0KNQlCdXNpbmVzcw0KNglUcmFuc3BvcnRhdGlvbg0KNwlDaGF0DQo5CUZvcnVtcyAmIE5ld3Nncm91cHMNCjEwCUNvbXByb21pc2VkDQoxMQlDb21wdXRlcnMgJiBUZWNobm9sb2d5DQoxMglDcmltaW5hbCBBY3Rpdml0eQ0KMTMJRGF0aW5nICYgUGVyc29uYWxzDQoxNAlEb3dubG9hZCBTaXRlcw0KMTUJRWR1Y2F0aW9uDQoxNglFbnRlcnRhaW5tZW50DQoxNwlGaW5hbmNlDQoxOAlHYW1ibGluZw0KMTkJR2FtZXMNCjIwCUdvdmVybm1lbnQNCjIxCUhhdGUgJiBJbnRvbGVyYW5jZQ0KMjIJSGVhbHRoICYgTWVkaWNpbmUNCjIzCUlsbGVnYWwgRHJ1Zw0KMjQJSm9iIFNlYXJjaA0KMjYJU3RyZWFtaW5nIE1lZGlhICYgRG93bmxvYWRzDQoyNwlOZXdzDQoyOAlOb24tcHJvZml0cyAmIE5HT3MNCjI5CU51ZGl0eQ0KMzAJUGVyc29uYWwgU2l0ZXMNCjMxCVBoaXNoaW5nICYgRnJhdWQNCjMyCVBvbGl0aWNzDQozMwlQb3Jub2dyYXBoeS9TZXh1YWxseSBFeHBsaWNpdA0KMzQJUmVhbCBFc3RhdGUNCjM1CVJlbGlnaW9uDQozNglSZXN0YXVyYW50cyAmIERpbmluZw0KMzcJU2VhcmNoIEVuZ2luZXMgJiBQb3J0YWxzDQozOAlTaG9wcGluZw0KMzkJU29jaWFsIE5ldHdvcmtpbmcNCjQwCVNwYW0gU2l0ZXMNCjQxCVNwb3J0cw0KNDIJTWFsd2FyZQ0KNDQJVHJhbnNsYXRvcnMNCjQ1CVRyYXZlbA0KNDYJVmlvbGVuY2UNCjQ3CVdlYXBvbnMNCjQ4CVdlYi1iYXNlZCBFbWFpbA0KNDkJR2VuZXJhbA0KNTAJTGVpc3VyZSAmIFJlY3JlYXRpb24NCjYxCUJvdG5ldHMNCjYyCUN1bHRzDQo2MwlGYXNoaW9uICYgQmVhdXR5DQo2NAlHcmVldGluZyBjYXJkcw0KNjUJSGFja2luZw0KNjcJSWxsZWdhbCBTb2Z0d2FyZQ0KNjgJSW1hZ2UgU2hhcmluZw0KNjkJSW5mb3JtYXRpb24gU2VjdXJpdHkNCjcwCUluc3RhbnQgTWVzc2FnaW5nDQo3MQlOZXR3b3JrIEVycm9ycw0KNzIJUGFya2VkIERvbWFpbnMNCjczCVBlZXItdG8tUGVlcg0KNzQJUHJpdmF0ZSBJUCBBZGRyZXNzZXMNCjc1CVNjaG9vbCBDaGVhdGluZw0KNzYJU2V4IEVkdWNhdGlvbg0KNzcJVGFzdGVsZXNzDQo3OAlDaGlsZCBBYnVzZSBJbWFnZXM"
},
"SAFESEARCH_POLICY":
{
"filename": "safesearch.policy",
"encoding": "text",
"data": "c2FmZXNlYXJjaC5wb2xpY3kgY29udGVudA=="
},
"HTTP_FILTER_TEMPLATE":
{
"filename": "template.filter",
"encoding": "base64",
"data": "dGVtcGxhdGUuZmlsdGVyIGNvbnRlbnQ="
},
"HTTP_VIRUS_TEMPLATE":
{
"filename": "template.virus",
"encoding": "base64",
"data": "dGVtcGxhdGUudmlydXMgY29udGVudA=="
},
"PROXY_FILTER_SSL": false,
"SSL_FILTER_SUBALTNAMES": false,
"SSL_FILTER_RESTRICT_ACC_BLOCKED": false,
"SSL_FILTER_RESTRICT_ACC_SELFCERT": false,
"SSL_FFPROXY_DIR": "/config/ssl/data/db",
"PROXY_INSPECT_SSL": false,
"SSL_INSPECT_CACHE": true,
"SSL_INSPECT_CACHE_MAX_ENTRIES": 1000,
"SSL_INSPECT_CACHE_PERSIST": true,
"SSL_INSPECT_CACHE_STORE": "/var/ssl-inspect.cache",
"SSL_INSPECT_WEBWARNING": false,
"SSL_INSPECT_SUBALTNAMES": false,
"SSL_INSPECT_CABUNDLE":
{
"filename": "ca-cert.pem",
"encoding": "base64",
"data": "Y2EtY2VydC5wZW0gYmFzZTY0IGVuY29kZWQgZGF0YQ=="
},
"SSL_INSPECT_CACERT":
{
"filename": "rootcert.pem",
"encoding": "base64",
"data": "cm9vdGNlcnQucGVtIGJhc2U2NCBlbmNvZGVkIGRhdGE="
},
"SSL_INSPECT_CAKEY":
{
"filename": "rootkey.pem",
"encoding": "base64",
"data": "cm9vdGtleS5wZW0gYmFzZTY0IGVuY29kZWQgZGF0YQ=="
},
"PROXY_HTTP": true,
"HTTP_AV_SCAN": true,
"KASPERSKY_HTTP_UPLOAD": true,
"KASPERSKY_HTTP_DOWNLOAD": true,
"CONTENT_FILTERING": false,
"HTTP_CUSTOM_FILTER": false,
"HTTP_FFPROXY_DIR": "/config/ffproxy/data/db",
"COMMTOUCH_CATEGORY": false,
"COMMTOUCH_CATEGORY_POLICY":
{
"filename": "commtouch-category.policy",
"encoding": "text",
"data": "0.0.0.0/32 !9 !42 !2"
},
"SAFESEARCH": false,
"SAFESEARCH_RESPONSE": false,
"MAIL_AV_SCAN": true,
"PROXY_SMTP": true,
"KASPERSKY_SMTP": true,
"PROXY_POP3": true,
"KASPERSKY_POP3": true,
"PROXY_IMAP": true,
"KASPERSKY_IMAP": true
}
},
"id": "db92f47b-57ae-42e1-8d2e-14d871681cb1"
}
Update corenova instance
Verb URI Description
PUT /corenova/:id/transform/include Update a corenova instance's running transform.include property.
Request
{
"KASPERSKY_IMAP": false,
"PROXY_POP3": false,
"PROXY_HTTP": true,
"COMMTOUCH_CATEGORY_POLICY": {
"filename": "commtouch-category.policy",
"encoding": "text",
"data": "0.0.0.0/32!9!42!2"
},
"SSL_FILTER_SUBALTNAMES": true
}
Response
{
"status": "ok",
"message": ""
}
Delete corenova instance
Verb URI Description
DELETE /corenova/:id Delete a specified corenova instance.
Response
Status Code: 204 No Content
Connection: keep-alive
Date: Fri, 25 Apr 2014 10:15:08 GMT
X-Powered-By: Zappa 0.4.22