{"id":27,"date":"2015-01-10T12:01:04","date_gmt":"2015-01-10T11:01:04","guid":{"rendered":"http:\/\/xv6.de\/?page_id=27"},"modified":"2022-08-15T10:16:47","modified_gmt":"2022-08-15T09:16:47","slug":"disable-logging-of-martian-source","status":"publish","type":"page","link":"http:\/\/xv6.de\/?page_id=27","title":{"rendered":"Disable logging of martian source"},"content":{"rendered":"\n<p>Restart SuSEfirewall2.<\/p>\n\n\n\n<p>The custom rules script can be used to disable logging of martian source. As first step enable the execution of the custom rules script. Edit <em>\/etc\/sysconfig\/SuSEfirewall2<\/em> and add the path and file name of the custom rules script in <em>FW_CUSTOMRULES<\/em>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nFW_CUSTOMRULES=\"\/etc\/sysconfig\/scripts\/SuSEfirewall2-custom\"<\/code><\/pre>\n\n\n\n<p>The example above shows the empty script with the functions that SuSEfirewall2 expects.<br>Add the following code in function <em>fw_custom_after_finished()<\/em> right before <em>true<\/em>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># disable logging of martian source packages for all interfaces\nfor i in \/proc\/sys\/net\/ipv4\/conf\/*; do\nsetproc 0 $i\/log_martians\ndone<\/code><\/pre>\n\n\n\n<p>Restart SuSEfirewall2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Restart SuSEfirewall2. The custom rules script can be used to disable logging of martian source. As first step enable the execution of the custom rules script. Edit \/etc\/sysconfig\/SuSEfirewall2 and add the path and file name of the custom rules script in FW_CUSTOMRULES. The example above shows the empty script with the functions that SuSEfirewall2 expects.Add &hellip; <a href=\"http:\/\/xv6.de\/?page_id=27\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Disable logging of martian source<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-27","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xv6.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":4,"href":"http:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/27\/revisions"}],"predecessor-version":[{"id":262,"href":"http:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/27\/revisions\/262"}],"up":[{"embeddable":true,"href":"http:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/21"}],"wp:attachment":[{"href":"http:\/\/xv6.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}