{"id":25,"date":"2008-04-01T21:36:00","date_gmt":"2008-04-01T18:36:00","guid":{"rendered":"http:\/\/ps.sportcomitet.org\/blog\/?p=25"},"modified":"2011-05-11T22:38:58","modified_gmt":"2011-05-11T19:38:58","slug":"nemnogo-ob-iptables","status":"publish","type":"post","link":"https:\/\/seriyps.com\/blog\/2008\/04\/01\/nemnogo-ob-iptables\/","title":{"rendered":"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0431 iptables"},"content":{"rendered":"<p>\u041d\u0443 \u0434\u043e\u0441\u0442\u0430\u043b\u0438 \u043c\u0435\u043d\u044f \u0441\u043e\u0441\u0435\u0434\u0438 \u0438 \u0432\u0441\u0435 \u0442\u0443\u0442&#8230;.<br \/>\n\u0412 \u043e\u0431\u0449\u0430\u0433\u0435 \u0432 \u0431\u043b\u043e\u043a\u0435 \u043e\u0434\u0438\u043d \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043d\u0430 5 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438 \u0442\u043e\u0442 \u043c\u043e\u0439 \u0412\u043e\u0442 \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0442\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u043e\u0442 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0445 \u043f\u043e\u0441\u0438\u0434\u0435\u0442\u044c&#8230;..<br \/>\n\u0412\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435!(((<\/p>\n<p>\u041d\u043e, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0444\u0438\u0448\u043a\u0430\u043c linux \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u0435\u043d\u044f \u0432\u0440\u044f\u0434-\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043f\u0435\u0440\u044c  ]:-&gt;<\/p>\n<p>\u0418 \u0442\u0430\u043a, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043f\u043e\u043b\u0438\u0441\u0442\u0430\u0432 \u0443\u043c\u043d\u044b\u0445 \u043a\u043d\u0438\u0436\u0435\u043a \u0438 \u043f\u043e\u0441\u043e\u0432\u0435\u0442\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c \u0441 \u043f\u0430\u0440\u043e\u0439 \u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0445 \u0432 \u044d\u0442\u043e\u043c \u0434\u0435\u043b\u0435 \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0435\u0439, \u043f\u0440\u0438\u043d\u044f\u043b\u0441\u044f \u0432\u0430\u044f\u0442\u044c&#8230;.<br \/>\n<!--more--><br \/>\n\u0418 \u0432\u043e\u0442, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c!<br \/>\n\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u0430\u043a\u043e\u0439 bash \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a&#8230;.<\/p>\n<p>[codesyntax lang=&#8221;bash&#8221;]<br \/>\n#!\/bin\/sh<br \/>\necho &quot;\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430..&quot;<\/p>\n<p>ping -c3 vkontakte.ru<br \/>\necho<br \/>\necho &quot;\u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c\/\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442&quot;<br \/>\necho &quot;\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 1 -\u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c, 0 &#8211; \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c&quot;<br \/>\nread wtd<\/p>\n<p>case &quot;$wtd&quot; in<br \/>\n\t1)<br \/>\n\t\tact=&quot;-D&quot;<br \/>\n\t\tmesage=&quot;\u0420\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!&quot;<br \/>\n\t;;<br \/>\n\t0)<br \/>\n\t\tact=&quot;-A&quot;<br \/>\n\t\tmesage=&quot;\u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!&quot;<br \/>\n\t;;<br \/>\n\t*)<br \/>\n\t\techo &quot;Usage: {start|stop}&quot;<br \/>\n\t\tsleep 5<br \/>\n\t\texit 1<br \/>\n\tesac<\/p>\n<p>ip=235<br \/>\nwhile [ $ip -le 242 ] ; do<\/p>\n<p>\tsudo iptables $act INPUT -s 195.190.105.$ip -j DROP<br \/>\n\techo &quot;iptables $act INPUT -s 195.190.105.$ip -j DROP\u00a0 \/ $mesage&quot;<br \/>\n\tip=$(($ip+1))<\/p>\n<p>done;<\/p>\n<p>echo &quot;Ready!&quot;<br \/>\nsleep 5[\/codesyntax]<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442&#8230;..<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 iptables, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f&#8230;<br \/>\n\u042d\u0442\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a<\/p>\n<p>[codesyntax lang=&#8221;bash&#8221;]sudo iptables -A INPUT -s 195.190.105.235\u00a0 -j DROP[\/codesyntax]<\/p>\n<p>\u041b\u0438\u0431\u043e \u0442\u0430\u043a<\/p>\n<p>[codesyntax lang=&#8221;bash&#8221;]sudo iptables -D INPUT -s 195.190.105.235\u00a0 -j DROP[\/codesyntax]<\/p>\n<p>\u0417\u0434\u0435\u0441\u044c, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 (<span style=\"font-weight: bold;\">sudo<\/span>) \u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c (<span style=\"font-weight: bold;\">-A<\/span>) \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c (<span style=\"font-weight: bold;\">-j DROP<\/span>) \u043f\u0440\u0438\u0435\u043c \u043b\u044e\u0431\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0441 <span style=\"color: #000000;\">195.190.105.235 (<span style=\"font-weight: bold;\">-s 195.190.105.235)<\/span>. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e (<span style=\"font-weight: bold;\">-D<\/span>)<br \/>\n\u0427\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c IP \u0430\u0434\u0440\u0435\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442 \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u043d\u043e\u043c\u0443 \u0412\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0443, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443<br \/>\n[codesyntax lang=&#8221;bash&#8221;]nslookup vkontakte.ru[\/codesyntax]<\/p>\n<p>\u041a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0434\u0430\u0441\u0442 \u043d\u0430\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e<br \/>\n_____________________________________<br \/>\n<span style=\"font-style: italic;\">seriy@seriy-desktop:~$ nslookup vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Server:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 172.<\/span><span style=\"font-weight: bold; font-style: italic; color: #808080;\">##.##.##<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 172.<\/span><span style=\"font-weight: bold; font-style: italic; color: #808080;\">##.##.####<\/span><br style=\"font-style: italic;\" \/><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Non-authoritative answer:<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Name:\u00a0\u00a0 vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address: 195.190.105.239<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Name:\u00a0\u00a0 vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address: 195.190.105.240<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Name:\u00a0\u00a0 vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address: 195.190.105.241<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Name:\u00a0\u00a0 vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address: 195.190.105.242<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Name:\u00a0\u00a0 vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address: 195.190.105.235<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Name:\u00a0\u00a0 vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address: 195.190.105.236<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Name:\u00a0\u00a0 vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address: 195.190.105.237<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Name:\u00a0\u00a0 vkontakte.ru<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Address: 195.190.105.238<\/span><br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u044d\u0442\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u0438\u0437 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 (\u0410\u0434\u0440\u0435\u0441\u0430 \u044d\u0442\u0438\u0445 DNS <\/span><span style=\"color: #000000;\"><br \/>\n<span style=\"font-style: italic;\">Server:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 172.<\/span><span style=\"font-weight: bold; font-style: italic; color: #808080;\">##.##.##<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\"> Address:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 172.<\/span><span style=\"font-weight: bold; color: #808080;\"><span style=\"font-style: italic;\">##.##.####<\/span><br \/>\n<\/span><span style=\"color: #808080;\"><span style=\"color: #000000;\">\u043d\u0435 \u0441\u0442\u0430\u043b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0437\u0430\u0447\u0435\u043c \u043e\u043d\u0438 \u0432\u0430\u043c :)))<\/span><\/span><\/span><\/p>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 IP \u0438 \u0435\u0441\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d IP<br \/>\n<span style=\"color: #000000;\"><br \/>\n\u041f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443, \u044d\u0442\u043e\u0433\u043e \u0431\u044b \u043d\u0430\u043c \u0443\u0436\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e, \u043d\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0434\u0435\u043b\u0430\u043b\u043e\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0430 \u0435\u0449\u0435 \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e-\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e&#8230;.<br \/>\n\u0422\u0430\u043a-\u0447\u0442\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0438\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f!<\/span><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043c\u044b \u043d\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442, \u043e\u043d \u043f\u0438\u043d\u0433\u0443\u0435\u0442 \u0412\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u00a0 3 \u0440\u0430\u0437\u0430 (<span style=\"font-weight: bold;\">ping -c3<\/span><span style=\"color: #000000;\">) (\u0434\u0443\u043c\u0430\u044e \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e) \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u043e\u043d \u0431\u044b\u043b \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0440\u0430\u043d\u0435\u0435 \u0430 \u0432\u044b \u043e\u0431 \u044d\u0442\u043e\u043c \u0442\u043e\u0433\u043e&#8230; \u0437\u0430\u0431\u044b\u043b\u0438 \u0432 \u043e\u0431\u0449\u0435\u043c), \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0441\u0438\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 : \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c (<span style=\"font-weight: bold;\">0<\/span>) \u0438\u043b\u0438 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c (<span style=\"font-weight: bold;\">1<\/span>) \u0441\u0430\u0439\u0442. \u0415\u0441\u043b\u0438 \u0432\u0432\u0435\u0434\u0435\u043d &#8220;<span style=\"font-weight: bold;\">0<\/span>&#8220;, \u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <span style=\"font-weight: bold;\">$act<\/span> \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d <span style=\"font-weight: bold;\">-A <\/span>, \u0435\u0441\u043b\u0438 &#8220;<span style=\"font-weight: bold;\">1<\/span>&#8220;, \u0442\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f<span style=\"font-weight: bold;\"> -D <\/span>\u0430 \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0442\u044c \u0445\u0440\u0435\u043d\u044c, \u0442\u043e \u0432\u044b\u043b\u0435\u0437\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043a\u0440\u043e\u0435\u0442\u0441\u044f.<\/span><\/p>\n<p>\u0410 \u0446\u0438\u043a\u043b <span style=\"font-weight: bold;\">While<\/span> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <span style=\"font-weight: bold;\">iptables<\/span> (\u0438 \u0437\u0430\u043e\u0434\u043d\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430 <span style=\"font-weight: bold;\">echo<\/span>) \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u043c\u0443 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443 \u0430\u0439\u043f\u0438<\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 &#8220;\u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u0438&#8221; \u043d\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<p>[codesyntax lang=&#8221;bash&#8221;]sudo iptables -L INPUT[\/codesyntax]<\/p>\n<p>\u041a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0434\u0430\u0435\u0442 (\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e) \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 INPUT. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0430\u0439\u0442\u0430\u00a0 \u0432\u044b\u0434\u0430\u043b\u0430 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e:<br \/>\n____________________________________<br \/>\n<span style=\"font-style: italic;\">~$ sudo iptables -L INPUT<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">[sudo] password for seriy:<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">Chain INPUT (policy ACCEPT)<\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">target\u00a0\u00a0\u00a0\u00a0 prot opt source\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 destination <\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">DROP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 &#8212;\u00a0 195.190.105.235\u00a0\u00a0\u00a0\u00a0\u00a0 anywhere <\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">DROP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 &#8212;\u00a0 195.190.105.236\u00a0\u00a0\u00a0\u00a0\u00a0 anywhere <\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">DROP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 &#8212;\u00a0 195.190.105.237\u00a0\u00a0\u00a0\u00a0\u00a0 anywhere <\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">DROP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 &#8212;\u00a0 195.190.105.238\u00a0\u00a0\u00a0\u00a0\u00a0 anywhere <\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">DROP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 &#8212;\u00a0 195.190.105.239\u00a0\u00a0\u00a0\u00a0\u00a0 anywhere <\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">DROP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 &#8212;\u00a0 195.190.105.240\u00a0\u00a0\u00a0\u00a0\u00a0 anywhere <\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">DROP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 &#8212;\u00a0 195.190.105.241\u00a0\u00a0\u00a0\u00a0\u00a0 anywhere <\/span><br style=\"font-style: italic;\" \/><span style=\"font-style: italic;\">DROP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 &#8212;\u00a0 195.190.105.242\u00a0\u00a0\u00a0\u00a0\u00a0 anywhere <\/span><br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\u0417\u043d\u0430\u0447\u0438\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/p>\n<p>\u041d\u0443, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u0435! \u0421\u043e\u0441\u0435\u0434\u0438 &#8211; \u0431\u0435\u0440\u0435\u0433\u0438\u0442\u0435\u0441\u044c)))<\/p>\n<p>P.S.: \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u043e \u0441\u043b\u043e\u0432\u0430 <span style=\"font-weight: bold;\">ping<\/span>, <span style=\"font-weight: bold;\">echo<\/span> \u0438 <span style=\"font-weight: bold;\">sleep<\/span> \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0431\u0435\u0437 \u0443\u0449\u0435\u0440\u0431\u0430 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0442.\u043a. \u043e\u043d\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c.<\/p>\n<p>P.P.S.: \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0430\u0439\u0442\u0430:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n<span style=\"font-style: italic;\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430&#8230;.<br \/>\nPING vkontakte.ru (195.190.105.235) 56(84) bytes of data.<br \/>\n64 bytes from 195.190.105.235: icmp_seq=1 ttl=55 time=27.1 ms<br \/>\n64 bytes from 195.190.105.235: icmp_seq=2 ttl=55 time=18.5 ms<br \/>\n64 bytes from 195.190.105.235: icmp_seq=3 ttl=55 time=22.9 ms<\/span><\/p>\n<p>&#8212; vkontakte.ru ping statistics &#8212;<br \/>\n3 packets transmitted, 3 received, 0% packet loss, time 10049ms<br \/>\nrtt min\/avg\/max\/mdev = 18.533\/22.855\/27.113\/3.507 ms<\/p>\n<p>\u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c\/\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442<br \/>\n\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 1 -\u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c, 0 &#8211; \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c<br \/>\n0<br \/>\niptables -A INPUT -s 195.190.105.235 -j DROP\u00a0 \/ \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!<br \/>\niptables -A INPUT -s 195.190.105.236 -j DROP\u00a0 \/ \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!<br \/>\niptables -A INPUT -s 195.190.105.237 -j DROP\u00a0 \/ \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!<br \/>\niptables -A INPUT -s 195.190.105.238 -j DROP\u00a0 \/ \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!<br \/>\niptables -A INPUT -s 195.190.105.239 -j DROP\u00a0 \/ \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!<br \/>\niptables -A INPUT -s 195.190.105.240 -j DROP\u00a0 \/ \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!<br \/>\niptables -A INPUT -s 195.190.105.241 -j DROP\u00a0 \/ \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!<br \/>\niptables -A INPUT -s 195.190.105.242 -j DROP\u00a0 \/ \u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e!<br \/>\nReady!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0443 \u0434\u043e\u0441\u0442\u0430\u043b\u0438 \u043c\u0435\u043d\u044f \u0441\u043e\u0441\u0435\u0434\u0438 \u0438 \u0432\u0441\u0435 \u0442\u0443\u0442&#8230;. \u0412 \u043e\u0431\u0449\u0430\u0433\u0435 \u0432 \u0431\u043b\u043e\u043a\u0435 \u043e\u0434\u0438\u043d \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043d\u0430 5 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438 \u0442\u043e\u0442 \u043c\u043e\u0439 \u0412\u043e\u0442 \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0442\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u043e\u0442 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0445 \u043f\u043e\u0441\u0438\u0434\u0435\u0442\u044c&#8230;.. \u0412\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435!((( \u041d\u043e, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0444\u0438\u0448\u043a\u0430\u043c linux \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u0435\u043d\u044f \u0432\u0440\u044f\u0434-\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043f\u0435\u0440\u044c ]:-&gt; \u0418 \u0442\u0430\u043a, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043f\u043e\u043b\u0438\u0441\u0442\u0430\u0432 \u0443\u043c\u043d\u044b\u0445 \u043a\u043d\u0438\u0436\u0435\u043a \u0438 \u043f\u043e\u0441\u043e\u0432\u0435\u0442\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c \u0441 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[181],"tags":[46,61,246,6,64,62,50,63],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-linux-desktop","tag-bash","tag-iptables","tag-linux","tag-ubuntu","tag-brandmauer","tag-zablokirovat-sayt","tag-skript","tag-fayrvol"],"_links":{"self":[{"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":11,"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":315,"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions\/315"}],"wp:attachment":[{"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seriyps.com\/blog\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}