{"_id":"cloudflash-strongswan","_rev":"47-cebb36fd5283afa13ce1bc25d47bd290","name":"cloudflash-strongswan","description":"cloudflash snort module implements snort configuration on unix systems","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"cloudflash-strongswan","version":"1.0.0","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.0","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"e711e15bb5eb270859fa33d9c2ccf2d03941faa6","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.0.tgz","integrity":"sha512-KNPFFiBVWaHsH1TRE3uOR+/ixzcQOnBh81RqFtek7wR9Q6Iob39HyXOWzD/WZZY0E6kpfQGaPujJRJB5+UL5Zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn81PDabUKG0fx/sKYWsDixIpl8xwmdpA2DcnidUPIUAIgUzP0FvYvH01Tjv1xrCgSf8/xjuQIflNJKOrlo2Ab+Uw="}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.0.2":{"name":"cloudflash-strongswan","version":"1.0.2","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.2","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"c12c30a96779600f62ca230940fa7c19eef8dc3d","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.2.tgz","integrity":"sha512-unmIS5OD36iIhp2LJzwZq27i5SiH61rklkAt1EbFnQX72GgU+o1vNRVzpn6LE30TU0vJ7TYO8Cpn4+LFjzuN+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKudHBcfY+QF5gFc+KIdj5Me+oS2S+KIIB39mrUjg6cAiB4mZXx02+P81Ds9CkRhwL1GnVLPvJbgy+2H8GJQCYmjQ=="}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.0.3":{"name":"cloudflash-strongswan","version":"1.0.3","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.3","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"4aa632f6945db80d09beee607ab0b709384b926c","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.3.tgz","integrity":"sha512-uhyREEmm1cIe3Teoi9NPMS5XtuSJSGlNGNiN0LsYp5vcpah+pr5+7SuByb7GdSlEre6kbT508otPmF81VGX+ZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDgHgX68DEF+IeyYMQ7TsZoChu3I0FuKa/q0sHg/BfNxAiEAqd0lIpK4VOWjm2QyOV3fLEs8xrs3MyOvXtd0FxJ625E="}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.0.4":{"name":"cloudflash-strongswan","version":"1.0.4","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.4","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"b913c34aa6db2ca625a9e88703e4d677b42b9c27","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.4.tgz","integrity":"sha512-EJr7zqTb+E9H1uSL8tA45l+JCGSS+gbNo8gQGOyfBZWL0ud5wnoemtYrv+fj3BUwSEJrRzDlJvomfmMAGcMlyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCndH+cS8zv6LBR1h6zX0PkZnpbVEXvrMGDJ+xaIan9lgIgMW312DHe4Iej0y16ZTFKh2m8HcYDaZsZbGyLZghy9tU="}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.0.5":{"name":"cloudflash-strongswan","version":"1.0.5","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.5","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"1132160eb921a9ebc1cb0d9239ea03c15039c032","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.5.tgz","integrity":"sha512-43FEhQi6IFrVZarL8sgucIisx3+ugJ635m87KZKT5xp7mQ5H8yOXlwc9acMsYUJkdy8wGoeHzAxdhFg+H94rpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDSTpghttqP5/Dj6sviHAsyDXLf0MQJzPoeDjKfvd82wIhAK4idRNd1pa9sNkpK/SYduwpR7GSpGue+UaBro3LI7QE"}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.0.6":{"name":"cloudflash-strongswan","version":"1.0.6","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.6","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"cb75317e127f3cf0186629f4ac854ce4e252477d","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.6.tgz","integrity":"sha512-apSxanrSiH+9sknYLAbBDUktbzNqGRNd6AKFYz43s8Ylrc2LpN5JAOwK/jSGzr6YqVnF96VEekkM8YXODWnVew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCc8+8CDUWRQyJJa39SqfvlW57oc22s3mgcPdMzjUxCwQIhAIWtao3cWlaXlzHt6YCn814mwb171JNz90QkP5VsZwWM"}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.0.7":{"name":"cloudflash-strongswan","version":"1.0.7","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.7","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"11dc3665bcbd8a1e45a71a0b162ebaf7584f53a8","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.7.tgz","integrity":"sha512-cNXEZ67fnA32EVNPDCjLCkV+Ka7OXKnZSCWLzPm2sKUFYKc6cYqIwFMhI+tCsSv4Ed6hTKaE+vV8OiLsuw8pYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC12moHS+RiM6e4/Maqyn9YST7OTHWKGgy/AYagG8Gx5AiBsYrdI1jT6iWwOA1fQFH0dHW3kJfAbm6+LXRwA6ArIvg=="}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.0.8":{"name":"cloudflash-strongswan","version":"1.0.8","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.8","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"514aa314e31293a9876edf46396db2b982fd2d47","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.8.tgz","integrity":"sha512-9ERBhVo9HvrxLDZBXrdZTEyudaKNtg6BosagMo43ONf93KTmKFwUzQU5/FrEeC1Q4w3jYsTi373S1xaKI/+Cjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGw0XPi+lbcsWK5DVDuHr7qJMEw5cov3v2KBF+OyO6luAiEA5b6e2OxWZC0FeZHvogIcA34uKGXBYx7Ib+dNowYNEXo="}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.0.9":{"name":"cloudflash-strongswan","version":"1.0.9","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"rchunduru@clearpathnet.com"},"_id":"cloudflash-strongswan@1.0.9","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"5de4267ea952fa9b1795777a6746ff0d4b31ee98","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.0.9.tgz","integrity":"sha512-mZclvz9FBqU9jGinED6Eo/ExJKBwuF0qbd+p5yEN0kYjQLlqliV9ugq4jV5CtWh7tSotDb8qiY6sQyDy9W0w4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBshZEf/op8uHjj2gHmNVEH/f7aJ0nzXrD/eDC2rucNSAiEAlC2xvgnXi9hARHsKSOR8BNmmeAiP/P3atJ3hgcbGwqc="}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.1.0":{"name":"cloudflash-strongswan","version":"1.1.0","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":"0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","_npmUser":{"name":"clearpath","email":"geethar@calsoftlabs.com"},"_id":"cloudflash-strongswan@1.1.0","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"a23035683db9e0d99eb3fa4bb6fab45732c33171","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.1.0.tgz","integrity":"sha512-ci+98juEm1nZKgVLL35TnUgaYH2mG4IqVsdlOfNXG6bODYpDuNV+h1r/CxMoNowr2wIjDEqdPOoABg4UWOwiyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV70N6wYB1frBo/hq04hyE6mytSlwLbsQQMFHf0aW6uQIhAKxB1BSRx/sLtw/JFu49K7V7RqMOfrPm6ta+lZPfzDpQ"}]},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"directories":{}},"1.1.1":{"name":"cloudflash-strongswan","version":"1.1.1","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":">=0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","readme":"cloudflash-strongswan\n=====================\n\n*List of strongswan APIs*\n========================\n\n<table>\n  <tr>\n    <th>Verb</th><th>URI</th><th>Description</th>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan</td><td>Create strongswan configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id</td><td>List summary of strongswan configuration by ID</td>\n  </tr> \n  <tr>\n    <td>GET</td><td>/strongswan</td><td>List summary of strongswan configuration</td>\n  </tr>\n  <tr>\n    <td>PUT</td><td>/strongswan/:id</td><td>Modify strongswan configuration</td>\n  </tr>\n  <tr>\n    <td>DELETE</td><td>/strongswan/:id</td><td>Delete a strongswan configuration by ID</td>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan/:id/secrets</td><td>Create strongswan secrets configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id/secrets</td><td>List summary of strongswan secrets configuration</td>\n  </tr> \n  <tr>\n    <td>PUT</td><td>/strongswan/:id/secrets/:id</td><td>Modify strongswan secrets configuration</td>\n  </tr>   \n  <tr>\n    <td>DELETE</td><td>/strongswan/:id/secrets/:secretsid</td><td>Delete a strongswan secrets configuration by ID</td>\n  </tr>\n\n  <tr>\n    <td>POST</td><td>/strongswan/:sid/rules</td><td>Create strongswan rules configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:sid/rules</td><td>List summary of strongswan rules configuration</td>\n  </tr> \n  <tr>\n    <td>GET</td><td>/strongswan/:sid/rules/:id</td><td>List summary of strongswan rules configuration by ID</td>\n  </tr>\n  <tr>\n    <td>PUT</td><td>/strongswan/:sid/rules/:id</td><td>Modify strongswan rules configuration by ID</td>\n  </tr>  \n  <tr>\n    <td>DELETE</td><td>/strongswan/:sid/rules/:rule</td><td>Delete a strongswan rules configuration by ID</td>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan/:id/ipsec</td><td>Create strongswan ipsec configuration. In ipsec request JSON provide \"include\" property value as created rules ID. EG: \"conn-<rule-id>.conf\" </td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id/ipsec</td><td>List summary of strongswan ipsec configuration</td>\n  </tr>\n\n  <tr>\n    <td>GET</td><td>/strongswan/:id/ipsec/:ipsecid</td><td>List summary of strongswan ipsec configuration by ID</td>\n  </tr>\n  <tr>\n    <td>PUT</td><td>/strongswan/:id/ipsec/:ipsecid</td><td>Modify strongswan ipsec configuration by ID</td>\n  </tr>  \n  <tr>\n    <td>DELETE</td><td>/strongswan/:id/ipsec/:ipsecid</td><td>Delete a strongswan configuration by ID</td>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan/certs</td><td>To write ipsec certs.</td>\n  </tr>\n</table>\n\n\n\n\n\nCreate strongswan configuration\n-------------------------------\n\n\n    Verb      URI                 Description\n    POST\t/strongswan          Create strongswan configuration.\n\nOn success it returns JSON data with the UUID for the strongswan configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"charon\": {\n        \"threads\": 16,\n        \"cisco_unity\": \"yes\",\n        \"plugins\": {\n            \"sql\": {\n                \"loglevel\": \"-1\"\n            }\n        }\n    },\n    \"libstrongswan\": {}\n    }\n\n\n### Response JSON\n\n    {\n       \"charon\":\n       {\n           \"threads\": 16,\n           \"cisco_unity\": \"yes\",\n           \"plugins\":\n           {\n               \"sql\":\n               {\n                   \"loglevel\": \"-1\"\n               }\n           }\n       },\n       \"libstrongswan\":\n       {\n       },\n       \"id\": \"1ac32e0e-c5b4-482f-b568-8da47d6d94ad\"\n    }\n\n\n\nList strongswan configuration by ID\n-----------------------------------\n\n    Verb\tURI\t             Description\n    GET\t       /strongswan/:id\t     List summary of strongswan configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n\n    {\n       \"charon\":\n       {\n           \"threads\": 16,\n           \"cisco_unity\": \"yes\",\n           \"plugins\":\n           {\n               \"sql\":\n               {\n                   \"loglevel\": \"-1\"\n               }\n           }\n       },\n       \"libstrongswan\":\n       {\n       },\n       \"id\": \"1ac32e0e-c5b4-482f-b568-8da47d6d94ad\"\n    }\n\n\n\n\nList strongswan configuration\n----------------------------\n\n    Verb\tURI\t             Description\n    GET\t       /strongswan\t     List summary of strongswan configuration.\n\n**Example Request and Response**\n\n*Response*\n\n    {\n       \"strongswan\":\n       [\n           {\n               \"charon\":\n               {\n                   \"threads\": 16,\n                   \"cisco_unity\": \"yes\",\n                   \"plugins\":\n                   {\n                       \"sql\":\n                       {\n                           \"loglevel\": \"-1test\"\n                       }\n                   }\n               },\n               \"libstrongswan\":\n               {\n               },\n               \"id\": \"a7857e81-157e-47e7-a837-dbae9f3e6a10\"\n           }\n       ],\n       \"ipsec\":\n       [\n           {\n               \"version\": \"2.0\",\n               \"config setup\":\n               {\n                   \"uniqueids\": \"yes\",\n                   \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n               },\n               \"include\":\n               [\n                   \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n               ],\n               \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n           }\n       ],\n       \"secrets\":\n       [\n           {\n               \"keypath\": \"RSA /etc/identity/snap.key\",\n               \"clearpathnet\": \"XAUTH  \\\"password\\\"\",\n               \"id\": \"23c8bed0-29c7-42a1-aa04-85115e8e7686\"\n           }\n       ],\n       \"rules\":\n       [\n       ]\n    }\n\n\nModify strongswan configuration\n-------------------------------\n\n\n    Verb      URI                   Description\n    PUT  /strongswan/:id          Modify strongswan configuration.\n\nOn success it returns JSON data with the UUID for the strongswan configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"charon\": {\n        \"threads\": 16,\n        \"cisco_unity\": \"yes\",\n        \"plugins\": {\n            \"sql\": {\n                \"loglevel\": \"-1\"\n            }\n        }\n    },\n    \"libstrongswan\": {}\n    }\n\n\n### Response JSON\n\n    {\n       \"charon\":\n       {\n           \"threads\": 16,\n           \"cisco_unity\": \"yes\",\n           \"plugins\":\n           {\n               \"sql\":\n               {\n                   \"loglevel\": \"-1\"\n               }\n           }\n       },\n       \"libstrongswan\":\n       {\n       },\n       \"id\": \"1ac32e0e-c5b4-482f-b568-8da47d6d94ad\"\n    }\n\nDelete strongswan configuration\n--------------------------------\n\n    Verb    URI                            Description\n    DELETE   /strongswan/:id           Delete a strongswan configuration by ID.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8\n\n### Response Header\n\n   Status Code : 204\n\n\n\nCreate strongswan secrets configuration\n--------------------------------------\n\n\n    Verb        URI\t                        Description\n    POST\t/strongswan/:id/secrets          Create strongswan secrets configuration.\n\nOn success it returns JSON data with the UUID for the strongswan secrets configuration.\n\n**Example Request and Response**\n\n### Request JSON\n    {\n       \"keypath\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\"\n    }\n\n    \n### Response JSON\n\n    {\n       \"keypath\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\",\n       \"id\": \"23c8bed0-29c7-42a1-aa04-85115e8e7686\"\n    }\n\n\n    \n\nList strongswan secrets configuration\n-------------------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:id/secrets\t     List summary of strongswan secrets configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n    [\n       {\n           \"keypath\": \"RSA /etc/identity/snap.key\",\n           \"clearpathnet\": \"XAUTH \\\"password\\\"\",\n           \"id\": \"23c8bed0-29c7-42a1-aa04-85115e8e7686\"\n       }\n    ]\n\n  \nModify strongswan secrets configuration\n--------------------------------------\n\n\n    Verb        URI                               Description\n    PUT\t/strongswan/:id/secrets/:id          Modify strongswan secrets configuration.\n\nOn success it returns JSON data with the UUID for the strongswan secrets configuration.\n\n**Example Request and Response**\n\n### Request JSON\n    {\n       \"keypath\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\"\n    }\n\n    \n### Response JSON\n\n    {\n       \"keypath\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\",\n       \"id\": \"23c8bed0-29c7-42a1-aa04-85115e8e7686\"\n    }\n    \nDelete strongswan secrets configuration\n--------------------------------------\n\n    Verb    URI                                      Description\n    DELETE   /strongswan/:id/secrets/:secretsid      Delete a strongswan secrets configuration.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/secrets\n\n### Response Header\n\n   Status Code : 204\n\nCreate strongswan rules configuration\n--------------------------------------\n\n\n    Verb        URI\t                        Description\n    POST\t/strongswan/:sid/rules          Create strongswan rules configuration.\n\nOn success it returns JSON data with the UUID for the strongswan rules configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"left\": \"%defaultroute\",\n    \"leftsubnet\": \"0.0.0.0/0\",\n    \"leftfirewall\": \"yes\",\n    \"leftcert\": \"/etc/identity/snap.cert\",\n    \"right\": \"%any\",\n    \"rightsubnet\": \"169.254.253.0/24\",\n    \"rightsourceip\": \"169.254.253.2/24\",\n    \"auto\": \"add\",\n    \"xauth\": \"server\",\n    \"authby\": \"xauthrsasig\",\n    \"keyexchange\": \"ikev1\",\n    \"dpdaction\": \"clear\",\n    \"dpddelay\": 30,\n    \"dpdtimeout\": 300,\n    \"fragmentation\": \"yes\",\n    \"rightdns\": [\n        \"8.8.8.8\",\n        \"4.2.2.2\"\n    ]\n    }\n    \n### Response JSON\n    \n    {\n       \"left\": \"%defaultroute\",\n       \"leftsubnet\": \"0.0.0.0/0\",\n       \"leftfirewall\": \"yes\",\n       \"leftcert\": \"/etc/identity/snap.cert\",\n       \"right\": \"%any\",\n       \"rightsubnet\": \"169.254.253.0/24\",\n       \"rightsourceip\": \"169.254.253.2/24\",\n       \"auto\": \"add\",\n       \"xauth\": \"server\",\n       \"authby\": \"xauthrsasig\",\n       \"keyexchange\": \"ikev1\",\n       \"dpdaction\": \"clear\",\n       \"dpddelay\": 30,\n       \"dpdtimeout\": 300,\n       \"fragmentation\": \"yes\",\n       \"rightdns\":\n       [\n           \"8.8.8.8\",\n           \"4.2.2.2\"\n       ],\n       \"id\": \"fdadafef-5254-4f98-a036-946366595187\"\n    }\n\nList strongswan rules configuration\n-------------------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:sid/rules\t     List summary of strongswan rules configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n    [\n       {\n           \"left\": \"%defaultroute\",\n           \"leftsubnet\": \"0.0.0.0/0\",\n           \"leftfirewall\": \"yes\",\n           \"leftcert\": \"/etc/identity/snap.cert\",\n           \"right\": \"%any\",\n           \"rightsubnet\": \"169.254.253.0/24\",\n           \"rightsourceip\": \"169.254.253.2/24\",\n           \"auto\": \"add\",\n           \"xauth\": \"server\",\n           \"authby\": \"xauthrsasig\",\n           \"keyexchange\": \"ikev1\",\n           \"dpdaction\": \"clear\",\n           \"dpddelay\": 30,\n           \"dpdtimeout\": 300,\n           \"fragmentation\": \"yes\",\n           \"rightdns\":\n           [\n               \"8.8.8.8\",\n               \"4.2.2.2\"\n           ],\n           \"id\": \"fdadafef-5254-4f98-a036-946366595187\"\n       }\n    ]\n\n\nList strongswan rules configuratioin by ID\n-------------------------------------\n\n    Verb\tURI\t                             Description\n    GET\t       /strongswan/:sid/rules/:id\t     List summary of strongswan rules configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n\n    {\n       \"left\": \"%defaultroute\",\n       \"leftsubnet\": \"0.0.0.0/0\",\n       \"leftfirewall\": \"yes\",\n       \"leftcert\": \"/etc/identity/snap.cert\",\n       \"right\": \"%any\",\n       \"rightsubnet\": \"169.254.253.0/24\",\n       \"rightsourceip\": \"169.254.253.2/24\",\n       \"auto\": \"add\",\n       \"xauth\": \"server\",\n       \"authby\": \"xauthrsasig\",\n       \"keyexchange\": \"ikev1\",\n       \"dpdaction\": \"clear\",\n       \"dpddelay\": 30,\n       \"dpdtimeout\": 300,\n       \"fragmentation\": \"yes\",\n       \"rightdns\":\n       [\n           \"8.8.8.8\",\n           \"4.2.2.2\"\n       ],\n       \"id\": \"fdadafef-5254-4f98-a036-946366595187\"\n    }\n\nModify strongswan rules configuration\n--------------------------------------\n\n\n    Verb        URI                              Description\n    PUT\t   /strongswan/:sid/rules/:id          Modify strongswan rules configuration.\n\nOn success it returns JSON data with the UUID for the strongswan rules configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"left\": \"%defaultroute\",\n    \"leftsubnet\": \"0.0.0.0/0\",\n    \"leftfirewall\": \"yes\",\n    \"leftcert\": \"/etc/identity/snap.cert\",\n    \"right\": \"%any\",\n    \"rightsubnet\": \"169.254.253.0/24\",\n    \"rightsourceip\": \"169.254.253.2/24\",\n    \"auto\": \"add\",\n    \"xauth\": \"server\",\n    \"authby\": \"xauthrsasig\",\n    \"keyexchange\": \"ikev1\",\n    \"dpdaction\": \"clear\",\n    \"dpddelay\": 30,\n    \"dpdtimeout\": 300,\n    \"fragmentation\": \"yes\",\n    \"rightdns\": [\n        \"8.8.8.8\",\n        \"4.2.2.2\"\n    ]\n    }\n    \n### Response JSON\n    \n    {\n       \"left\": \"%defaultroute\",\n       \"leftsubnet\": \"0.0.0.0/0\",\n       \"leftfirewall\": \"yes\",\n       \"leftcert\": \"/etc/identity/snap.cert\",\n       \"right\": \"%any\",\n       \"rightsubnet\": \"169.254.253.0/24\",\n       \"rightsourceip\": \"169.254.253.2/24\",\n       \"auto\": \"add\",\n       \"xauth\": \"server\",\n       \"authby\": \"xauthrsasig\",\n       \"keyexchange\": \"ikev1\",\n       \"dpdaction\": \"clear\",\n       \"dpddelay\": 30,\n       \"dpdtimeout\": 300,\n       \"fragmentation\": \"yes\",\n       \"rightdns\":\n       [\n           \"8.8.8.8\",\n           \"4.2.2.2\"\n       ],\n       \"id\": \"fdadafef-5254-4f98-a036-946366595187\"\n    }\n\nDelete strongswan rules configuration\n--------------------------------------\n\n    Verb     URI                                    Description\n    DELETE   /strongswan/:sid/rules/:rule            Delete a strongswan rules configuration.\n\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/rules/28163f1e-00a6-44b0-9106-b48e5c94cd2e\n\n### Response Header\n\n   Status Code : 204\n\n\n\nCreate strongswan ipsec configuration\n--------------------------------------\n\n\n    Verb      URI\t               Description\n    POST\t/strongswan/:id/ipsec          Create strongswan ipsec configuration.\n\nOn success it returns JSON data with the UUID for the strongswan ipsec configuration.\n\nIn \"include\" value give the created rules configuration file name.\n\n**Example Request and Response**\n\n### Request JSON\n    \n\n    {\n      \"version\" : \"2.0\",\n      \"config setup\" : {\n    \n             \"uniqueids\": \"yes\",\n             \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n             },\n\n      \"include\": [\"/config/ipsec/conn-<rules-file-name>.conf\"] # like conn-UUID\n    }\n\n### Response JSON\n    {\n       \"version\": \"2.0\",\n       \"config setup\":\n       {\n           \"uniqueids\": \"yes\",\n           \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n       },\n       \"include\":\n       [\n           \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n       ],\n       \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n    }\n\n\n    \n\nList strongswan ipsec configuration by ID\n-----------------------------------------\n\n    Verb\tURI\t                             Description\n    GET\t       /strongswan/:id/ipsec/:ipsecid\t     List summary of strongswan ipsec configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n    \n    {\n       \"version\": \"2.0\",\n       \"config setup\":\n       {\n           \"uniqueids\": \"yes\",\n           \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n       },\n       \"include\":\n       [\n           \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n       ],\n       \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n    }\n\n\n\n\n    \n     \n\n\nList strongswan ipsec configuration\n----------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:id/ipsec\t     List summary of strongswan ipsec configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n    [\n       {\n           \"version\": \"2.0\",\n           \"config setup\":\n           {\n               \"uniqueids\": \"yes\",\n               \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n           },\n           \"include\":\n           [\n               \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n           ],\n           \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n       }\n    ]\n\n\n\nModify strongswan ipsec configuration\n--------------------------------------\n\n\n    Verb        URI                                  Description\n    PUT\t   /strongswan/:id/ipsec/:ipsecid          Modify strongswan ipsec configuration.\n\nOn success it returns JSON data with the UUID for the strongswan ipsec configuration.\n\nIn \"include\" value give the created rules configuration file name.\n\n**Example Request and Response**\n\n### Request JSON\n    \n\n    {\n      \"version\" : \"2.0\",\n      \"config setup\" : {\n    \n             \"uniqueids\": \"yes\",\n             \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n             },\n\n      \"include\": [\"/config/ipsec/conn-<rules-file-name>.conf\"] # like conn-UUID\n    }\n\n### Response JSON\n    {\n       \"version\": \"2.0\",\n       \"config setup\":\n       {\n           \"uniqueids\": \"yes\",\n           \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n       },\n       \"include\":\n       [\n           \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n       ],\n       \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n    }\n   \n\nDelete strongswan ipsec configuration\n--------------------------------------\n\n    Verb    URI                                      Description\n    DELETE   /strongswan/:id/ipsec/:ipsecid           Delete a strongswan ipsec configuration by ID.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/ipsec/2e92bf64-a17c-4f6a-9483-b52ec80a4533\n\n### Response Header\n\n   Status Code : 204\n\n\nModify strongswan rules configuration\n--------------------------------------\n\n\n    Verb        URI                              Description\n    POST       /strongswan/certs                 To write ipsec certs.\n\nOn success it returns JSON data with the UUID for the strongswan rules configuration.\n\nvalues to key privateKey, certificate, cacerts object should be base64 encoded value.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"privateKey\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\",\n    \"certificate\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\",\n    \"cacerts\": [\n        {\n            \"aa\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\"\n        },\n        {\n            \"Telekom Root Signer\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\"\n        },\n        {\n            \"Telekom Mobility Signer\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\"\n        },\n        {\n            \"Telekom CA\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\"\n        }\n    ]\n    }\n    \n### Response JSON\n    \n    {\n       \"result\": true\n    }\n\n\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/clearpath-networks/cloudflash-strongswan/issues"},"_id":"cloudflash-strongswan@1.1.1","dist":{"shasum":"4cc4fbe450121ac7967a2b6e55f561900f1e833b","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.1.1.tgz","integrity":"sha512-Xyn+ozPF8sNQYCV6FTUfuEOvxd1HiFGDb0E5E4600KjXpgjhGn2vI0Gq3xAjwYOlunlFhNaYdgwOx4oVHSC5KA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwKRpgFhbTdN6jMp8EliDTwPwF4um/4CDvGS6VB6gc2AiEAjhz8vA9WJFcBMTbOD1d+qATywhuYBA/N8nIHjctyRZI="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"clearpath","email":"geethar@calsoftlabs.com"},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}]},"1.1.2":{"name":"cloudflash-strongswan","version":"1.1.2","dependencies":{"fileops":"0.1.3","json-schema":"0.2.0","dirty":"0.9.x","node-uuid":"1.3.x"},"engines":{"node":">=0.6.x"},"devDependencies":{},"optionalDependencies":{},"author":{"name":"Geetha Rani"},"description":"cloudflash snort module implements snort configuration on unix systems","repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"},"main":"./lib/strongswan","readme":"cloudflash-strongswan\n=====================\n\n*List of strongswan APIs*\n========================\n\n<table>\n  <tr>\n    <th>Verb</th><th>URI</th><th>Description</th>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan</td><td>Create strongswan configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id</td><td>List summary of strongswan configuration by ID</td>\n  </tr> \n  <tr>\n    <td>GET</td><td>/strongswan</td><td>List summary of strongswan configuration</td>\n  </tr>\n  <tr>\n    <td>PUT</td><td>/strongswan/:id</td><td>Modify strongswan configuration</td>\n  </tr>\n  <tr>\n    <td>DELETE</td><td>/strongswan/:id</td><td>Delete a strongswan configuration by ID</td>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan/:id/secrets</td><td>Create strongswan secrets configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id/secrets</td><td>List summary of strongswan secrets configuration</td>\n  </tr> \n  <tr>\n    <td>PUT</td><td>/strongswan/:id/secrets/:id</td><td>Modify strongswan secrets configuration</td>\n  </tr>   \n  <tr>\n    <td>DELETE</td><td>/strongswan/:id/secrets/:secretsid</td><td>Delete a strongswan secrets configuration by ID</td>\n  </tr>\n\n  <tr>\n    <td>POST</td><td>/strongswan/:sid/rules</td><td>Create strongswan rules configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:sid/rules</td><td>List summary of strongswan rules configuration</td>\n  </tr> \n  <tr>\n    <td>GET</td><td>/strongswan/:sid/rules/:id</td><td>List summary of strongswan rules configuration by ID</td>\n  </tr>\n  <tr>\n    <td>PUT</td><td>/strongswan/:sid/rules/:id</td><td>Modify strongswan rules configuration by ID</td>\n  </tr>  \n  <tr>\n    <td>DELETE</td><td>/strongswan/:sid/rules/:rule</td><td>Delete a strongswan rules configuration by ID</td>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan/:id/ipsec</td><td>Create strongswan ipsec configuration. In ipsec request JSON provide \"include\" property value as created rules ID. EG: \"conn-<rule-id>.conf\" </td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id/ipsec</td><td>List summary of strongswan ipsec configuration</td>\n  </tr>\n\n  <tr>\n    <td>GET</td><td>/strongswan/:id/ipsec/:ipsecid</td><td>List summary of strongswan ipsec configuration by ID</td>\n  </tr>\n  <tr>\n    <td>PUT</td><td>/strongswan/:id/ipsec/:ipsecid</td><td>Modify strongswan ipsec configuration by ID</td>\n  </tr>  \n  <tr>\n    <td>DELETE</td><td>/strongswan/:id/ipsec/:ipsecid</td><td>Delete a strongswan configuration by ID</td>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan/certs</td><td>To write ipsec certs.</td>\n  </tr>\n</table>\n\n\n\n\n\nCreate strongswan configuration\n-------------------------------\n\n\n    Verb      URI                 Description\n    POST\t/strongswan          Create strongswan configuration.\n\nOn success it returns JSON data with the UUID for the strongswan configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"charon\": {\n        \"threads\": 16,\n        \"cisco_unity\": \"yes\",\n        \"plugins\": {\n            \"sql\": {\n                \"loglevel\": \"-1\"\n            }\n        }\n    },\n    \"libstrongswan\": {}\n    }\n\n\n### Response JSON\n\n    {\n       \"charon\":\n       {\n           \"threads\": 16,\n           \"cisco_unity\": \"yes\",\n           \"plugins\":\n           {\n               \"sql\":\n               {\n                   \"loglevel\": \"-1\"\n               }\n           }\n       },\n       \"libstrongswan\":\n       {\n       },\n       \"id\": \"1ac32e0e-c5b4-482f-b568-8da47d6d94ad\"\n    }\n\n\n\nList strongswan configuration by ID\n-----------------------------------\n\n    Verb\tURI\t             Description\n    GET\t       /strongswan/:id\t     List summary of strongswan configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n\n    {\n       \"charon\":\n       {\n           \"threads\": 16,\n           \"cisco_unity\": \"yes\",\n           \"plugins\":\n           {\n               \"sql\":\n               {\n                   \"loglevel\": \"-1\"\n               }\n           }\n       },\n       \"libstrongswan\":\n       {\n       },\n       \"id\": \"1ac32e0e-c5b4-482f-b568-8da47d6d94ad\"\n    }\n\n\n\n\nList strongswan configuration\n----------------------------\n\n    Verb\tURI\t             Description\n    GET\t       /strongswan\t     List summary of strongswan configuration.\n\n**Example Request and Response**\n\n*Response*\n\n    {\n       \"strongswan\":\n       [\n           {\n               \"charon\":\n               {\n                   \"threads\": 16,\n                   \"cisco_unity\": \"yes\",\n                   \"plugins\":\n                   {\n                       \"sql\":\n                       {\n                           \"loglevel\": \"-1test\"\n                       }\n                   }\n               },\n               \"libstrongswan\":\n               {\n               },\n               \"id\": \"a7857e81-157e-47e7-a837-dbae9f3e6a10\"\n           }\n       ],\n       \"ipsec\":\n       [\n           {\n               \"version\": \"2.0\",\n               \"config setup\":\n               {\n                   \"uniqueids\": \"yes\",\n                   \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n               },\n               \"include\":\n               [\n                   \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n               ],\n               \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n           }\n       ],\n       \"secrets\":\n       [\n           {\n               \"keypath\": \"RSA /etc/identity/snap.key\",\n               \"clearpathnet\": \"XAUTH  \\\"password\\\"\",\n               \"id\": \"23c8bed0-29c7-42a1-aa04-85115e8e7686\"\n           }\n       ],\n       \"rules\":\n       [\n       ]\n    }\n\n\nModify strongswan configuration\n-------------------------------\n\n\n    Verb      URI                   Description\n    PUT  /strongswan/:id          Modify strongswan configuration.\n\nOn success it returns JSON data with the UUID for the strongswan configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"charon\": {\n        \"threads\": 16,\n        \"cisco_unity\": \"yes\",\n        \"plugins\": {\n            \"sql\": {\n                \"loglevel\": \"-1\"\n            }\n        }\n    },\n    \"libstrongswan\": {}\n    }\n\n\n### Response JSON\n\n    {\n       \"charon\":\n       {\n           \"threads\": 16,\n           \"cisco_unity\": \"yes\",\n           \"plugins\":\n           {\n               \"sql\":\n               {\n                   \"loglevel\": \"-1\"\n               }\n           }\n       },\n       \"libstrongswan\":\n       {\n       },\n       \"id\": \"1ac32e0e-c5b4-482f-b568-8da47d6d94ad\"\n    }\n\nDelete strongswan configuration\n--------------------------------\n\n    Verb    URI                            Description\n    DELETE   /strongswan/:id           Delete a strongswan configuration by ID.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8\n\n### Response Header\n\n   Status Code : 204\n\n\n\nCreate strongswan secrets configuration\n--------------------------------------\n\n\n    Verb        URI\t                        Description\n    POST\t/strongswan/:id/secrets          Create strongswan secrets configuration.\n\nOn success it returns JSON data with the UUID for the strongswan secrets configuration.\n\n**Example Request and Response**\n\n### Request JSON\n    {\n       \"keypath\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\"\n    }\n\n    \n### Response JSON\n\n    {\n       \"keypath\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\",\n       \"id\": \"23c8bed0-29c7-42a1-aa04-85115e8e7686\"\n    }\n\n\n    \n\nList strongswan secrets configuration\n-------------------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:id/secrets\t     List summary of strongswan secrets configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n    [\n       {\n           \"keypath\": \"RSA /etc/identity/snap.key\",\n           \"clearpathnet\": \"XAUTH \\\"password\\\"\",\n           \"id\": \"23c8bed0-29c7-42a1-aa04-85115e8e7686\"\n       }\n    ]\n\n  \nModify strongswan secrets configuration\n--------------------------------------\n\n\n    Verb        URI                               Description\n    PUT\t/strongswan/:id/secrets/:id          Modify strongswan secrets configuration.\n\nOn success it returns JSON data with the UUID for the strongswan secrets configuration.\n\n**Example Request and Response**\n\n### Request JSON\n    {\n       \"keypath\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\"\n    }\n\n    \n### Response JSON\n\n    {\n       \"keypath\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\",\n       \"id\": \"23c8bed0-29c7-42a1-aa04-85115e8e7686\"\n    }\n    \nDelete strongswan secrets configuration\n--------------------------------------\n\n    Verb    URI                                      Description\n    DELETE   /strongswan/:id/secrets/:secretsid      Delete a strongswan secrets configuration.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/secrets\n\n### Response Header\n\n   Status Code : 204\n\nCreate strongswan rules configuration\n--------------------------------------\n\n\n    Verb        URI\t                        Description\n    POST\t/strongswan/:sid/rules          Create strongswan rules configuration.\n\nOn success it returns JSON data with the UUID for the strongswan rules configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"left\": \"%defaultroute\",\n    \"leftsubnet\": \"0.0.0.0/0\",\n    \"leftfirewall\": \"yes\",\n    \"leftcert\": \"/etc/identity/snap.cert\",\n    \"right\": \"%any\",\n    \"rightsubnet\": \"169.254.253.0/24\",\n    \"rightsourceip\": \"169.254.253.2/24\",\n    \"auto\": \"add\",\n    \"xauth\": \"server\",\n    \"authby\": \"xauthrsasig\",\n    \"keyexchange\": \"ikev1\",\n    \"dpdaction\": \"clear\",\n    \"dpddelay\": 30,\n    \"dpdtimeout\": 300,\n    \"fragmentation\": \"yes\",\n    \"rightdns\": [\n        \"8.8.8.8\",\n        \"4.2.2.2\"\n    ]\n    }\n    \n### Response JSON\n    \n    {\n       \"left\": \"%defaultroute\",\n       \"leftsubnet\": \"0.0.0.0/0\",\n       \"leftfirewall\": \"yes\",\n       \"leftcert\": \"/etc/identity/snap.cert\",\n       \"right\": \"%any\",\n       \"rightsubnet\": \"169.254.253.0/24\",\n       \"rightsourceip\": \"169.254.253.2/24\",\n       \"auto\": \"add\",\n       \"xauth\": \"server\",\n       \"authby\": \"xauthrsasig\",\n       \"keyexchange\": \"ikev1\",\n       \"dpdaction\": \"clear\",\n       \"dpddelay\": 30,\n       \"dpdtimeout\": 300,\n       \"fragmentation\": \"yes\",\n       \"rightdns\":\n       [\n           \"8.8.8.8\",\n           \"4.2.2.2\"\n       ],\n       \"id\": \"fdadafef-5254-4f98-a036-946366595187\"\n    }\n\nList strongswan rules configuration\n-------------------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:sid/rules\t     List summary of strongswan rules configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n    [\n       {\n           \"left\": \"%defaultroute\",\n           \"leftsubnet\": \"0.0.0.0/0\",\n           \"leftfirewall\": \"yes\",\n           \"leftcert\": \"/etc/identity/snap.cert\",\n           \"right\": \"%any\",\n           \"rightsubnet\": \"169.254.253.0/24\",\n           \"rightsourceip\": \"169.254.253.2/24\",\n           \"auto\": \"add\",\n           \"xauth\": \"server\",\n           \"authby\": \"xauthrsasig\",\n           \"keyexchange\": \"ikev1\",\n           \"dpdaction\": \"clear\",\n           \"dpddelay\": 30,\n           \"dpdtimeout\": 300,\n           \"fragmentation\": \"yes\",\n           \"rightdns\":\n           [\n               \"8.8.8.8\",\n               \"4.2.2.2\"\n           ],\n           \"id\": \"fdadafef-5254-4f98-a036-946366595187\"\n       }\n    ]\n\n\nList strongswan rules configuratioin by ID\n-------------------------------------\n\n    Verb\tURI\t                             Description\n    GET\t       /strongswan/:sid/rules/:id\t     List summary of strongswan rules configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n\n    {\n       \"left\": \"%defaultroute\",\n       \"leftsubnet\": \"0.0.0.0/0\",\n       \"leftfirewall\": \"yes\",\n       \"leftcert\": \"/etc/identity/snap.cert\",\n       \"right\": \"%any\",\n       \"rightsubnet\": \"169.254.253.0/24\",\n       \"rightsourceip\": \"169.254.253.2/24\",\n       \"auto\": \"add\",\n       \"xauth\": \"server\",\n       \"authby\": \"xauthrsasig\",\n       \"keyexchange\": \"ikev1\",\n       \"dpdaction\": \"clear\",\n       \"dpddelay\": 30,\n       \"dpdtimeout\": 300,\n       \"fragmentation\": \"yes\",\n       \"rightdns\":\n       [\n           \"8.8.8.8\",\n           \"4.2.2.2\"\n       ],\n       \"id\": \"fdadafef-5254-4f98-a036-946366595187\"\n    }\n\nModify strongswan rules configuration\n--------------------------------------\n\n\n    Verb        URI                              Description\n    PUT\t   /strongswan/:sid/rules/:id          Modify strongswan rules configuration.\n\nOn success it returns JSON data with the UUID for the strongswan rules configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"left\": \"%defaultroute\",\n    \"leftsubnet\": \"0.0.0.0/0\",\n    \"leftfirewall\": \"yes\",\n    \"leftcert\": \"/etc/identity/snap.cert\",\n    \"right\": \"%any\",\n    \"rightsubnet\": \"169.254.253.0/24\",\n    \"rightsourceip\": \"169.254.253.2/24\",\n    \"auto\": \"add\",\n    \"xauth\": \"server\",\n    \"authby\": \"xauthrsasig\",\n    \"keyexchange\": \"ikev1\",\n    \"dpdaction\": \"clear\",\n    \"dpddelay\": 30,\n    \"dpdtimeout\": 300,\n    \"fragmentation\": \"yes\",\n    \"rightdns\": [\n        \"8.8.8.8\",\n        \"4.2.2.2\"\n    ]\n    }\n    \n### Response JSON\n    \n    {\n       \"left\": \"%defaultroute\",\n       \"leftsubnet\": \"0.0.0.0/0\",\n       \"leftfirewall\": \"yes\",\n       \"leftcert\": \"/etc/identity/snap.cert\",\n       \"right\": \"%any\",\n       \"rightsubnet\": \"169.254.253.0/24\",\n       \"rightsourceip\": \"169.254.253.2/24\",\n       \"auto\": \"add\",\n       \"xauth\": \"server\",\n       \"authby\": \"xauthrsasig\",\n       \"keyexchange\": \"ikev1\",\n       \"dpdaction\": \"clear\",\n       \"dpddelay\": 30,\n       \"dpdtimeout\": 300,\n       \"fragmentation\": \"yes\",\n       \"rightdns\":\n       [\n           \"8.8.8.8\",\n           \"4.2.2.2\"\n       ],\n       \"id\": \"fdadafef-5254-4f98-a036-946366595187\"\n    }\n\nDelete strongswan rules configuration\n--------------------------------------\n\n    Verb     URI                                    Description\n    DELETE   /strongswan/:sid/rules/:rule            Delete a strongswan rules configuration.\n\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/rules/28163f1e-00a6-44b0-9106-b48e5c94cd2e\n\n### Response Header\n\n   Status Code : 204\n\n\n\nCreate strongswan ipsec configuration\n--------------------------------------\n\n\n    Verb      URI\t               Description\n    POST\t/strongswan/:id/ipsec          Create strongswan ipsec configuration.\n\nOn success it returns JSON data with the UUID for the strongswan ipsec configuration.\n\nIn \"include\" value give the created rules configuration file name.\n\n**Example Request and Response**\n\n### Request JSON\n    \n\n    {\n      \"version\" : \"2.0\",\n      \"config setup\" : {\n    \n             \"uniqueids\": \"yes\",\n             \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n             },\n\n      \"include\": [\"/config/ipsec/conn-<rules-file-name>.conf\"] # like conn-UUID\n    }\n\n### Response JSON\n    {\n       \"version\": \"2.0\",\n       \"config setup\":\n       {\n           \"uniqueids\": \"yes\",\n           \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n       },\n       \"include\":\n       [\n           \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n       ],\n       \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n    }\n\n\n    \n\nList strongswan ipsec configuration by ID\n-----------------------------------------\n\n    Verb\tURI\t                             Description\n    GET\t       /strongswan/:id/ipsec/:ipsecid\t     List summary of strongswan ipsec configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n    \n    {\n       \"version\": \"2.0\",\n       \"config setup\":\n       {\n           \"uniqueids\": \"yes\",\n           \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n       },\n       \"include\":\n       [\n           \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n       ],\n       \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n    }\n\n\n\n\n    \n     \n\n\nList strongswan ipsec configuration\n----------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:id/ipsec\t     List summary of strongswan ipsec configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n    [\n       {\n           \"version\": \"2.0\",\n           \"config setup\":\n           {\n               \"uniqueids\": \"yes\",\n               \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n           },\n           \"include\":\n           [\n               \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n           ],\n           \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n       }\n    ]\n\n\n\nModify strongswan ipsec configuration\n--------------------------------------\n\n\n    Verb        URI                                  Description\n    PUT\t   /strongswan/:id/ipsec/:ipsecid          Modify strongswan ipsec configuration.\n\nOn success it returns JSON data with the UUID for the strongswan ipsec configuration.\n\nIn \"include\" value give the created rules configuration file name.\n\n**Example Request and Response**\n\n### Request JSON\n    \n\n    {\n      \"version\" : \"2.0\",\n      \"config setup\" : {\n    \n             \"uniqueids\": \"yes\",\n             \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n             },\n\n      \"include\": [\"/config/ipsec/conn-<rules-file-name>.conf\"] # like conn-UUID\n    }\n\n### Response JSON\n    {\n       \"version\": \"2.0\",\n       \"config setup\":\n       {\n           \"uniqueids\": \"yes\",\n           \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n       },\n       \"include\":\n       [\n           \"/config/ipsec/fdadafef-5254-4f98-a036-946366595187.conf\"\n       ],\n       \"id\": \"bc6631fc-a59e-456f-aea1-941f05bf9892\"\n    }\n   \n\nDelete strongswan ipsec configuration\n--------------------------------------\n\n    Verb    URI                                      Description\n    DELETE   /strongswan/:id/ipsec/:ipsecid           Delete a strongswan ipsec configuration by ID.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/ipsec/2e92bf64-a17c-4f6a-9483-b52ec80a4533\n\n### Response Header\n\n   Status Code : 204\n\n\nModify strongswan rules configuration\n--------------------------------------\n\n\n    Verb        URI                              Description\n    POST       /strongswan/certs                 To write ipsec certs.\n\nOn success it returns JSON data with the UUID for the strongswan rules configuration.\n\nvalues to key privateKey, certificate, cacerts object should be base64 encoded value.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"privateKey\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\",\n    \"certificate\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\",\n    \"cacerts\": [\n        {\n            \"aa\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\"\n        },\n        {\n            \"Telekom Root Signer\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\"\n        },\n        {\n            \"Telekom Mobility Signer\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\"\n        },\n        {\n            \"Telekom CA\": \"c29tZSB0ZXN0IHRvIHdyaXRlIGludG8gZmlsZSBmb3IgdGVzdGluZw==\"\n        }\n    ]\n    }\n    \n### Response JSON\n    \n    {\n       \"result\": true\n    }\n\n\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/clearpath-networks/cloudflash-strongswan/issues"},"_id":"cloudflash-strongswan@1.1.2","dist":{"shasum":"ccb34be7ebef2cc1887d7d4f06cfb9f02309f011","tarball":"https://registry.npmjs.org/cloudflash-strongswan/-/cloudflash-strongswan-1.1.2.tgz","integrity":"sha512-msV2d0xVVMweXCpktFRwRpNBaK3nDgB3zubiaRvuSIC9KRdxEjXdqOQ/nZCUYiNAgHV2NI+1ERbOuzCPxJy7TQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ1daNssBrqKKwVGmINI+5EkYoySmkRzONAGwzXrlHswIhAKEcH9t9iIPg7VV93fdtpNRl/cgZMTN4o/iJLKq/7Bhh"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"clearpath","email":"geethar@calsoftlabs.com"},"maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}]}},"readme":"cloudflash-strongswan\n=====================\n\n*List of strongswan APIs*\n========================\n\n<table>\n  <tr>\n    <th>Verb</th><th>URI</th><th>Description</th>\n  </tr>\n  <tr>\n    <td>POST</td><td>/strongswan</td><td>Create strongswan configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id</td><td>List summary of strongswan configuration by ID</td>\n  </tr> \n  <tr>\n    <td>GET</td><td>/strongswan</td><td>List summary of strongswan configuration</td>\n  </tr>\n  <tr>\n    <td>DELETE</td><td>/strongswan/:id</td><td>Delete a strongswan configuration by ID</td>\n  </tr> \n\n  <tr>\n    <td>POST</td><td>/strongswan/:id/ipsec</td><td>Create strongswan ipsec configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id/ipsec</td><td>List summary of strongswan ipsec configuration</td>\n  </tr> \n  <tr>\n    <td>GET</td><td>/strongswan/:id/ipsec/:ipsecid</td><td>List summary of strongswan ipsec configuration by ID</td>\n  </tr>\n  <tr>\n    <td>DELETE</td><td>/strongswan/:id/ipsec/:ipsecid</td><td>Delete a strongswan configuration by ID</td>\n  </tr>\n\n  <tr>\n    <td>POST</td><td>/strongswan/:id/secrets</td><td>Create strongswan secrets configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:id/secrets</td><td>List summary of strongswan secrets configuration</td>\n  </tr> \n  <tr>\n    <td>DELETE</td><td>/strongswan/:id/secrets</td><td>Delete a strongswan secrets configuration by ID</td>\n  </tr>\n\n  <tr>\n    <td>POST</td><td>/strongswan/:sid/rule</td><td>Create strongswan rule configuration</td>\n  </tr>\n  <tr>\n    <td>GET</td><td>/strongswan/:sid/rule</td><td>List summary of strongswan rule configuration</td>\n  </tr> \n  <tr>\n    <td>GET</td><td>/strongswan/:sid/rule/:id</td><td>List summary of strongswan rule configuration by ID</td>\n  </tr>\n  <tr>\n    <td>DELETE</td><td>/strongswan/:sid/rule/:rule</td><td>Delete a strongswan rule configuration by ID</td>\n  </tr>\n</table>\n\n\nCreate strongswan configuration\n-------------------------------\n\n\n    Verb      URI                 Description\n    POST\t/strongswan          Create strongswan configuration.\n\nOn success it returns JSON data with the UUID for the strongswan configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"charon\": {\n        \"threads\": 16,\n        \"cisco_unity\": \"yes\",\n        \"plugins\": {\n            \"sql\": {\n                \"loglevel\": \"-1\"\n            }\n        }\n    },\n    \"libstrongswan\": {}\n    }\n\n\n### Response JSON\n\n    {\n       \"id\": \"67ec9204-23f7-4edd-bcd2-be8d497124f8\",\n       \"config\":\n       {\n           \"charon\":\n           {\n               \"threads\": 16,\n               \"cisco_unity\": \"yes\",\n               \"plugins\":\n               {\n                   \"sql\":\n                   {\n                       \"loglevel\": \"-1\"\n                   }\n               }\n           },\n           \"libstrongswan\":\n           {\n           }\n       }\n     }\n\n\nList strongswan configuration by ID\n-----------------------------------\n\n    Verb\tURI\t             Description\n    GET\t       /strongswan/:id\t     List summary of strongswan configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n\n    {\n       \"id\": \"67ec9204-23f7-4edd-bcd2-be8d497124f8\",\n       \"config\":\n       {\n           \"charon\":\n           {\n               \"threads\": 16,\n               \"cisco_unity\": \"yes\",\n               \"plugins\":\n               {\n                   \"sql\":\n                   {\n                       \"loglevel\": \"-1\"\n                   }\n               }\n           },\n           \"libstrongswan\":\n           {\n           }\n       }\n    }\n\n\nList strongswan configuration\n----------------------------\n\n    Verb\tURI\t             Description\n    GET\t       /strongswan\t     List summary of strongswan configuration.\n\n**Example Request and Response**\n\n*Response*\n\n    Need to implement.\n\n\nDelete strongswan configuration\n--------------------------------\n\n    Verb    URI                            Description\n    DELETE   /strongswan/:id           Delete a strongswan configuration by ID.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8\n\n### Response Header\n\n   Status Code : 204\n\n\n\nCreate strongswan ipsec configuration\n--------------------------------------\n\n\n    Verb      URI\t               Description\n    POST\t/strongswan/:id/ipsec          Create strongswan ipsec configuration.\n\nOn success it returns JSON data with the UUID for the strongswan ipsec configuration.\n\n**Example Request and Response**\n\n### Request JSON\n    \n\n    {\n      \"version\" : \"2.0\",\n      \"config setup\" : {\n    \n             \"uniqueids\": \"yes\",\n             \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n             },\n\n      \"include\": [\"/config/ipsec/cisco-ipsec.conf\"]\n    }\n\n### Response JSON\n    {\n       \"id\": \"2e92bf64-a17c-4f6a-9483-b52ec80a4533\",\n       \"config\":\n       {\n           \"version\": \"2.0\",\n           \"config setup\":\n           {\n               \"uniqueids\": \"yes\",\n               \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n           },\n           \"include\":\n           [\n               \"/config/ipsec/cisco-ipsec.conf\"\n           ]\n       }\n    }\n\n    \n\nList strongswan ipsec configuration by ID\n-----------------------------------------\n\n    Verb\tURI\t                             Description\n    GET\t       /strongswan/:id/ipsec/:ipsecid\t     List summary of strongswan ipsec configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n    \n    {\n       \"id\": \"2e92bf64-a17c-4f6a-9483-b52ec80a4533\",\n       \"config\":\n       {\n           \"version\": \"2.0\",\n           \"config setup\":\n           {\n               \"uniqueids\": \"yes\",\n               \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n           },\n           \"include\":\n           [\n               \"/config/ipsec/cisco-ipsec.conf\"\n           ]\n       }\n    }\n\n\n    \n     \n\n\nList strongswan ipsec configuration\n----------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:id/ipsec\t     List summary of strongswan ipsec configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n    [\n       {\n           \"id\": \"2e92bf64-a17c-4f6a-9483-b52ec80a4533\",\n           \"config\":\n           {\n               \"version\": \"2.0\",\n               \"config setup\":\n               {\n                   \"uniqueids\": \"yes\",\n                   \"charondebug\": \"ike 2, knl 3, cfg 1, net 2, enc 2\"\n               },\n               \"include\":\n               [\n                   \"/config/ipsec/cisco-ipsec.conf\"\n               ]\n           }\n       }\n    ]\n\n\n   \n\nDelete strongswan ipsec configuration\n--------------------------------------\n\n    Verb    URI                                      Description\n    DELETE   /strongswan/:id/ipsec/:ipsecid           Delete a strongswan ipsec configuration by ID.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/ipsec/2e92bf64-a17c-4f6a-9483-b52ec80a4533\n\n### Response Header\n\n   Status Code : 204\n\nCreate strongswan secrets configuration\n--------------------------------------\n\n\n    Verb        URI\t                        Description\n    POST\t/strongswan/:id/secrets          Create strongswan secrets configuration.\n\nOn success it returns JSON data with the UUID for the strongswan secrets configuration.\n\n**Example Request and Response**\n\n### Request JSON\n    {\n       \"key-path\": \"RSA /etc/identity/snap.key\",\n       \"clearpathnet\": \"XAUTH \\\"password\\\"\"\n    }\n\n    \n### Response JSON\n    {\n       \"id\": \"3c99eaf4-e1b8-44cd-9a6a-1c1452f3ef1e\",\n       \"config\":\n       {\n           \"key-path\": \"RSA /etc/identity/snap.key\",\n           \"clearpathnet\": \"XAUTH \"password\"\"\n       }\n    }\n\n\n    \n\nList strongswan secrets configuration\n-------------------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:id/secrets\t     List summary of strongswan secrets configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n    [\n       {\n           \"id\": \"3c99eaf4-e1b8-44cd-9a6a-1c1452f3ef1e\",\n           \"config\":\n           {\n               \"key-path\": \"RSA /etc/identity/snap.key\",\n               \"clearpathnet\": \"XAUTH \"password\"\"\n           }\n       }\n    ]\n\n \n    \n     \nDelete strongswan secrets configuration\n--------------------------------------\n\n    Verb    URI                                      Description\n    DELETE   /strongswan/:id/secrets           Delete a strongswan secrets configuration.\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/secrets\n\n### Response Header\n\n   Status Code : 204\n\n================\n\n\n\nCreate strongswan rule configuration\n--------------------------------------\n\n\n    Verb        URI\t                        Description\n    POST\t/strongswan/:sid/rule          Create strongswan rule configuration.\n\nOn success it returns JSON data with the UUID for the strongswan rule configuration.\n\n**Example Request and Response**\n\n### Request JSON\n\n    {\n    \"left\": \"/%defaultroute\",\n    \"leftsubnet\": \"0.0.0.0/0\",\n    \"leftfirewall\": \"yes\",\n    \"leftcert\": \"/etc/identity/snap.cert\",\n    \"right\": \"/%any\",\n    \"rightsubnet\": \"169.254.253.0/24\",\n    \"rightsourceip\": \"169.254.253.2/24\",\n    \"auto\": \"add\",\n    \"xauth\": \"server\",\n    \"authby\": \"xauthrsasig\",\n    \"keyexchange\": \"ikev1\",\n    \"dpdaction\": \"clear\",\n    \"dpddelay\": 30,\n    \"dpdtimeout\": 300,\n    \"fragmentation\": \"yes\",\n    \"rightdns\": [\n        \"8.8.8.8\",\n        \"4.2.2.2\"\n    ]\n    }\n    \n### Response JSON\n    \n    {\n       \"id\": \"28163f1e-00a6-44b0-9106-b48e5c94cd2e\",\n       \"config\":\n       {\n           \"left\": \"/%defaultroute\",\n           \"leftsubnet\": \"0.0.0.0/0\",\n           \"leftfirewall\": \"yes\",\n           \"leftcert\": \"/etc/identity/snap.cert\",\n           \"right\": \"/%any\",\n           \"rightsubnet\": \"169.254.253.0/24\",\n           \"rightsourceip\": \"169.254.253.2/24\",\n           \"auto\": \"add\",\n           \"xauth\": \"server\",\n           \"authby\": \"xauthrsasig\",\n           \"keyexchange\": \"ikev1\",\n           \"dpdaction\": \"clear\",\n           \"dpddelay\": 30,\n           \"dpdtimeout\": 300,\n           \"fragmentation\": \"yes\",\n           \"rightdns\":\n           [\n               \"8.8.8.8\",\n               \"4.2.2.2\"\n           ]\n       }\n    }\n\n\n\nList strongswan rule configuration\n-------------------------------------\n\n    Verb\tURI\t                     Description\n    GET\t       /strongswan/:sid/rule\t     List summary of strongswan rule configuration.\n\n**Example Request and Response**\n\n*Response*\n    \n     [\n       {\n           \"id\": \"28163f1e-00a6-44b0-9106-b48e5c94cd2e\",\n           \"config\":\n           {\n               \"left\": \"/%defaultroute\",\n               \"leftsubnet\": \"0.0.0.0/0\",\n               \"leftfirewall\": \"yes\",\n               \"leftcert\": \"/etc/identity/snap.cert\",\n               \"right\": \"/%any\",\n               \"rightsubnet\": \"169.254.253.0/24\",\n               \"rightsourceip\": \"169.254.253.2/24\",\n               \"auto\": \"add\",\n               \"xauth\": \"server\",\n               \"authby\": \"xauthrsasig\",\n               \"keyexchange\": \"ikev1\",\n               \"dpdaction\": \"clear\",\n               \"dpddelay\": 30,\n               \"dpdtimeout\": 300,\n               \"fragmentation\": \"yes\",\n               \"rightdns\":\n               [\n                   \"8.8.8.8\",\n                   \"4.2.2.2\"\n               ]\n           }\n       }\n     ]\n\nList strongswan rule configuratioin by ID\n-------------------------------------\n\n    Verb\tURI\t                             Description\n    GET\t       /strongswan/:sid/rule/:id\t     List summary of strongswan rule configuration by ID.\n\n**Example Request and Response**\n\n*Response*\n\n    {\n       \"id\": \"28163f1e-00a6-44b0-9106-b48e5c94cd2e\",\n       \"config\":\n       {\n           \"left\": \"/%defaultroute\",\n           \"leftsubnet\": \"0.0.0.0/0\",\n           \"leftfirewall\": \"yes\",\n           \"leftcert\": \"/etc/identity/snap.cert\",\n           \"right\": \"/%any\",\n           \"rightsubnet\": \"169.254.253.0/24\",\n           \"rightsourceip\": \"169.254.253.2/24\",\n           \"auto\": \"add\",\n           \"xauth\": \"server\",\n           \"authby\": \"xauthrsasig\",\n           \"keyexchange\": \"ikev1\",\n           \"dpdaction\": \"clear\",\n           \"dpddelay\": 30,\n           \"dpdtimeout\": 300,\n           \"fragmentation\": \"yes\",\n           \"rightdns\":\n           [\n               \"8.8.8.8\",\n               \"4.2.2.2\"\n           ]\n       }\n    }\n\n\n    \nDelete strongswan rule configuration\n--------------------------------------\n\n    Verb     URI                                    Description\n    DELETE   /strongswan/:sid/rule/:rule            Delete a strongswan rule configuration.\n\n**Example Request and Response**\n\n### Request Headers\n\n    DELETE /strongswan/67ec9204-23f7-4edd-bcd2-be8d497124f8/rule/28163f1e-00a6-44b0-9106-b48e5c94cd2e\n\n### Response Header\n\n   Status Code : 204\n\n\n\n","maintainers":[{"name":"clearpath","email":"rchunduru@clearpathnet.com"}],"time":{"modified":"2022-06-13T06:13:10.645Z","created":"2013-02-28T20:42:13.422Z","1.0.1":"2013-03-05T01:53:19.000Z","1.0.0":"2013-03-04T22:09:56.993Z","1.0.2":"2013-03-05T01:54:14.551Z","1.0.3":"2013-03-05T02:08:59.678Z","1.0.4":"2013-03-05T20:16:27.563Z","1.0.5":"2013-03-06T19:45:03.308Z","1.0.6":"2013-03-06T20:34:16.183Z","1.0.7":"2013-03-12T19:55:55.971Z","1.0.8":"2013-03-13T05:39:21.970Z","1.0.9":"2013-03-14T00:39:43.379Z","1.1.0":"2013-05-07T07:15:16.697Z","1.1.1":"2013-08-29T11:53:01.060Z","1.1.2":"2013-10-03T11:50:00.212Z"},"author":{"name":"Geetha Rani"},"repository":{"type":"git","url":"git://github.com/clearpath-networks/cloudflash-strongswan.git"}}