{"id":1841,"date":"2015-04-17T20:53:27","date_gmt":"2015-04-17T14:53:27","guid":{"rendered":"http:\/\/notes.norfolks.org\/?p=1841"},"modified":"2015-04-17T20:55:51","modified_gmt":"2015-04-17T14:55:51","slug":"%d0%ba%d0%b0%d0%ba-%d1%81%d0%be%d1%85%d1%80%d0%b0%d0%bd%d0%b8%d1%82%d1%8c-%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb%d0%b0-iptables-%d0%bf%d0%be%d1%81%d0%bb%d0%b5-%d0%bf%d0%b5%d1%80%d0%b5%d0%b7%d0%b0%d0%b3","status":"publish","type":"post","link":"https:\/\/notes.norfolks.fun\/?p=1841","title":{"rendered":"\u041a\u0430\u043a \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 iptables \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 Debian\/Ubuntu?"},"content":{"rendered":"<p>\u0412\u043e\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043b\u044f Debian 6.0 \u0438 Debian 7.0, \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0432 Ubuntu.<br \/>\n\u041f\u043e\u0434 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c:<br \/>\n1. \u0414\u0435\u043b\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u043f\u0440\u0438 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/p>\n<pre lang=\"sh\">nano -w \/etc\/network\/if-up.d\/00-iptables<\/pre>\n<p><code>#!\/bin\/sh<br \/>\niptables-restore < \/etc\/firewall.conf\nip6tables-restore < \/etc\/firewall6.conf<\/code><br \/>\n2. \u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/p>\n<pre lang=\"sh\">chmod +x nano -w \/etc\/network\/if-up.d\/00-iptables<\/pre>\n<p>3. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f IPv4<\/p>\n<pre lang=\"sh\">iptables-save >\/etc\/firewall.conf<\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f IPv6<\/p>\n<pre lang=\"sh\">ip6tables-save >\/etc\/firewall6.conf<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u043e\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043b\u044f Debian 6.0 \u0438 Debian 7.0, \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0432 Ubuntu. \u041f\u043e\u0434 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c: 1. \u0414\u0435\u043b\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u043f\u0440\u0438 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 nano -w \/etc\/network\/if-up.d\/00-iptables #!\/bin\/sh iptables-restore < \/etc\/firewall.conf ip6tables-restore < \/etc\/firewall6.conf 2. \u0414\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 &hellip; <a href=\"https:\/\/notes.norfolks.fun\/?p=1841\">\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":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,14,8],"tags":[],"class_list":["post-1841","post","type-post","status-publish","format-standard","hentry","category-iptables","category-linux","category-8"],"_links":{"self":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1841"}],"version-history":[{"count":2,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1841\/revisions"}],"predecessor-version":[{"id":1843,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1841\/revisions\/1843"}],"wp:attachment":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}