{"id":970,"date":"2011-12-30T21:11:35","date_gmt":"2011-12-30T13:11:35","guid":{"rendered":"http:\/\/pjq.me\/?p=970"},"modified":"2011-12-30T21:11:35","modified_gmt":"2011-12-30T13:11:35","slug":"gentoo%e5%ae%89%e8%a3%85pptpopenvpn","status":"publish","type":"post","link":"https:\/\/pjq.me\/?p=970","title":{"rendered":"Gentoo\u5b89\u88c5PPTP\/OpenVPN"},"content":{"rendered":"<p>\u5728Gentoo\u4e0a\u5b89\u88c5PPTP\/OpenVPN\u5ba2\u6237\u7aef<\/p>\n<p>\u9700\u8981\u5728kernel\u6253\u5f00\u76f8\u5173\u9009\u9879<br \/>\n1.PPTP\u53c2\u8003:<br \/>\nhttp:\/\/en.gentoo-wiki.com\/wiki\/PPTP<\/p>\n<pre lang=\"Bash\" line=\"1\">\n Device Drivers --->\n   Networking support --->\n\n\n   <*> PPP (point-to-point protocol) support\n   [ ] PPP multilink support (EXPERIMENTAL)\n   [*] PPP filtering\n\n\n   <M> PPP support for async serial ports\n   <M> PPP support for sync tty ports\n   <M> PPP Deflate compression\n   <M> PPP BSD-Compress compression\n   <M> Microsoft PPP compression\/encryption (MPPC\/MPPE)\n\n\n -*- Cryptographic API  --->\n\n\n   <M>   SHA224 and SHA256 digest algorithm\n   <M>   SHA384 and SHA512 digest algorithms\n\n\n   <M> Deflate compression algorithm\n<\/pre>\n<p>2.OpenVPN\u53c2\u8003:<br \/>\n<!--more--><br \/>\nhttp:\/\/en.gentoo-wiki.com\/wiki\/OpenVPN<\/p>\n<pre lang=\"Bash\" line=\"1\">\nDevice Drivers --->\n   Network device support --->\n[*]Network device support\n<M>   Universal TUN\/TAP device driver support  \/\/ This option must be enabled\n<\/pre>\n<p>3.\u540c\u65f6\u5347\u7ea7\u4e86\u4e00\u4e0bLinux Kernel\u52303.0.6<br \/>\n\u4f7f\u7528\u4e4b\u524d\u7684.config\u6587\u4ef6<\/p>\n<pre lang=\"Bash\" line=\"1\">cp config-2.6.39-r3  linux\/.config<\/pre>\n<p>Copy\u4e00\u4e0b\u4e4b\u524d\u7684bcm firmware\u7f51\u5361\u9a71\u52a8<\/p>\n<pre lang=\"Bash\" line=\"1\">\ncp linux-2.6.39-gentoo-r3\/firmware\/bcm43xx-0.fw* linux\/firmware\/\n<\/pre>\n<p>4.\u7f16\u8bd1\uff0c\u5b89\u88c5\u65b0\u5185\u6838<\/p>\n<pre lang=\"Bash\" line=\"1\">\nmake -j5\nmake modules_install\ncp arch\/x86\/boot\/bzImage \/boot\/kernel-3.0.6-gentoo\nmodule-rebuild rebuild\ngrub2-mkconfig -o \/boot\/grub2\/grub.cfg\n<\/pre>\n<p>5.\u4f7f\u7528PPTP\/OpenVPN<\/p>\n<pre lang=\"Bash\" line=\"1\">\npptpsetup --create pptpvpn --server 173.255.xx.xx --username xxxx --password xxxx\nopenvpn --config client.conf\n<\/pre>\n<p>Issues:<br \/>\n1.\u53d1\u73b0\u7528OpenVPN\u540e,\u65e0\u6cd5\u89e3\u6790ip<br \/>\n\u53ea\u597d\u6dfb\u52a0\u4e00\u4e2aDNS,\u6dfb\u52a0\u540e\u4e00\u5207\u6b63\u5e38:<\/p>\n<pre lang=\"Bash\" line=\"1\">\necho \"nameserver 8.8.8.8\" >>\/etc\/resolv.conf\n<\/pre>\n<p>2.\u5b89\u88c5NetworkManager<br \/>\nhttp:\/\/en.gentoo-wiki.com\/wiki\/NetworkManager<br \/>\n\u6dfb\u52a0\u5230\u9ed8\u8ba4\u542f\u52a8<\/p>\n<pre lang=\"Bash\" line=\"1\">\nrc-update add NetworkManager default\n<\/pre>\n<p>\u5b89\u88c5nm-applet\u65f6,\u53d1\u751f\u4e86\u7f16\u8bd1\u9519\u8bef,\u53c2\u8003\u6dfb\u52a0keywords:<br \/>\nhttp:\/\/forums.gentoo.org\/viewtopic-t-903500-start-0.html<\/p>\n<pre lang=\"Bash\" line=\"1\">\n  gentoo init.d # grep nm-applet \/etc\/portage\/package.keywords \n gnome-extra\/nm-applet ~x86\n<\/pre>\n<p>3.\u76f4\u63a5\u521b\u5efa\u4e00\u4e2aalias,\u65b9\u4fbf\u542f\u52a8OpenVPN<\/p>\n<pre lang=\"Bash\" line=\"1\">\nalias openvpn_start='cd \/etc\/openvpn&&sudo openvpn --config client.conf'\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Gentoo\u4e0a\u5b89\u88c5PPTP\/OpenVPN\u5ba2\u6237\u7aef \u9700\u8981\u5728kernel\u6253\u5f00\u76f8\u5173\u9009\u9879 1.PPTP\u53c2\u8003: http:\/\/en.gentoo-wiki.com\/wiki\/PPTP Device Drivers &#8212;> Networking support &#8212;> PPP (point-to-point protocol) support [ ] PPP multilink support (EXPERIMENTAL) [*] PPP filtering PPP support for async serial ports PPP support for sync tty ports PPP Deflate compression PPP BSD-Compress<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-970","post","type-post","status-publish","format-standard","hentry","category-9"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Gentoo\u5b89\u88c5PPTP\/OpenVPN - Jianqing&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pjq.me\/?p=970\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gentoo\u5b89\u88c5PPTP\/OpenVPN - Jianqing&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u5728Gentoo\u4e0a\u5b89\u88c5PPTP\/OpenVPN\u5ba2\u6237\u7aef \u9700\u8981\u5728kernel\u6253\u5f00\u76f8\u5173\u9009\u9879 1.PPTP\u53c2\u8003: http:\/\/en.gentoo-wiki.com\/wiki\/PPTP Device Drivers ---&gt; Networking support ---&gt; PPP (point-to-point protocol) support [ ] PPP multilink support (EXPERIMENTAL) [*] PPP filtering PPP support for async serial ports PPP support for sync tty ports PPP Deflate compression PPP BSD-Compress\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pjq.me\/?p=970\" \/>\n<meta property=\"og:site_name\" content=\"Jianqing&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2011-12-30T13:11:35+00:00\" \/>\n<meta name=\"author\" content=\"pengjianqing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pengjianqing\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/pjq.me\/?p=970#article\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/?p=970\"},\"author\":{\"name\":\"pengjianqing\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"headline\":\"Gentoo\u5b89\u88c5PPTP\/OpenVPN\",\"datePublished\":\"2011-12-30T13:11:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pjq.me\/?p=970\"},\"wordCount\":51,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"articleSection\":[\"\u751f\u6d3b\u968f\u7b14\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/pjq.me\/?p=970#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pjq.me\/?p=970\",\"url\":\"https:\/\/pjq.me\/?p=970\",\"name\":\"Gentoo\u5b89\u88c5PPTP\/OpenVPN - Jianqing&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/#website\"},\"datePublished\":\"2011-12-30T13:11:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/pjq.me\/?p=970#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pjq.me\/?p=970\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pjq.me\/?p=970#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pjq.me\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gentoo\u5b89\u88c5PPTP\/OpenVPN\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pjq.me\/#website\",\"url\":\"https:\/\/pjq.me\/\",\"name\":\"Jianqing&#039;s Blog\",\"description\":\"Thoughts and Future\",\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pjq.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\",\"name\":\"pengjianqing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"contentUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"width\":460,\"height\":752,\"caption\":\"pengjianqing\"},\"logo\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/pjq.me\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gentoo\u5b89\u88c5PPTP\/OpenVPN - Jianqing&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pjq.me\/?p=970","og_locale":"en_US","og_type":"article","og_title":"Gentoo\u5b89\u88c5PPTP\/OpenVPN - Jianqing&#039;s Blog","og_description":"\u5728Gentoo\u4e0a\u5b89\u88c5PPTP\/OpenVPN\u5ba2\u6237\u7aef \u9700\u8981\u5728kernel\u6253\u5f00\u76f8\u5173\u9009\u9879 1.PPTP\u53c2\u8003: http:\/\/en.gentoo-wiki.com\/wiki\/PPTP Device Drivers ---> Networking support ---> PPP (point-to-point protocol) support [ ] PPP multilink support (EXPERIMENTAL) [*] PPP filtering PPP support for async serial ports PPP support for sync tty ports PPP Deflate compression PPP BSD-Compress","og_url":"https:\/\/pjq.me\/?p=970","og_site_name":"Jianqing&#039;s Blog","article_published_time":"2011-12-30T13:11:35+00:00","author":"pengjianqing","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pengjianqing","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pjq.me\/?p=970#article","isPartOf":{"@id":"https:\/\/pjq.me\/?p=970"},"author":{"name":"pengjianqing","@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"headline":"Gentoo\u5b89\u88c5PPTP\/OpenVPN","datePublished":"2011-12-30T13:11:35+00:00","mainEntityOfPage":{"@id":"https:\/\/pjq.me\/?p=970"},"wordCount":51,"commentCount":0,"publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"articleSection":["\u751f\u6d3b\u968f\u7b14"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pjq.me\/?p=970#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pjq.me\/?p=970","url":"https:\/\/pjq.me\/?p=970","name":"Gentoo\u5b89\u88c5PPTP\/OpenVPN - Jianqing&#039;s Blog","isPartOf":{"@id":"https:\/\/pjq.me\/#website"},"datePublished":"2011-12-30T13:11:35+00:00","breadcrumb":{"@id":"https:\/\/pjq.me\/?p=970#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pjq.me\/?p=970"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pjq.me\/?p=970#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pjq.me\/"},{"@type":"ListItem","position":2,"name":"Gentoo\u5b89\u88c5PPTP\/OpenVPN"}]},{"@type":"WebSite","@id":"https:\/\/pjq.me\/#website","url":"https:\/\/pjq.me\/","name":"Jianqing&#039;s Blog","description":"Thoughts and Future","publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pjq.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60","name":"pengjianqing","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/","url":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","contentUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","width":460,"height":752,"caption":"pengjianqing"},"logo":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/"},"url":"https:\/\/pjq.me\/?author=1"}]}},"views":4999,"_links":{"self":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=970"}],"version-history":[{"count":0,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/970\/revisions"}],"wp:attachment":[{"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}