{"id":876,"date":"2020-11-24T11:57:13","date_gmt":"2020-11-24T03:57:13","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=876"},"modified":"2023-03-28T11:20:14","modified_gmt":"2023-03-28T03:20:14","slug":"centos7-openvpn-access-server-installation-latest-version","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2020\/11\/centos7-openvpn-access-server-installation-latest-version\/","title":{"rendered":"Centos7 OpenVPN Access Server \u5b89\u88c5\uff08\u6700\u65b0\u7248+\u7834\u89e3\u591a\u7528\u6237\u9650\u5236\uff09"},"content":{"rendered":"
\u7f51\u7edc\u5141\u8bb8\uff1a<\/em><\/strong>\uff1a\u5efa\u8bae\u5b89\u88c5OpenVPN Access Server\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5b98\u65b9\u7684OpenVPN Access Server\u8f6f\u4ef6\u5b58\u50a8\u5e93\u3002\u5b89\u88c5OpenVPN Access Server\u5ba2\u6237\u7aef\u5b89\u88c5\u5305\u548cOpenVPN Access Server\u8f6f\u4ef6\u5305\u672c\u8eab\u3002<\/p>\n yum -y install https:\/\/as-repository.openvpn.net\/as-repo-centos7.rpm<\/a> \u7f51\u7edc\u4e0d\u5141\u8bb8\uff1a<\/em><\/strong>\u5982\u679c\u7531\u4e8e\u67d0\u79cd\u539f\u56e0\u65e0\u6cd5\u901a\u8fc7\u5b98\u65b9\u7684\u8f6f\u4ef6\u5b58\u50a8\u5e93\u5b89\u88c5\uff0c\u53ef\u4ee5\u5c06\u8f6f\u4ef6\u5305\u4e0b\u8f7d\u4e0b\u6765\u540e\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n \u8f6f\u4ef6\u5305\u5728\u6587\u7ae0\u672b\u5c3e\u81ea\u53d6<\/u><\/p>\n rpm -ivh openvpn-as-2.5.2-CentOSrelease.x86_64.rpm<\/p>\n<\/blockquote>\n <\/p>\n \u5b89\u88c5\u5b8c\u6210\u540e\u4fee\u6539\u7ba1\u7406\u5bc6\u7801\uff1a<\/p>\n passwd openvpn<\/p>\n<\/blockquote>\n <\/p>\n \u7ba1\u7406\u7aefAdmin UI: https:\/\/64.115.4.23:943\/admin<\/a> <\/p>\n \u767b\u5f55\u540e\u53ef\u4ee5\u770b\u5230\u6700\u591a\u5141\u8bb8\u4e24\u4e2a\u7528\u6237\u8fde\u63a5\uff0c\u4e2a\u4eba\u4f7f\u7528\u8db3\u591f\u4e86\uff0c\u4e0d\u591f\u7684\u8bdd\u4e0b\u9762\u6709\u7834\u89e3\u65b9\u6cd5\u3002<\/p>\n<\/blockquote>\n <\/p>\n \u5ba2\u6237\u7aefClient UI: https:\/\/64.115.4.23:943\/<\/a><\/p>\n <\/p>\n 1\u3001 \u9996\u5148\u4e0b\u8f7d\u7834\u89e3\u6587\u4ef6\uff1apyovpn-2.0-py2.7.egg<\/p>\n <\/p>\n 2\u3001\u5c06\u7834\u89e3\u6587\u4ef6\u653e\u5230\/usr\/local\/openvpn_as\/lib\/python2.7\/site-packages\/<\/strong>\u76ee\u5f55\u4e0b\uff0c\u5907\u4efd\u6216\u8005\u8986\u76d6\u4e4b\u524d\u6587\u4ef6\u3002<\/p>\n <\/p>\n 3\u3001\u6267\u884c\u521d\u59cb\u5316\u64cd\u4f5c<\/p>\n \u8fdb\u5165\/usr\/local\/openvpn_as\/bin\u76ee\u5f55\u4e2d<\/strong><\/p>\n <\/p>\n \u76f4\u63a5\u6267\u884c<\/strong>.\/_ovpn-init<\/p>\n \u5982\u62a5\u9519\u627e\u4e0d\u5230\u76f8\u5173\u6a21\u5757\uff0c\u7f16\u8f91_ovpn-init<\/strong> \u6ce8\u89e3\u6389\u5373\u53ef\u3002<\/p>\n <\/p>\n \u7136\u540e\u518d\u6b21\u6267\u884c\u521d\u59cb\u5316\u811a\u672c<\/p>\n <\/p>\n <\/p>\n \u7136\u540e\u4e00\u8def\u56de\u8f66<\/strong>\u5373\u53ef\uff0c\u7b49\u5f85\u521d\u59cb\u5316\u914d\u7f6e\u5b8c\u6210\u3002<\/p>\n <\/p>\n \u91cd\u65b0\u767b\u5f55\u63a7\u5236\u53f0\uff0c\u67e5\u770b1024 \u4e2a\u3002<\/p>\n <\/p>\n \u5f15\u7528<\/a>\n
\nyum -y install openvpn-as<\/p>\n<\/blockquote>\n\n
\n
\n
\u7834\u89e3\u591a\u7528\u6237\u9650\u5236<\/h2>\n
cp pyovpn-2.0-py2.7.egg \/usr\/local\/openvpn_as\/lib\/python2.7\/site-packages\/<\/code><\/pre>\n
cd \/usr\/local\/openvpn_as\/bin<\/code><\/pre>\n
.\/ovpn-init<\/code><\/pre>\n
\n\u5b98\u7f51<\/a><\/p>\n\u4e0b\u8f7d\u5730\u5740 \u4e0b\u8f7d\u5730\u5740 \u4e0b\u8f7d\u5730\u5740 \u4e0b\u8f7d\u5730\u5740 \u4e0b\u8f7d\u5730\u5740 \u4e0b\u8f7d\u5730\u5740<\/h1>\n
\n