{"id":1229,"date":"2018-06-26T10:53:01","date_gmt":"2018-06-26T05:53:01","guid":{"rendered":"http:\/\/alexeyka.zantsev.com\/?p=1229"},"modified":"2018-06-26T10:53:01","modified_gmt":"2018-06-26T05:53:01","slug":"pptp-client-linux-quick-and-dirty","status":"publish","type":"post","link":"https:\/\/alexeyka.zantsev.com\/?p=1229","title":{"rendered":"pptp client linux: quick and dirty"},"content":{"rendered":"<p>root@lexus:~# cat \/etc\/ppp\/chap-secrets<\/p>\n<p><code># Secrets for authentication using CHAP<br \/>\n# client        server  secret                  IP addresses<br \/>\nuser_name    PPTP    PpTpPaSs                85.233.x.x<\/code><\/p>\n<p>Create connection config file \/etc\/ppp\/peers\/SLC<\/p>\n<p><code>pty \"pptp 85.233.x.x --nolaunchpppd\"<br \/>\nname user_name<br \/>\nremotename PPTP<br \/>\nrequire-mppe-128<br \/>\nfile \/etc\/ppp\/options.pptp<\/code><\/p>\n<p>Create a script to auto-add route to the target host, to which you want to connect via VPN (172.24.10.13)  \/etc\/ppp\/ip-up.d\/routes <\/p>\n<p><code>#!\/bin\/sh<br \/>\n\/bin\/ip route add 172.24.10.13 dev ppp0<\/code><\/p>\n<p>Fire!<\/p>\n<p><code>pppd call SLC<\/code><\/p>\n<p>Disconnect:<\/p>\n<p><code>killall pppd<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>root@lexus:~# cat \/etc\/ppp\/chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses user_name PPTP PpTpPaSs 85.233.x.x Create connection config file \/etc\/ppp\/peers\/SLC pty &#8220;pptp 85.233.x.x &#8211;nolaunchpppd&#8221; name user_name remotename PPTP require-mppe-128 file \/etc\/ppp\/options.pptp Create a script to auto-add route to the target host, to which you want to connect via VPN (172.24.10.13) \/etc\/ppp\/ip-up.d\/routes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[242,7,241],"class_list":["post-1229","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-pppd","tag-pptp","tag-pptp-client"],"_links":{"self":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/1229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1229"}],"version-history":[{"count":2,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/1229\/revisions"}],"predecessor-version":[{"id":1236,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/1229\/revisions\/1236"}],"wp:attachment":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}