{"id":437,"date":"2013-08-07T03:39:28","date_gmt":"2013-08-07T03:39:28","guid":{"rendered":"https:\/\/shan.info\/new\/%e7%bb%99openvpn%e5%ae%a2%e6%88%b7%e5%88%86%e9%85%8d%e5%9b%ba%e5%ae%9aip\/"},"modified":"2013-08-07T03:39:28","modified_gmt":"2013-08-07T03:39:28","slug":"%e7%bb%99openvpn%e5%ae%a2%e6%88%b7%e5%88%86%e9%85%8d%e5%9b%ba%e5%ae%9aip","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/%e7%bb%99openvpn%e5%ae%a2%e6%88%b7%e5%88%86%e9%85%8d%e5%9b%ba%e5%ae%9aip\/","title":{"rendered":"\u7ed9openvpn\u5ba2\u6237\u5206\u914d\u56fa\u5b9aip"},"content":{"rendered":"<p><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">ifconfig-pool-persist ipp.txt<\/span><\/p>\n<p><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">ipp.txt \u5185 \u5c31\u662f\u56fa\u5b9a ip<\/span><\/p>\n<p><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">\u5728\/etc\/openvpn\/server.conf\u4e2d\u589e\u52a0<\/span><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">client-config-dir \/etc\/openvpn\/ccd<\/span><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">\u7136\u540e\u5728 \/etc\/openvpn\/ccd\u76ee\u5f55\u4e2d\u653e\u9488\u5bf9\u6bcf\u4e2a\u5ba2\u6237\u7aef\u7684\u4e2a\u6027\u5316\u914d\u7f6e\u6587\u4ef6\u3002<\/span><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">\u6587\u4ef6\u540d\u5c31\u7528\u5ba2\u6237\u7aef\u540d \u751f\u6210key\u7684\u65f6\u5019\u8f93\u5165\u7684 &#8220;Common Name&#8221; \u540d\u5b57<\/span><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">\u6bd4\u5982\u8981\u8bbe\u7f6e\u5ba2\u6237\u7aef liushiwei\u4e3a 192.168.2.24&nbsp;<\/span><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">\u53ea\u8981\u5728 \/etc\/openvpn\/ccd\/liushiwei\u6587\u4ef6\u4e2d\u5305\u542b\u4e00\u884c:<\/span><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">ifconfig-push 192.168.2.24 255.255.255.0<\/span><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><br style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\" \/><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">\u5c31\u53ef\u4ee5\u4e86<\/span><\/p>\n<p><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-family: song, Verdana; font-size: 14.44444465637207px; line-height: 22.39583396911621px;\"><code class=\"bash functions\" style=\"font-size: 12px; line-height: 13.375px; white-space: pre;\">sudo<\/code><code class=\"bash functions\" style=\"font-size: 12px; line-height: 13.375px; white-space: pre;\">chown<\/code><code class=\"bash plain\" style=\"font-size: 12px; line-height: 13.375px; white-space: pre;\">-R nobody:nogroup <\/code><code class=\"bash plain\" style=\"font-size: 12px; line-height: 13.375px; white-space: pre;\">\/etc\/openvpn\/ccd<\/code><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ifconfig-pool-persist ipp.txt ipp.txt \u5185 \u5c31\u662f\u56fa\u5b9a ip &nbsp; &nbsp; &nbsp; \u5728\/etc\/openvpn\/server.conf\u4e2d\u589e\u52a0client-config-dir \/etc\/openvpn\/ccd\u7136\u540e\u5728 \/etc\/openvpn\/ccd\u76ee\u5f55\u4e2d\u653e\u9488\u5bf9\u6bcf\u4e2a\u5ba2\u6237\u7aef\u7684\u4e2a\u6027\u5316\u914d\u7f6e\u6587\u4ef6\u3002\u6587\u4ef6\u540d\u5c31\u7528\u5ba2\u6237\u7aef\u540d \u751f\u6210key\u7684\u65f6\u5019\u8f93\u5165\u7684 &#8220;Common Name&#8221; \u540d\u5b57\u6bd4\u5982\u8981\u8bbe\u7f6e\u5ba2\u6237\u7aef liushiwei\u4e3a 192.168.2.24&nbsp;\u53ea\u8981\u5728 \/etc\/openvpn\/ccd\/liushiwei\u6587\u4ef6\u4e2d\u5305\u542b\u4e00\u884c:ifconfig-push 192.168.2.24 255.255.255.0\u5c31\u53ef\u4ee5\u4e86 &nbsp; sudochown-R nobody:nogroup \/etc\/openvpn\/ccd<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-openvpn"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}