{"id":822,"date":"2011-02-03T16:23:08","date_gmt":"2011-02-03T14:23:08","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=822"},"modified":"2011-04-22T08:49:04","modified_gmt":"2011-04-22T05:49:04","slug":"pptp-%d0%ba%d0%bb%d0%b8%d0%b5%d0%bd%d1%82","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=822","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 pptp \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u044f VPN \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f"},"content":{"rendered":"<p><strong><span style=\"color: #ff0000;\">1) \u0414\u043b\u044f \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u044b \u0442\u0430\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:<\/span><\/strong><\/p>\n<p><strong>pptp, chat<\/strong><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438\u0445:<\/p>\n<p><code>#opkg update &amp;&amp; opkg install pptp chat<\/code><\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443:<\/span><\/strong><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u043f\u0446\u0438\u0438<\/p>\n<p><code>#cat \/etc\/ppp\/options.pptp<\/code><\/p>\n<p><code>lock<br \/>\nnoauth<br \/>\nnobsdcomp<br \/>\nnodeflate<br \/>\nidle 0<br \/>\n#defaultroute<br \/>\nmaxfail 0<br \/>\npersist<\/code><\/p>\n<p>\u0417\u0430\u0434\u0430\u0451\u043c \u043b\u043e\u0433\u0438\u043d\/\u043f\u0430\u0440\u043e\u043b\u044c<\/p>\n<p><code>#cat \/etc\/ppp\/chap-secrets<\/code><\/p>\n<p><code>user_name \u00a0 \u00a0*       passss *<\/code><\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430<\/p>\n<p><code>#cat \/etc\/ppp\/ip-up.d\/vpn.sh<\/code><\/p>\n<p><code>#!\/bin\/sh<br \/>\ncase \"$4\" in<br \/>\n10.11.0.121)<br \/>\nroute add -net 10.1.0.0\/16 gw 10.11.0.1<br \/>\n;;<br \/>\nesac<br \/>\nexit 0<\/code><\/p>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 vpn&#8217;a<\/p>\n<p><code>#cat \/etc\/ppp\/peers\/vpn_connect<\/code><br \/>\n<code><br \/>\nname user_name<br \/>\nremotename user_name<br \/>\ndebug<br \/>\nlock<br \/>\ndeflate 0<br \/>\nfile \/etc\/ppp\/options.pptp<br \/>\npty \"pptp XX.XX.XX.XX --nolaunchpppd\"<br \/>\nhide-password<\/code><\/p>\n<p>\u0421\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442<\/p>\n<p><code># cat \/etc\/init.d\/vpn_connect<\/code><\/p>\n<p><code>#!\/bin\/sh \/etc\/rc.common<br \/>\nSTART=99<br \/>\nstart() {<br \/>\nsleep 15<br \/>\n\/usr\/sbin\/pppd call vpn_connect<br \/>\n}<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) \u0414\u043b\u044f \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u044b \u0442\u0430\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b: pptp, chat \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438\u0445: #opkg update &amp;&amp; opkg install pptp chat<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-822","post","type-post","status-publish","format-standard","hentry","category-wrt"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=822"}],"version-history":[{"count":12,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/822\/revisions"}],"predecessor-version":[{"id":1109,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/822\/revisions\/1109"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}