{"id":1187,"date":"2011-07-24T11:09:42","date_gmt":"2011-07-24T08:09:42","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=1187"},"modified":"2011-10-18T10:15:42","modified_gmt":"2011-10-18T07:15:42","slug":"resolving-ossec-active-response-iptables-issues","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/","title":{"rendered":"Resolving OSSEC active response iptables issues"},"content":{"rendered":"<p>The past few days some of my servers are having difficult times due to the increase of spam by some botnet(s). From around 600-700 emails per day for unknown addresses\/recipients on local domains, this number reached a peak of 8.000 emails 2 days ago. In order to reduce further botnet attempts I&#8217;m having <a href=\"http:\/\/www.ossec.net\/\">ossec<\/a> to engage, which in turn tries to firewall hosts.<\/p>\n<p>That worked quite ok for a while but then I&#8217;ve started seeing errors in the active-response.log like the ones below:<\/p>\n<blockquote><p>Unable to run (iptables returning != 3): 1 &#8211; \/var\/ossec\/active-response\/bin\/firewall-drop.sh delete &#8211; 91.121.21.8 1310919172.51029 31106<br \/>\nUnable to run (iptables returning != 1): 1 &#8211; \/var\/ossec\/active-response\/bin\/firewall-drop.sh delete &#8211; 79.149.198.149 1310919524.52191 3302<br \/>\nUnable to run (iptables returning != 1): 2 &#8211; \/var\/ossec\/active-response\/bin\/firewall-drop.sh delete &#8211; 79.149.198.149 1310919524.52191 3302<br \/>\nUnable to run (iptables returning != 1): 3 &#8211; \/var\/ossec\/active-response\/bin\/firewall-drop.sh delete &#8211; 79.149.198.149 1310919524.52191 3302<br \/>\nUnable to run (iptables returning != 1): 4 &#8211; \/var\/ossec\/active-response\/bin\/firewall-drop.sh delete &#8211; 79.149.198.149 1310919524.52191 3302<br \/>\nUnable to run (iptables returning != 1): 5 &#8211; \/var\/ossec\/active-response\/bin\/firewall-drop.sh delete &#8211; 79.149.198.149 1310919524.52191 3302<br \/>\nUnable to run (iptables returning != 4): 1 &#8211; \/var\/ossec\/active-response\/bin\/firewall-drop.sh add &#8211; 115.242.188.157 1310969220.1045522 3302\n<\/p><\/blockquote>\n<p>Obviously iptables is busy doing something else at the time, adding or deleting some other rule, so the loop inside firewall-drop.sh sometimes fails.  That was a bit worrying, I had to fix ossec so one way or another so that iptables rules would eventually be applied. I&#8217;ve faced the same issue with iptables in the past, trying to simultaneously add multiple (>5) iptables rules at exactly the same time is very error prone, there&#8217;s no way to tell which of those rules will be applied. In order to circumvent the issue, I added locking to the active response script.<\/p>\n<p>Whenever it comes to locking with shell scripts I am using a set of four functions inside a file that I source when I need to. I place this file usually inside \/usr\/local\/bin\/ under the lock.sh filename.<\/p>\n<p><pre><code2 class=\"preserve-code-formatting\">lockme () {\n&nbsp;&nbsp;&nbsp;&nbsp;if [ -z &quot;$1&quot; ];then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot; o Use an argument to lock&quot;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1\n&nbsp;&nbsp;&nbsp;&nbsp;fi\n&nbsp;&nbsp;&nbsp;&nbsp;if [ -z &quot;$2&quot; ];then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PID=$$\n&nbsp;&nbsp;&nbsp;&nbsp;else\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PID=$2\n&nbsp;&nbsp;&nbsp;&nbsp;fi\n&nbsp;&nbsp;&nbsp;&nbsp;LOCK_PID_FILE=\/var\/lock\/$1\n&nbsp;&nbsp;&nbsp;&nbsp;if [ -f $LOCK_PID_FILE ];then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sleep 1\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot; o Lock file found&quot;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if [ ! -d \/proc\/`cat $LOCK_PID_FILE 2&gt;\/dev\/null` ];then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot; o Stale lock file ignoring...&quot;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rm -f $LOCK_PID_FILE\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fi&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;fi&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;#temp file\n&nbsp;&nbsp;&nbsp;&nbsp;echo -n $PID &gt; $LOCK_PID_FILE.$PID\n&nbsp;&nbsp;&nbsp;&nbsp;ln -s $LOCK_PID_FILE.$PID $LOCK_PID_FILE &amp;&amp; return 0\n&nbsp;&nbsp;&nbsp;&nbsp;rm -f $LOCK_PID_FILE.$PID\n&nbsp;&nbsp;&nbsp;&nbsp;return 1\n}\n\nlockme_wait () {\n&nbsp;&nbsp;&nbsp;&nbsp;if [ -z &quot;$1&quot; ];then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot; o Use an argument to lock&quot;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1\n&nbsp;&nbsp;&nbsp;&nbsp;fi&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;if [ -z &quot;$2&quot; ];then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PID=$$\n&nbsp;&nbsp;&nbsp;&nbsp;else\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PID=$2\n&nbsp;&nbsp;&nbsp;&nbsp;fi&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;while [ 1 ];do\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lockme $1 $PID &amp;&amp; break\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sleep 4\n&nbsp;&nbsp;&nbsp;&nbsp;done\n&nbsp;&nbsp;&nbsp;&nbsp;return 0\n}\n\nunlockme () {\n&nbsp;&nbsp;&nbsp;&nbsp;if [ -z &quot;$1&quot; ];then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot; o Use an argument to unlock&quot;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1\n&nbsp;&nbsp;&nbsp;&nbsp;fi\n&nbsp;&nbsp;&nbsp;&nbsp;#remove pid file\n&nbsp;&nbsp;&nbsp;&nbsp;rm -f \/var\/lock\/$1.`cat \/var\/lock\/$1 2&gt;\/dev\/null`\n&nbsp;&nbsp;&nbsp;&nbsp;rm -f \/var\/lock\/$1\n&nbsp;&nbsp;&nbsp;&nbsp;return 0\n}&nbsp;&nbsp; \n\nkill_locked () {\n&nbsp;&nbsp;&nbsp;&nbsp;if [ -z &quot;$1&quot; ];then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot; o Use an argument to kill_locked&quot;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1\n&nbsp;&nbsp;&nbsp;&nbsp;fi\n&nbsp;&nbsp;&nbsp;&nbsp;if [ -e \/var\/lock\/$1 ]; then\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kill `cat \/var\/lock\/$1 2&gt;\/dev\/null`\n&nbsp;&nbsp;&nbsp;&nbsp;fi\n&nbsp;&nbsp;&nbsp;&nbsp;rm -f \/var\/lock\/$1.`cat \/var\/lock\/$1 2&gt;\/dev\/null`\n&nbsp;&nbsp;&nbsp;&nbsp;rm -f \/var\/lock\/$1\n}\n<\/code2><\/pre><\/p>\n<p>You can also use <code>%s\/var\\\/lock\/tmp\/g<\/code> if you prefer having the locks on the \/tmp which is usually ramfs, partition.<\/p>\n<p>Afterwards I edited \/var\/ossec\/active-response\/bin\/firewall-drop.sh to just add 3 lines. (I only edited the relevant Linux section of the script, since I haven&#8217;t tested, or don&#8217;t even know if it&#8217;s needed on the BSD, SunOS sections, I left those unedited):<\/p>\n<li>Add <code>. \/usr\/bin\/lock.sh<\/code> right after the &#8220;# Checking for an IP&#8221; section (around line 45)<\/li>\n<li>Right after &#8220;# Executing and exiting&#8221; add <code>lockme_wait active-response<\/code> (around line 75)<\/li>\n<li>Right after the second while loop finishes, after &#8220;done&#8221; and before &#8220;exit 0&#8221; add <code>unlockme active-response<\/code> (around line 110)<\/li>\n<p>That&#8217;s it&#8230;just 3 lines added and the errors have completely stopped since then.<\/p>\n<p>P.S. Yes, I could have used <a href=\"http:\/\/packages.debian.org\/sid\/lockfile-progs\">lockfile-progs<\/a> to achieve the same result, but I (also) use lock.sh file in embedded systems when needed, and it&#8217;s far more portable and easy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The past few days some of my servers are having difficult times due to the increase of spam by some botnet(s). From around 600-700 emails per day for unknown addresses\/recipients on local domains, this number reached a peak of 8.000 emails 2 days ago. In order to reduce further botnet attempts I&#8217;m having ossec to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[5,3],"tags":[389,385,328,595,387,388,217,386,206,304,238],"class_list":["post-1187","post","type-post","status-publish","format-standard","hentry","category-internet","category-linux","tag-active-response","tag-attacks","tag-iptables","tag-linux","tag-lock","tag-locking","tag-ossec","tag-scripting","tag-security","tag-shell","tag-spam"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"The past few days some of my servers are having difficult times due to the increase of spam by some botnet(s). From around 600-700 emails per day for unknown addresses\/recipients on local domains, this number reached a peak of 8.000 emails 2 days ago. In order to reduce further botnet attempts I&#039;m having ossec to\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"kargig\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/#article\",\"name\":\"Resolving OSSEC active response iptables issues | Into.the.Void.\",\"headline\":\"Resolving OSSEC active response iptables issues\",\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"},\"datePublished\":\"2011-07-24T11:09:42+03:00\",\"dateModified\":\"2011-10-18T10:15:42+03:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/#webpage\"},\"articleSection\":\"Internet, Linux, active response, attacks, iptables, Linux, lock, locking, ossec, scripting, security, shell, spam\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/#listItem\",\"name\":\"Resolving OSSEC active response iptables issues\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/#listItem\",\"position\":3,\"name\":\"Resolving OSSEC active response iptables issues\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/kargig\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/\",\"name\":\"kargig\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/#webpage\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/\",\"name\":\"Resolving OSSEC active response iptables issues | Into.the.Void.\",\"description\":\"The past few days some of my servers are having difficult times due to the increase of spam by some botnet(s). From around 600-700 emails per day for unknown addresses\\\/recipients on local domains, this number reached a peak of 8.000 emails 2 days ago. In order to reduce further botnet attempts I'm having ossec to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2011\\\/07\\\/24\\\/resolving-ossec-active-response-iptables-issues\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"datePublished\":\"2011-07-24T11:09:42+03:00\",\"dateModified\":\"2011-10-18T10:15:42+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Resolving OSSEC active response iptables issues | Into.the.Void.","description":"The past few days some of my servers are having difficult times due to the increase of spam by some botnet(s). From around 600-700 emails per day for unknown addresses\/recipients on local domains, this number reached a peak of 8.000 emails 2 days ago. In order to reduce further botnet attempts I'm having ossec to","canonical_url":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/#article","name":"Resolving OSSEC active response iptables issues | Into.the.Void.","headline":"Resolving OSSEC active response iptables issues","author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"},"datePublished":"2011-07-24T11:09:42+03:00","dateModified":"2011-10-18T10:15:42+03:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/#webpage"},"isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/#webpage"},"articleSection":"Internet, Linux, active response, attacks, iptables, Linux, lock, locking, ossec, scripting, security, shell, spam"},{"@type":"BreadcrumbList","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.void.gr\/kargig\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","name":"Linux"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","position":2,"name":"Linux","item":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/#listItem","name":"Resolving OSSEC active response iptables issues"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/#listItem","position":3,"name":"Resolving OSSEC active response iptables issues","previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","name":"Linux"}}]},{"@type":"Organization","@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization","name":"Into.the.Void.","description":"Into The Void","url":"https:\/\/www.void.gr\/kargig\/blog\/","sameAs":["https:\/\/x.com\/kargig"]},{"@type":"Person","@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author","url":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/","name":"kargig"},{"@type":"WebPage","@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/#webpage","url":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/","name":"Resolving OSSEC active response iptables issues | Into.the.Void.","description":"The past few days some of my servers are having difficult times due to the increase of spam by some botnet(s). From around 600-700 emails per day for unknown addresses\/recipients on local domains, this number reached a peak of 8.000 emails 2 days ago. In order to reduce further botnet attempts I'm having ossec to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/#breadcrumblist"},"author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"creator":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"datePublished":"2011-07-24T11:09:42+03:00","dateModified":"2011-10-18T10:15:42+03:00"},{"@type":"WebSite","@id":"https:\/\/www.void.gr\/kargig\/blog\/#website","url":"https:\/\/www.void.gr\/kargig\/blog\/","name":"Into.the.Void.","description":"Into The Void","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"1187","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-01-04 11:56:20","updated":"2026-10-21 09:50:45","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tResolving OSSEC active response iptables issues\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.void.gr\/kargig\/blog\/"},{"label":"Linux","link":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/"},{"label":"Resolving OSSEC active response iptables issues","link":"https:\/\/www.void.gr\/kargig\/blog\/2011\/07\/24\/resolving-ossec-active-response-iptables-issues\/"}],"views":16555,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=1187"}],"version-history":[{"count":8,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":1238,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1187\/revisions\/1238"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}