{"id":97,"date":"2012-01-03T13:37:42","date_gmt":"2012-01-03T09:37:42","guid":{"rendered":"http:\/\/blog.mgvmi-hipl.ru\/?p=97"},"modified":"2012-01-03T13:37:42","modified_gmt":"2012-01-03T09:37:42","slug":"vpn-pptp-over-nat","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=97","title":{"rendered":"VPN (PPTP) over NAT"},"content":{"rendered":"<p>VPN (PPTP) over NAT<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u043e\u0442 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c VPN \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 NAT. \u0414\u043e\u043b\u0433\u043e \u044f \u043c\u0443\u0447\u0430\u043b\u0441\u044f \u0438 \u0440\u044b\u043b \u0434\u043e\u043a\u0438, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430 \u043a iptables, \u0447\u0435\u043c \u0432\u0441\u0435 \u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c. \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0414\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 NAT (\u0444\u0430\u0439\u043b rc.local) \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u044d\u0442\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439:<\/p>\n<blockquote><p>modprobe ip_gre<br \/>\nmodprobe ip_nat_pptp<br \/>\nmodprobe ip_conntrack_pptp<\/p><\/blockquote>\n<p>\u041d\u0443 \u0438 \u0435\u0441\u0442\u0435\u0441\u0441\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u044d\u0442\u0438 \u0436\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043e\u0442 \u0440\u0443\u0442\u0430, \u0447\u0442\u043e\u0431 \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 VPN \u0431\u0435\u0433\u0430\u0435\u0442 \u043d\u0430 \u00ab\u0423\u0440\u0430\u00bb.<\/p>\n<p>\u043b\u0438\u0431\u043e \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043f\u043a\u0435 \/etc\/sysconfig\/modules\/\u0438\u043c\u044f.modules<\/p>\n<p>\u0438 \u0443\u0436\u0435 \u043f\u0438\u0448\u0435\u043c \u0442\u0443\u0434\u0430.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VPN (PPTP) over NAT \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u043e\u0442 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c VPN \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 NAT. \u0414\u043e\u043b\u0433\u043e \u044f \u043c\u0443\u0447\u0430\u043b\u0441\u044f \u0438 \u0440\u044b\u043b \u0434\u043e\u043a\u0438, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430 \u043a iptables, \u0447\u0435\u043c \u0432\u0441\u0435 \u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c. \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0414\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=97\">\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":[3,9],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-linux","category-9"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/97"}],"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=97"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}