{"id":156,"date":"2011-03-10T23:28:55","date_gmt":"2011-03-10T20:28:55","guid":{"rendered":"http:\/\/saradmin.ru\/?p=156"},"modified":"2011-03-10T23:31:44","modified_gmt":"2011-03-10T20:31:44","slug":"%d0%bf%d1%80%d0%be%d0%b1%d1%80%d0%be%d1%81-%d0%bf%d0%be%d1%80%d1%82%d0%b0-%d0%b2-iptables","status":"publish","type":"post","link":"https:\/\/saradmin.ru\/?p=156","title":{"rendered":"\u041f\u0440\u043e\u0431\u0440\u043e\u0441 \u043f\u043e\u0440\u0442\u0430 \u0432 iptables"},"content":{"rendered":"<p><a href=\"https:\/\/saradmin.ru\/wp-content\/uploads\/iptables.jpg\" rel=\"lightbox[156]\" title=\"iptables\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-150\" title=\"iptables\" src=\"https:\/\/saradmin.ru\/wp-content\/uploads\/iptables.jpg\" alt=\"\" width=\"300\" height=\"162\" \/><\/a>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: \u0435\u0441\u0442\u044c \u0448\u043b\u044e\u0437 \u043d\u0430 ubuntu, \u043d\u0430\u0434\u043e, \u0447\u0442\u043e\u0431\u044b \u0441 \u0438\u043d\u0435\u0442\u0430 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0435\u043a\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435.<\/p>\n<p><em>iptables -t nat -A PREROUTING -p tcp -d 91.195.101.20 \u2013dport 7888 -j DNAT \u2013to-destination 192.168.100.251:7888<\/em><br \/>\n<em>iptables -t nat -A POSTROUTING -p tcp \u2013dst 192.168.100.251 \u2013dport 7888 -j SNAT \u2013to-source 91.195.101.20<\/em><\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 IP \u043f\u0440\u0438\u0451\u043c\u043d\u0438\u043a\u0430 \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 IP, \u0430 \u0432\u0442\u043e\u0440\u043e\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 IP \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: \u0435\u0441\u0442\u044c \u0448\u043b\u044e\u0437 \u043d\u0430 ubuntu, \u043d\u0430\u0434\u043e, \u0447\u0442\u043e\u0431\u044b \u0441 \u0438\u043d\u0435\u0442\u0430 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0435\u043a\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435. iptables -t nat -A PREROUTING -p tcp -d 91.195.101.20 \u2013dport 7888 -j DNAT \u2013to-destination 192.168.100.251:7888 iptables -t nat -A POSTROUTING -p tcp \u2013dst 192.168.100.251 \u2013dport 7888 -j SNAT \u2013to-source 91.195.101.20 \u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 IP \u043f\u0440\u0438\u0451\u043c\u043d\u0438\u043a\u0430 \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 IP, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[20],"tags":[27,589,28,21,6,22],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-20","tag-iptables","tag-linux","tag-ubuntu","tag-21","tag-6","tag-22"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2HrGV-2w","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saradmin.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=156"}],"version-history":[{"count":2,"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":158,"href":"https:\/\/saradmin.ru\/index.php?rest_route=\/wp\/v2\/posts\/156\/revisions\/158"}],"wp:attachment":[{"href":"https:\/\/saradmin.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saradmin.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saradmin.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}