{"id":24349,"date":"2025-04-19T09:56:24","date_gmt":"2025-04-19T01:56:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/24349.html"},"modified":"2025-04-19T09:56:24","modified_gmt":"2025-04-19T01:56:24","slug":"docker%e6%90%ad%e5%bb%ba-openvpn%e5%ae%9e%e7%8e%b0%e8%bf%9e%e6%8e%a5%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%86%85%e7%bd%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/24349.html","title":{"rendered":"docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51"},"content":{"rendered":"<h3>\u524d\u8a00<\/h3>\n<p>\u7533\u660e&#xff1a;\u672c\u6587\u57fa\u4e8edocker&#043;kylemanna\/openvpn:2.4\u5b9e\u73b0\u670d\u52a1\u5668\u642d\u5efaopenvpn\u670d\u52a1&#xff0c;\u751f\u6210openvpn\u5ba2\u6237\u7aef\u3002\u672c\u6b21\u53d1\u6587\u4ec5\u4f9b\u5b66\u4e60\u8ba8\u8bba\u4f7f\u7528&#xff0c;\u4e0d\u4ea7\u751f\u4efb\u4f55\u5546\u4e1a\u4ef7\u503c\u3002<\/p>\n<h3>\u80cc\u666f<\/h3>\n<p>\u4e0d\u77e5\u9053\u8001\u94c1\u4eec\u81ea\u5df1\u641e\u4e86\u670d\u52a1\u5668&#xff0c;\u5728\u670d\u52a1\u5668\u4e0a\u642d\u5efa\u4e86mysql\u3001redis\u7b49\u7b49\u4e2d\u95f4\u4ef6\u7684\u65f6\u5019&#xff0c;\u6709\u4e48\u6709\u8fd9\u4e48\u4e00\u79cd\u82e6\u607c&#xff0c;\u5c31\u662f\u5728\u5bb6\u3001\u5728\u661f\u5df4\u514b\u3001\u5728\u56fe\u4e66\u9986\u3001\u5728\u516c\u53f8\u90fd\u662f\u4e0d\u540c\u7684 ip&#xff0c;\u7136\u540e\u9700\u8981\u5230\u670d\u52a1\u5668\u4e0a\u9762\u4e00\u76f4\u914d\u7f6e\u9632\u706b\u5899&#xff0c;\u4eca\u5929\u5c31\u5f7b\u5e95\u4f7f\u7528\u6211\u4eec\u7684 openvpn \u89e3\u51b3\u6389\u3002<\/p>\n<h3>\u5b89\u88c5<\/h3>\n<h4>\u5f00\u59cb\u642d\u5efa openvpn \u670d\u52a1\u7aef<\/h4>\n<ul>\n<li>\u751f\u6210\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<p>mkdir <span class=\"token operator\">&#8211;<\/span>p <span class=\"token operator\">\/<\/span>data<span class=\"token operator\">\/<\/span>openvpn<\/p>\n<p>docker run <span class=\"token operator\">&#8211;<\/span>v <span class=\"token operator\">\/<\/span>data<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn <span class=\"token operator\">&#8212;<\/span>rm kylemanna<span class=\"token operator\">\/<\/span>openvpn ovpn_genconfig <span class=\"token operator\">&#8211;<\/span>u udp<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span><span class=\"token operator\">\/<\/span>ip<\/p>\n<p>\u6b64\u5904\u7684 ip \u662f\u670d\u52a1\u5668\u7684\u5916\u7f51 ip&#xff0c;\u5341\u5206\u5efa\u8bae\u4f7f\u7528 udp,\u56e0\u4e3a\u7f51\u901f\u95ee\u9898&#xff01;<\/p>\n<ul>\n<li>\u521d\u59cb\u5316\u5bc6\u94a5\u6587\u4ef6<\/li>\n<\/ul>\n<p>docker run <span class=\"token operator\">&#8211;<\/span>v <span class=\"token operator\">\/<\/span>data<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn <span class=\"token operator\">&#8212;<\/span>rm <span class=\"token operator\">&#8211;<\/span>it kylemanna<span class=\"token operator\">\/<\/span>openvpn ovpn_initpki<\/p>\n<p>\u6267\u884c\u4e0a\u9762\u4ee3\u7801\u671f\u95f4\u9700\u8981\u6ce8\u610f 1.\u8f93\u5165\u5bc6\u94a5\u5bc6\u7801\u3001\u786e\u8ba4\u5bc6\u94a5\u5bc6\u7801 2.\u8f93\u5165 ca \u5bc6\u7801\u66f4\u65b0\u5bc6\u94a5\u5e93\u4ee5\u53ca\u751f\u6210crl\u6587\u4ef6<\/p>\n<ul>\n<li>\u751f\u6210\u5ba2\u6237\u7aef\u8bc1\u4e66<\/li>\n<\/ul>\n<p>docker run <span class=\"token operator\">&#8211;<\/span>v <span class=\"token operator\">\/<\/span>data<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn <span class=\"token operator\">&#8212;<\/span>rm <span class=\"token operator\">&#8211;<\/span>it kylemanna<span class=\"token operator\">\/<\/span>openvpn easyrsa build<span class=\"token operator\">&#8211;<\/span>client<span class=\"token operator\">&#8211;<\/span>full xx<span class=\"token operator\">&#8211;<\/span>openvpn<span class=\"token operator\">&#8211;<\/span>client nopass<\/p>\n<p>\u5176\u4e2d\u53ef\u4fee\u6539 xx-openvpn-client \u540d\u79f0&#xff0c;\u751f\u6210\u7684\u8fc7\u7a0b\u9700\u8981\u8f93\u5165\u7b2c\u4e00\u6b65\u7684\u5bc6\u94a5\u5bc6\u7801<\/p>\n<ul>\n<li>\u5bfc\u51fa\u5ba2\u6237\u7aef\u7684\u914d\u7f6e\u6587\u4ef6xx-openvpn-client.ovpn<\/li>\n<\/ul>\n<p>docker run <span class=\"token operator\">&#8211;<\/span>v <span class=\"token operator\">\/<\/span>data<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn <span class=\"token operator\">&#8212;<\/span>rm kylemanna<span class=\"token operator\">\/<\/span>openvpn ovpn_getclient xx<span class=\"token operator\">&#8211;<\/span>openvpn<span class=\"token operator\">&#8211;<\/span>client <span class=\"token operator\">&gt;<\/span> <span class=\"token operator\">\/<\/span>data<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">\/<\/span>xx<span class=\"token operator\">&#8211;<\/span>openvpn<span class=\"token operator\">&#8211;<\/span>client<span class=\"token punctuation\">.<\/span>ovpn<\/p>\n<p>\u6ce8\u610fxx-openvpn-client\u540d\u79f0\u9700\u4e0e\u7b2c\u4e09\u6b65\u751f\u6210\u65f6\u547d\u540d\u4e00\u81f4&#xff0c;\u6b64\u65f6\u751f\u6210\u7684\u914d\u7f6e\u6587\u4ef6xx-openvpn-client.ovpn\u5373\u53ef\u7528\u4e8e\u5ba2\u6237\u7aef\u8fde\u63a5,\u7136\u540e\u6211\u4eec\u5c06\u5176\u4ece\u670d\u52a1\u5668 copy \u5230\u672c\u5730\u673a\u5668<\/p>\n<ul>\n<li>\u542f\u52a8openvpn \u670d\u52a1\u5668<\/li>\n<\/ul>\n<p>\u4fee\u6539\u4e0b\u670d\u52a1\u5668\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>vim <span class=\"token operator\">\/<\/span>data<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">\/<\/span>openvpn<span class=\"token punctuation\">.<\/span>conf <\/p>\n<p>server <span class=\"token number\">192.168<\/span><span class=\"token number\">.255<\/span><span class=\"token number\">.0<\/span> <span class=\"token number\">255.255<\/span><span class=\"token number\">.255<\/span><span class=\"token number\">.0<\/span><br \/>\nverb <span class=\"token number\">3<\/span><br \/>\nkey <span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">\/<\/span>pki<span class=\"token operator\">\/<\/span><span class=\"token keyword\">private<\/span><span class=\"token operator\">\/<\/span><span class=\"token number\">124.220<\/span><span class=\"token number\">.207<\/span><span class=\"token number\">.190<\/span><span class=\"token punctuation\">.<\/span>key<br \/>\nca <span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">\/<\/span>pki<span class=\"token operator\">\/<\/span>ca<span class=\"token punctuation\">.<\/span>crt<br \/>\ncert <span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">\/<\/span>pki<span class=\"token operator\">\/<\/span>issued<span class=\"token operator\">\/<\/span><span class=\"token number\">124.220<\/span><span class=\"token number\">.207<\/span><span class=\"token number\">.190<\/span><span class=\"token punctuation\">.<\/span>crt<br \/>\ndh <span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">\/<\/span>pki<span class=\"token operator\">\/<\/span>dh<span class=\"token punctuation\">.<\/span>pem<br \/>\ntls<span class=\"token operator\">&#8211;<\/span>auth <span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">\/<\/span>pki<span class=\"token operator\">\/<\/span>ta<span class=\"token punctuation\">.<\/span>key<br \/>\nkey<span class=\"token operator\">&#8211;<\/span>direction <span class=\"token number\">0<\/span><br \/>\nkeepalive <span class=\"token number\">10<\/span> <span class=\"token number\">60<\/span><br \/>\nmax<span class=\"token operator\">&#8211;<\/span>clients <span class=\"token number\">100<\/span><br \/>\npersist<span class=\"token operator\">&#8211;<\/span>key<br \/>\npersist<span class=\"token operator\">&#8211;<\/span>tun<\/p>\n<p>proto udp<br \/>\n# <span class=\"token class-name\">Rely<\/span> on <span class=\"token class-name\">Docker<\/span> <span class=\"token keyword\">to<\/span> <span class=\"token keyword\">do<\/span> port mapping<span class=\"token punctuation\">,<\/span> internally always <span class=\"token number\">1194<\/span><br \/>\nport <span class=\"token number\">1194<\/span><br \/>\ndev tun0<br \/>\nstatus <span class=\"token operator\">\/<\/span>tmp<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">&#8211;<\/span>status<span class=\"token punctuation\">.<\/span>log<\/p>\n<p>user nobody<br \/>\ngroup nogroup<br \/>\ncomp<span class=\"token operator\">&#8211;<\/span>lzo no<br \/>\nsndbuf <span class=\"token number\">0<\/span><br \/>\nrcvbuf <span class=\"token number\">0<\/span><\/p>\n<p>### <span class=\"token class-name\">Route<\/span> <span class=\"token class-name\">Configurations<\/span> <span class=\"token class-name\">Below<\/span><br \/>\nroute <span class=\"token number\">192.168<\/span><span class=\"token number\">.254<\/span><span class=\"token number\">.0<\/span> <span class=\"token number\">255.255<\/span><span class=\"token number\">.255<\/span><span class=\"token number\">.0<\/span><\/p>\n<p>### <span class=\"token class-name\">Push<\/span> <span class=\"token class-name\">Configurations<\/span> <span class=\"token class-name\">Below<\/span><br \/>\npush <span class=\"token string\">&#034;block-outside-dns&#034;<\/span><br \/>\npush <span class=\"token string\">&#034;dhcp-option DNS 223.5.5.5&#034;<\/span><br \/>\npush <span class=\"token string\">&#034;dhcp-option DNS 8.8.8.8&#034;<\/span><br \/>\npush <span class=\"token string\">&#034;dhcp-option DNS 8.8.4.4&#034;<\/span><br \/>\npush <span class=\"token string\">&#034;comp-lzo no&#034;<\/span><\/p>\n<p>docker run  <span class=\"token operator\">&#8211;<\/span>v <span class=\"token operator\">\/<\/span>data<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span>etc<span class=\"token operator\">\/<\/span>openvpn \\\\<br \/>\n<span class=\"token operator\">&#8211;<\/span>d <span class=\"token operator\">&#8211;<\/span>p <span class=\"token number\">1194<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">1194<\/span><span class=\"token operator\">\/<\/span>udp <span class=\"token operator\">&#8212;<\/span>restart<span class=\"token operator\">&#061;<\/span>always <span class=\"token operator\">&#8212;<\/span>name openvpn \\\\<br \/>\n<span class=\"token operator\">&#8212;<\/span>cap<span class=\"token operator\">&#8211;<\/span>add<span class=\"token operator\">&#061;<\/span>NET_ADMIN <span class=\"token operator\">&#8212;<\/span>sysctl net<span class=\"token punctuation\">.<\/span>ipv6<span class=\"token punctuation\">.<\/span>conf<span class=\"token punctuation\">.<\/span>all<span class=\"token punctuation\">.<\/span>disable_ipv6<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span> \\\\<br \/>\n<span class=\"token operator\">&#8212;<\/span>sysctl net<span class=\"token punctuation\">.<\/span>ipv6<span class=\"token punctuation\">.<\/span>conf<span class=\"token punctuation\">.<\/span><span class=\"token keyword\">default<\/span><span class=\"token punctuation\">.<\/span>forwarding<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span> <span class=\"token operator\">&#8212;<\/span>sysctl net<span class=\"token punctuation\">.<\/span>ipv6<span class=\"token punctuation\">.<\/span>conf<span class=\"token punctuation\">.<\/span>all<span class=\"token punctuation\">.<\/span>forwarding<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span>  \\\\<br \/>\nkylemanna<span class=\"token operator\">\/<\/span>openvpn<span class=\"token operator\">:<\/span><span class=\"token number\">2.4<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u8fd9\u65f6\u5019\u6211\u4eec\u9700\u8981\u53bb\u5230\u670d\u52a1\u5668\u7684\u9632\u706b\u5899\u5c06 1194\u7aef\u53e3\u5f00\u901a <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015622-680302c6be5de.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>openvpn \u5ba2\u6237\u7aef<\/h4>\n<p>\u4f7f\u7528\u7f16\u8f91\u5668\u6253\u5f00\u4e0b\u8f7d\u4e0b\u6765\u7684xx-openvpn-client.ovpn<\/p>\n<p>client<br \/>\nnobind<br \/>\ndev tun<br \/>\nremote<span class=\"token operator\">&#8211;<\/span>cert<span class=\"token operator\">&#8211;<\/span>tls server<\/p>\n<p>remote <span class=\"token number\">124.220<\/span><span class=\"token number\">.207<\/span><span class=\"token number\">.190<\/span> <span class=\"token number\">1194<\/span> udp<br \/>\n# remote ip port udp<\/p>\n<p>\u6ce8\u610f&#xff1a;openvpn client\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2aopenvpn server\u8282\u70b9&#xff0c;\u6bcf\u4e2aremote\u5c31\u662f\u4e00\u4e2aopenvpn server\u8282\u70b9&#xff0c;\u4e00\u822c\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u968f\u673a\u6216\u987a\u5e8f\u7684\u65b9\u5f0f\u3002\u5f53\u67d0\u4e2a\u8282\u70b9\u4e0d\u884c\u65f6&#xff0c;\u5ba2\u6237\u7aef\u4f1a\u6309\u7167\u76f8\u5e94\u7684\u65b9\u5f0f\u8fde\u63a5\u5176\u5b83\u8282\u70b9\u3002\u53e6\u5916openvpn-client\u9ed8\u8ba4\u662f\u5168\u5c40\u4ee3\u7801\u7684\u65b9\u5f0f&#xff0c;\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e2dxx-openvpn-client.ovpn\u4e2d\u914d\u7f6eroute\u6765\u5b9e\u73b0\u5c40\u90e8\u4ee3\u7406\u3002<\/p>\n<p>\u5047\u5982\u8981\u7ed9\u5c0f\u4f19\u4f34\u4eec\u5ba2\u6237\u7aef\u7684\u65f6\u5019&#xff0c;\u5f3a\u70c8\u5efa\u8bae\u6267\u884c \u751f\u6210\u5ba2\u6237\u7aef\u8bc1\u4e66 \u5bfc\u51fa\u5ba2\u6237\u7aef\u7684\u914d\u7f6e\u6587\u4ef6qq-openvpn-client.ovpn \u7136\u540e\u53d1\u9001\u7ed9\u5c0f\u4f19\u4f34&#xff0c;\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\u6253\u5f00\u7684\u65f6\u5019\u6d41\u91cf\u5728\u4e0d\u540c\u5ba2\u6237\u7aef\u4e0a\u4f3c\u4e4e\u4f1a\u597d\u5f88\u591a&#xff0c;\u4e0d\u81f3\u4e8e\u5361\u7206&#xff01;<\/p>\n<ul>\n<li>\u6700\u540e\u4e0b\u8f7d\u4e0b\u6765\u7684\u5ba2\u6237\u7aef\u5c31\u53ef\u4ee5\u76f4\u63a5\u6253\u5f00Add \u4e0b\u5c31\u53ef\u4ee5\u6109\u5feb\u7684\u8fde\u63a5\u4e86&#xff0c;\u7136\u540e\u6240\u6709\u9879\u76ee\u4e2d\u672c\u6765\u9700\u8981\u8fde\u63a5\u5916\u7f51 ip \u7684\u5730\u65b9\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539\u6210 \u5185\u7f51 ip,\u4f8b\u5982 redis\u3001mysql \u7b49\u7b49\u8fd9\u4e9b\u8fde\u63a5 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015622-680302c6ed574.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<p>\u8bb0\u5f55\u6bcf\u4e00\u6b21\u7684\u6280\u672f\u70b9\u6ef4&#xff0c;\u53ea\u4e3a\u5206\u4eab&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.7k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u4f7f\u7528 docker \u642d\u5efa Openvpn\uff0c\u5b9e\u73b0\u672c\u5730\u8fde\u63a5\u670d\u52a1\u5668\u5185\u7f51\u3002\u5f7b\u5e95\u544a\u522b\u52a8\u6001 ip \u7684\u9632\u706b\u5899\u914d\u7f6e\u3002<\/p>\n","protected":false},"author":2,"featured_media":24347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,1875,1876,121,44],"topic":[],"class_list":{"0":"post-24349","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-docker","10":"tag-openvino","11":"tag-121","12":"tag-44"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/24349.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.7k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u4f7f\u7528 docker \u642d\u5efa Openvpn\uff0c\u5b9e\u73b0\u672c\u5730\u8fde\u63a5\u670d\u52a1\u5668\u5185\u7f51\u3002\u5f7b\u5e95\u544a\u522b\u52a8\u6001 ip \u7684\u9632\u706b\u5899\u914d\u7f6e\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/24349.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T01:56:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015622-680302c6be5de.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24349.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/24349.html\",\"name\":\"docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T01:56:24+00:00\",\"dateModified\":\"2025-04-19T01:56:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/24349.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/24349.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24349.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/24349.html","og_locale":"zh_CN","og_type":"article","og_title":"docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.7k\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u4f7f\u7528 docker \u642d\u5efa Openvpn\uff0c\u5b9e\u73b0\u672c\u5730\u8fde\u63a5\u670d\u52a1\u5668\u5185\u7f51\u3002\u5f7b\u5e95\u544a\u522b\u52a8\u6001 ip \u7684\u9632\u706b\u5899\u914d\u7f6e\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/24349.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T01:56:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419015622-680302c6be5de.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/24349.html","url":"https:\/\/www.wsisp.com\/helps\/24349.html","name":"docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T01:56:24+00:00","dateModified":"2025-04-19T01:56:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/24349.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/24349.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/24349.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"docker\u642d\u5efa Openvpn\u5b9e\u73b0\u8fde\u63a5\u670d\u52a1\u5668\u7684\u5185\u7f51"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=24349"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24349\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/24347"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=24349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=24349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=24349"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=24349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}