{"id":193,"date":"2015-06-01T06:02:30","date_gmt":"2015-05-31T21:02:30","guid":{"rendered":"https:\/\/jg7sfr.mydns.jp\/?p=193"},"modified":"2015-06-01T06:11:47","modified_gmt":"2015-05-31T21:11:47","slug":"denyhosts-3","status":"publish","type":"post","link":"https:\/\/jg7sfr.mydns.jp\/?p=193","title":{"rendered":"denyhosts"},"content":{"rendered":"<p>cd \/usr\/ports\/security\/denyhosts<br \/>\nmake install<\/p>\n<p>To run denyhosts from startup, add denyhosts_enable=&#8221;YES&#8221;<br \/>\nin your \/etc\/rc.conf.<br \/>\nConfigiration options can be found in \/usr\/local\/etc\/denyhosts.conf<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nIn order to proper working of denyhosts<br \/>\n1. edit your \/etc\/hosts.allow file and add:<br \/>\nsshd : \/etc\/hosts.deniedssh : deny<br \/>\nsshd : ALL : allow<br \/>\n2. issue the following command if \/etc\/hosts.deniedssh does not exist yet<br \/>\ntouch \/etc\/hosts.deniedssh<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nWarning:<\/p>\n<p>syslogd should ideally be run with the -c option; this will ensure that<br \/>\ndenyhosts notices multiple repeated login attempts.<\/p>\n<p>To do this, add syslogd_flags=&#8221;-c&#8221; to \/etc\/rc.conf<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cd \/usr\/ports\/security\/denyhosts make install To run denyhosts from startup, add denyhosts_enable=&#8221;YES&#038;#&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-193","post","type-post","status-publish","format-image","hentry","category-bsd","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=193"}],"version-history":[{"count":1,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":224,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/193\/revisions\/224"}],"wp:attachment":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}