{"id":555,"date":"2017-04-12T16:02:59","date_gmt":"2017-04-12T12:02:59","guid":{"rendered":"http:\/\/blog.5flor.ru\/?p=555"},"modified":"2017-04-14T12:20:53","modified_gmt":"2017-04-14T08:20:53","slug":"mikrotik-%d0%b7%d0%b0%d1%89%d0%b8%d1%82%d0%b0-%d0%be%d1%82-%d1%85%d0%b0%d0%ba%d0%b5%d1%80%d0%be%d0%b2","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=555","title":{"rendered":"Mikrotik \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0445\u0430\u043a\u0435\u0440\u043e\u0432 \u0438 \u0441\u043f\u0430\u043c\u0435\u0440\u043e\u0432"},"content":{"rendered":"<h3 class=\"post-title entry-title\">\u041a\u0430\u043a \u043e\u0433\u0440\u0430\u0434\u0438\u0442\u044c MikroTik \u043e\u0442 \u0441\u043f\u0430\u043c\u0435\u0440\u043e\u0432.<\/h3>\n<p>\u0432\u0437\u044f\u0442\u043e \u0438\u0437 \u0438\u043d\u0435\u0442\u0430.<\/p>\n<div class=\"post-header\"><\/div>\n<div id=\"post-body-2502539170486027056\" class=\"post-body entry-content\">\n<div dir=\"ltr\">\n<p>\u00a0 \u041d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442 <a href=\"http:\/\/joshaven.com\/\" target=\"_blank\" rel=\"nofollow\">joshaven.com<\/a>, \u0433\u0434\u0435 Joshaven Potter \u0443\u0436\u0435 \u044d\u0442\u043e \u0432\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b, \u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438. \u041c\u0430\u043b\u043e \u0442\u043e\u0433\u043e, \u0434\u0430\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0434\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f IP-\u043b\u0438\u0441\u0442\u043e\u0432, \u0438 \u0434\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u0442\u0438\u043c \u0441\u043f\u0438\u0441\u043a\u0430\u043c. \u0417\u0430 \u0447\u0442\u043e \u0435\u043c\u0443 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0447\u0442\u043e-\u0436\u0435 \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c &#171;\u0447\u0435\u0440\u043d\u044b\u0445 IP&#187; \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.openbl.org\/lists.html\" target=\"_blank\" rel=\"nofollow\">OpenBL<\/a>\u00a0&#8212; \u0441\u0435\u0440\u0432\u0438\u0441, \u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043a\u0430\u043a\u00a0SSH blacklist, \u0432\u044b\u044f\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0438\u0434\u044b \u0443\u0433\u0440\u043e\u0437 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0421\u0435\u0440\u0432\u0438\u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u044f\u0434 \u0445\u043e\u0441\u0442\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u044f\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u044b:\u00a0<span class=\"\">21 (FTP), 22 (SSH), 23 (TELNET), 25 (SMTP), 110 (POP3), 143 (IMAP), 587 (Submission), 993 (IMAPS) \u0438 995 (POP3S) \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441 \u0430\u0442\u0430\u043a, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u043f\u043e\u0440\u0442\u044b 80 (HTTP) \u0438 443 (HTTPS) \u0434\u043b\u044f &#171;\u043b\u0435\u0432\u044b\u0445&#187;, \u044f\u0432\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0443\u0433\u0440\u043e\u0437\u0443, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 (\u0430\u0442\u0430\u043a\u0430 \u043d\u0430 PHPMyAdmin \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u044b<\/span><span class=\"\">).<\/span><\/li>\n<li><a href=\"http:\/\/www.spamhaus.org\/drop\/\" target=\"_blank\" rel=\"nofollow\">Spamhaus<\/a>\u00a0&#8212; \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043a\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c\u0438 \u0441\u043f\u0430\u043c\u0435\u0440\u0430\u043c\u0438 \u0438 \u0445\u0430\u043a\u0435\u0440-\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438. \u0422\u0430\u043a \u0436\u0435 \u0441\u044e\u0434\u0430 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0441\u043f\u0438\u0441\u043a\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 &#171;\u0445\u0430\u043a\u043d\u0443\u043b\u0438&#187; \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u0445 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u044e\u0442 \u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u043e\u0435 \u041f\u041e \u0438\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442 \u0430\u0442\u0430\u043a\u0438.<\/li>\n<li><a href=\"http:\/\/feeds.dshield.org\/block.txt\" target=\"_blank\" rel=\"nofollow\">dshield.org<\/a>\u00a0&#8212; \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043f 20 IP \u043a\u043b\u0430\u0441\u0441\u0430 C (\/24) \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b\u0438 \u0430\u0442\u0430\u043a\u0438, \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3-\u0435 \u0441\u0443\u0442\u043e\u043a.<\/li>\n<li><a href=\"http:\/\/malc0de.com\/bl\/IP_Blacklist.txt\" target=\"_blank\" rel=\"nofollow\">malc0de.com<\/a> &#8212; \u0431\u043b\u044d\u043a\u043b\u0438\u0441\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e. \u0422\u0443\u0434\u0430 \u0437\u0430\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043e\u043f\u0430\u0441\u043d\u044b\u0435 IP, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0430\u0442\u0430\u043a\u0438 (\u0438\u043b\u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u043e\u0433\u043e \u041f\u041e) \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u0434\u043d\u0435\u0439.<a name=\"more\"><\/a><\/li>\n<\/ul>\n<div>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0438 IP \u0432 drop \u043f\u0440\u0430\u0432\u0438\u043b\u043e Mikrotik. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e:<\/p>\n<blockquote class=\"tr_bq\"><p>\/ip firewall filter<br \/>\nadd action=drop chain=input comment=&#187;Drop new connections from blacklisted IP&#8217;s to this router&#187; connection-state=new in-interface=ether1-niknet src-address-list=blacklist<\/p><\/blockquote>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u0432\u0441\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0430\u0434\u0440\u0435\u0441-\u043b\u0438\u0441\u0442\u0430 blacklist &#8212; \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u043c. Joshaven Potter \u0432\u0437\u044f\u043b \u043d\u0430 \u0441\u0435\u0431\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443 IP \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u0444\u043e\u0440\u043c\u0430\u0442, \u043d\u0430\u043c \u0436\u0435 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 .rsc \u0441 \u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0414\u0430\u043d\u043d\u044b\u0435 \u0431\u043b\u044d\u043a-\u043b\u0438\u0441\u0442\u043e\u0432 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e. \u0424\u0430\u0439\u043b-\u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434:<\/p>\n<div class=\"separator\"><a href=\"https:\/\/3.bp.blogspot.com\/-S3GV6-PPoRc\/V88Eal0YYWI\/AAAAAAAAAms\/fXBeBeorkhIt7TStsyqRr3HN1rsnlboawCLcB\/s1600\/Screenshot_6.jpg\"><img decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-S3GV6-PPoRc\/V88Eal0YYWI\/AAAAAAAAAms\/fXBeBeorkhIt7TStsyqRr3HN1rsnlboawCLcB\/s1600\/Screenshot_6.jpg\" border=\"0\" \/><\/a><\/div>\n<h3>OpenBL<\/h3>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b:<\/p>\n<blockquote class=\"tr_bq\"><p># Script which will download the OpenBL list as a text file &amp; Script which will Remove old OpenBL records and add new one<br \/>\n\/system script add name=&#187;DownloadOpenBL_ReplaceOpenBL&#187; source={<br \/>\n\/tool fetch url=&#187;http:\/\/joshaven.com\/openbl.rsc&#187; mode=http;<br \/>\n:log info &#171;Downloaded openbl.rsc from Joshaven.com&#187;;<br \/>\n:delay 40;<br \/>\n\/ip firewall address-list remove [find where comment=&#187;OpenBL&#187;];<br \/>\n\/import file-name=openbl.rsc;<br \/>\n:log info &#171;Removed old OpenBL records and imported new list&#187;;<br \/>\n}<\/p><\/blockquote>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0432\u00a0Scheduler.<\/p>\n<blockquote class=\"tr_bq\"><p>\/system scheduler add comment=&#187;Download openbl list_Apply openbl List&#187; interval=3d name=&#187;Download and Apply OpenBL_List&#187; on-event=DownloadOpenBL_ReplaceOpenBL\u00a0start-date=jan\/01\/1970 start-time=00:35:04<\/p><\/blockquote>\n<p>\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043a\u0430\u0447\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0441 \u0441\u0430\u0439\u0442\u0430 <a href=\"http:\/\/joshaven.com\/\" target=\"_blank\" rel=\"nofollow\">joshaven.com<\/a>\u00a0\u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c IP, \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442 \u0438\u043b\u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0435\u0433\u043e \u0432 \u0430\u0434\u0440\u0435\u0441-\u043b\u0438\u0441\u0442\u0435\u00a0blacklist \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 &#171;OpenBL&#187;. \u0418 \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 &#171;\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0435\u0439&#187; \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u044b\u0435 3 \u0434\u043d\u044f.<\/p>\n<h3>Spamhaus<\/h3>\n<div>\u00a0 \u0421\u043a\u0440\u0438\u043f\u0442<\/div>\n<div>\n<blockquote class=\"tr_bq\"><p># Script which will download the drop list as a text file &amp; Script which will Remove old Spamhaus list and add new one<br \/>\n\/system script add name=&#187;DownloadSpamhaus_ReplaceSpamhaus&#187; source={<br \/>\n\/tool fetch url=&#187;http:\/\/joshaven.com\/spamhaus.rsc&#187; mode=http;<br \/>\n:log info &#171;Downloaded spamhaus.rsc from Joshaven.com&#187;;<br \/>\n:delay 40;<br \/>\n\/ip firewall address-list remove [find where comment=&#187;SpamHaus&#187;];<br \/>\n\/import file-name=spamhaus.rsc;<br \/>\n:log info &#171;Removed old Spamhaus records and imported new list&#187;;<br \/>\n}<\/p><\/blockquote>\n<\/div>\n<div>\u00a0 Scheduler<\/div>\n<div>\n<blockquote class=\"tr_bq\"><p># Schedule the download and application of the spamhaus list<br \/>\n\/system scheduler add comment=&#187;Download spamhaus list_Apply spamhaus List&#187; interval=3d name=&#187;DownloadSpamhausList and ApplySpamhausList&#187; on-event=DownloadSpamhaus_ReplaceSpamhaus\u00a0start-date=jan\/01\/1970 start-time=00:40:04<\/p><\/blockquote>\n<\/div>\n<h3>dshield.org<\/h3>\n<div>\u00a0 \u0421\u043a\u0440\u0438\u043f\u0442<\/div>\n<blockquote class=\"tr_bq\"><p># Script which will download the drop list as a text file &amp; Script which will Remove old dshield list and add new one<br \/>\n\/system script add name=&#187;Download_dshield_Replace_dshield&#187; source={<br \/>\n\/tool fetch url=&#187;http:\/\/joshaven.com\/dshield.rsc&#187; mode=http;<br \/>\n:log info &#171;Downloaded dshield.rsc from Joshaven.com&#187;;<br \/>\n:delay 40;<br \/>\n\/ip firewall address-list remove [find where comment=&#187;DShield&#187;];<br \/>\n\/import file-name=dshield.rsc;<br \/>\n:log info &#171;Removed old dshield records and imported new list&#187;;<br \/>\n}<\/p><\/blockquote>\n<\/div>\n<div>\u00a0 Scheduler<\/div>\n<div>\n<blockquote class=\"tr_bq\"><p>\/system scheduler add comment=&#187;DownloadDShieldList_InstallDShieldList&#187; interval=3d name=&#187;Download and Apply dshield_List&#187; on-event=Download_dshield_Replace_dshield\u00a0start-date=jan\/01\/1970 start-time=00:45:04<\/p><\/blockquote>\n<h3>\u00a0malc0de.com<\/h3>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442<\/p>\n<blockquote class=\"tr_bq\"><p># Script which will download the malc0de list as a text file &amp; Script which will Remove old malc0de list and add new one<br \/>\n\/system script add name=&#187;Download_malc0de_Replace_malc0de&#187; source={<br \/>\n\/tool fetch url=&#187;http:\/\/joshaven.com\/malc0de.rsc&#187; mode=http;<br \/>\n:log info &#171;Downloaded malc0de.rsc from Joshaven.com&#187;;<br \/>\n:delay 40;<br \/>\n\/ip firewall address-list remove [find where comment=&#187;malc0de&#187;];<br \/>\n\/import file-name=malc0de.rsc;<br \/>\n:log info &#171;Removed old malc0de records and imported new list&#187;;<br \/>\n}<\/p><\/blockquote>\n<p>Scheduler<\/p>\n<blockquote class=\"tr_bq\"><p># Schedule the download and application of the malc0de list<br \/>\n\/system scheduler add comment=&#187;Download and\u00a0Apply\u00a0malc0de list&#187; interval=3d name=&#187;Downloadmalc0deList_Installmalc0deList&#187; on-event=Download_malc0de_Replace_malc0de\u00a0start-date=jan\/01\/1970 start-time=00:50:04<\/p><\/blockquote>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\u0410\u0432\u0442\u043e\u0440 \u0438 \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 <a href=\"http:\/\/joshaven.com\/\" target=\"_blank\" rel=\"nofollow\">joshaven.com<\/a>\u00a0\u0443\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u044c\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0438 \u0441 \u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b. \u0422\u0430\u043a \u0436\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 \u0441\u0430\u043c\u0438, \u043e\u043d \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 cron \u0443 \u0441\u0435\u0431\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 linux \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043f\u043e \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442\u0443, \u0430 \u0432\u0430\u0448 \u043c\u0438\u043a\u0440\u043e\u0442\u0438\u043a \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0431\u0438\u0440\u0430\u0442\u044c \u044d\u0442\u0438 \u0441\u043f\u0438\u0441\u043a\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e:<\/p>\n<blockquote class=\"tr_bq\"><p>Note: Please only use the following update scripts sparingly because the source sites don\u2019t need a bunch of unnecessary traffic. Anyway, the following script will run on a Linux server (requires gawk &amp; wget). I placed it in a file with 755 permissions in my \/etc\/cron.daily\/ folder to be run daily.<\/p><\/blockquote>\n<\/div>\n<blockquote class=\"tr_bq\"><p>#!\/bin\/sh<br \/>\nsaveTo=\/var\/www<br \/>\nnow=$(date);<br \/>\necho &#171;# Generated by Joshaven Potter on $now&#187; &gt; $saveTo\/dshield.rsc<br \/>\necho &#171;\/ip firewall address-list&#187; &gt;&gt; $saveTo\/dshield.rsc<br \/>\nwget -q -O &#8212; http:\/\/feeds.dshield.org\/block.txt | awk &#8212;posix &#8216;\/^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.0\\t\/ { print &#171;add list=blacklist address=&#187; $1 &#171;\/24 comment=DShield&#187;;}&#8217; &gt;&gt; $saveTo\/dshield.rsc<br \/>\necho &#171;# Generated by Joshaven Potter on $now&#187; &gt; $saveTo\/spamhaus.rsc<br \/>\necho &#171;\/ip firewall address-list&#187; &gt;&gt; $saveTo\/spamhaus.rsc<br \/>\nwget -q -O &#8212; http:\/\/www.spamhaus.org\/drop\/drop.lasso | awk &#8212;posix &#8216;\/[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\\/\/ { print &#171;add list=blacklist address=&#187; $1 &#187; comment=SpamHaus&#187;;}&#8217; &gt;&gt; $saveTo\/spamhaus.rsc<br \/>\necho &#171;# Generated by Joshaven Potter on $now&#187; &gt; $saveTo\/openbl.rsc<br \/>\necho &#171;\/ip firewall address-list&#187; &gt;&gt; $saveTo\/openbl.rsc<br \/>\nwget -q -O &#8212; http:\/\/www.openbl.org\/lists\/base_30days.txt.gz | gunzip | awk &#8212;posix &#8216;\/^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\/ { print &#171;add list=blacklist address=&#187; $1 &#187; comment=OpenBL&#187;;}&#8217; &gt;&gt; $saveTo\/openbl.rsc<br \/>\necho &#171;# Generated by Joshaven Potter on $now&#187; &gt; $saveTo\/malc0de.rsc<br \/>\necho &#171;\/ip firewall address-list&#187; &gt;&gt; $saveTo\/malc0de.rsc<br \/>\nwget -q -O &#8212; http:\/\/malc0de.com\/bl\/IP_Blacklist.txt | awk &#8212;posix &#8216;\/^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\/ { print &#171;add list=blacklist address=&#187; $1 &#187; comment=malc0de&#187;;}&#8217; &gt;&gt; $saveTo\/malc0de.rsc<\/p><\/blockquote>\n<div>\n<div>\u00a0 \u041d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u0445\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0435\u0440\u0435\u0447\u044c, \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u044f \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044f .rsc \u0444\u0430\u0439\u043b \u0441 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0432 \u0441\u0432\u043e\u0435\u0439 \u0441\u0435\u0442\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0439\u0442\u0435 \u0432\u0437\u0432\u0435\u0448\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f!<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u043e\u0433\u0440\u0430\u0434\u0438\u0442\u044c MikroTik \u043e\u0442 \u0441\u043f\u0430\u043c\u0435\u0440\u043e\u0432. \u0432\u0437\u044f\u0442\u043e \u0438\u0437 \u0438\u043d\u0435\u0442\u0430. \u00a0 \u041d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442 joshaven.com, \u0433\u0434\u0435 Joshaven Potter \u0443\u0436\u0435 \u044d\u0442\u043e \u0432\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b, \u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438. \u041c\u0430\u043b\u043e \u0442\u043e\u0433\u043e, \u0434\u0430\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0434\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f IP-\u043b\u0438\u0441\u0442\u043e\u0432, \u0438 \u0434\u0430\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u0442\u0438\u043c \u0441\u043f\u0438\u0441\u043a\u0430\u043c. &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=555\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-555","post","type-post","status-publish","format-standard","hentry","category-mikrotik"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/555"}],"collection":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=555"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/555\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}