{"id":1341,"date":"2017-07-11T07:54:42","date_gmt":"2017-07-11T12:54:42","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1341"},"modified":"2017-07-11T07:54:42","modified_gmt":"2017-07-11T12:54:42","slug":"ossim-block-connection-attempts","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2017\/07\/ossim-block-connection-attempts\/","title":{"rendered":"OSSIM Block Connection Attempts"},"content":{"rendered":"<p>I installed alien vault&#8217;s OSSIM (the community\/free one) and added my subnets for scans. Unfortunately my APC PDUs and batteries really dislike having connection attempts every 2 hours.<\/p>\n<p>Options would include deleting the range and adding smaller ranges, blocking via a firewall, or disabling alerts on the APCs for connection attempts.<\/p>\n<p>So I opted for the easiest of blocking via the firewall:<\/p>\n<p><strong>SSH to my OSSIM box and &#8220;jailbreak&#8221; to get to a shell<\/strong><\/p>\n<p><strong>Create a Shell script<\/strong><br \/>\n<code>nano block_apc.sh<\/code><\/p>\n<blockquote><p>iptables -A OUTPUT -d 10.4.0.241 -j DROP<br \/>\niptables -A OUTPUT -d 10.4.0.242 -j DROP<br \/>\niptables -A OUTPUT -d 10.4.0.243 -j DROP<br \/>\niptables -A OUTPUT -d 10.4.0.244 -j DROP<br \/>\niptables-save<\/p><\/blockquote>\n<p><code>Ctrl X<\/code><br \/>\n<code>Y<\/code><\/p>\n<p><strong>Make the Shell script Executable<\/strong><br \/>\n<code>chmod +x block_apc.sh<\/code><\/p>\n<p><strong>Run the Shell script<\/strong><br \/>\n<code>.\/block_apc.sh<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed alien vault&#8217;s OSSIM (the community\/free one) and added my subnets for scans. Unfortunately my APC PDUs and batteries really dislike having connection attempts every 2 hours. Options would include deleting the range and adding smaller ranges, blocking via a firewall, or disabling alerts on the APCs for connection attempts. So I opted for &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2017\/07\/ossim-block-connection-attempts\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">OSSIM Block Connection Attempts<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1341","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1341"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1341\/revisions"}],"predecessor-version":[{"id":1342,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1341\/revisions\/1342"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}