{"id":670,"date":"2017-01-26T08:59:28","date_gmt":"2017-01-26T06:59:28","guid":{"rendered":"http:\/\/helia.ee\/koolitus\/?page_id=670"},"modified":"2017-01-26T08:59:28","modified_gmt":"2017-01-26T06:59:28","slug":"debian-8-how-to-install-portsentry-on-debianubuntu-server","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=670","title":{"rendered":"Debian 8 &#8211; How to install portsentry on Debian\/Ubuntu Server"},"content":{"rendered":"<p>About portsentry you could googling. I will share my knowladge about portsentry installation.<br \/>\n1. Please update your ubuntu server.<br \/>\nLogin as root with sudo su and using apt-get update -y<br \/>\n2. Installing portsentry.<br \/>\n#apt-get install portsentry<br \/>\n3. Edit portsentry configuration file<br \/>\n# gedit \/etc\/portsentry\/<span class=\"skimlinks-unlinked\">portsentry.conf<\/span><br \/>\nChange<br \/>\nBLOCK_UDP=\u201d0\u2033 &lt;\u2014-1<br \/>\nBLOCK_TCP=\u201d0\u2033 &lt;\u2014\u20131<br \/>\nSo like this<br \/>\nBLOCK_UDP=\u201d1\u2033<br \/>\nBLOCK_TCP=\u201d1\u2033<br \/>\nnext, looking for row<br \/>\n#KILL_ROUTE=\u201d\/sbin\/route add -host $TARGET$ gw 333.444.555.666\u2033<br \/>\nand remove # and change 333.444.555.666 with reject<br \/>\nso like this<br \/>\nKILL_ROUTE=\u201d\/sbin\/route add -host $TARGET$ reject\u201d<br \/>\n4. restart your portsentry<br \/>\n# \/etc\/init.d\/portsentry start<\/p>\n<p>For examination you can use nmap application from client to your sever was installed portsentry. Look at your log with #tail -f \/var\/log\/syslog<\/p>\n<p>pleasea don\u2019t forget look at your \u00a0\/etc\/<span class=\"skimlinks-unlinked\">hosts.denny<\/span>. This file is place ip address was blocked because scanner activity.<\/p>\n<p>Look at \/var\/lib\/portsentry\/portsentry.history . thsi file is was note a history ip address was\u00a0was blocked because scanner activity.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>About portsentry you could googling. I will share my knowladge about portsentry installation. 1. Please update your ubuntu server. Login as root with sudo su and using apt-get update -y 2. Installing portsentry. #apt-get install portsentry 3. Edit portsentry configuration file # gedit \/etc\/portsentry\/portsentry.conf Change BLOCK_UDP=\u201d0\u2033 &lt;\u2014-1 BLOCK_TCP=\u201d0\u2033 &lt;\u2014\u20131 So like this BLOCK_UDP=\u201d1\u2033 BLOCK_TCP=\u201d1\u2033 next, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":621,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-670","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=670"}],"version-history":[{"count":1,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/670\/revisions"}],"predecessor-version":[{"id":671,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/670\/revisions\/671"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/621"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}