{"id":1409,"date":"2017-09-08T15:49:24","date_gmt":"2017-09-08T07:49:24","guid":{"rendered":"https:\/\/www.strongd.net\/?p=1409"},"modified":"2017-09-08T15:49:24","modified_gmt":"2017-09-08T07:49:24","slug":"l2tpipsec%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=1409","title":{"rendered":"L2TP\/IPSec\u4e00\u952e\u5b89\u88c5\u811a\u672c"},"content":{"rendered":"<p><strong>\u672c\u811a\u672c\u9002\u7528\u73af\u5883\uff1a<\/strong><br \/>\n\u7cfb\u7edf\u652f\u6301\uff1aCentOS6+\uff0cDebian7+\uff0cUbuntu12+<br \/>\n\u5185\u5b58\u8981\u6c42\uff1a\u2265128M<br \/>\n\u66f4\u65b0\u65e5\u671f\uff1a2017 \u5e74 05 \u6708 28 \u65e5<\/p>\n<p><strong>\u5173\u4e8e\u672c\u811a\u672c\uff1a<\/strong><br \/>\n\u540d\u8bcd\u89e3\u91ca\u5982\u4e0b<br \/>\nL2TP\uff08Layer 2 Tunneling Protocol\uff09<br \/>\nIPSec\uff08Internet Protocol Security\uff09<br \/>\nIKEv2 (Internet Key Exchange v2)<br \/>\n\u80fd\u5b9e\u73b0 IPsec \u7684\u76ee\u524d\u603b\u4f53\u4e0a\u6709 openswan\uff0clibreswan\uff0cstrongswan \u8fd93\u79cd\u3002<br \/>\nlibreswan \u662f\u57fa\u4e8e openswan \u7684 fork\uff0c\u6240\u4ee5\u73b0\u5728\u5404\u4e2a\u53d1\u884c\u7248\u57fa\u672c\u5df2\u7ecf\u770b\u4e0d\u5230 openswan \u7684\u8eab\u5f71\u4e86\u3002<br \/>\n\u5f53\u7136\u4e5f\u6709\u4f7f\u7528 strongswan \u7684\u3002<\/p>\n<p>\u4e4b\u6240\u4ee5\u8981\u66f4\u65b0 L2TP \u4e00\u952e\u5b89\u88c5\u811a\u672c\uff0c\u662f\u56e0\u4e3a\u968f\u7740\u5404\u4e2a Linux \u53d1\u884c\u7248\u4e0d\u65ad\u63a8\u9648\u51fa\u65b0\uff0c\u539f\u6709\u7684\u811a\u672c\u5df2\u7ecf\u4e0d\u9002\u5e94\u73b0\u5728\u7684\u9700\u6c42\u3002<br \/>\n\u672c\u811a\u672c\u901a\u8fc7\u7f16\u8bd1\u5b89\u88c5\u6700\u65b0\u7248 libreswan \u6765\u5b9e\u73b0 IPSec\uff08CentOS7 \u4e0b\u5219\u662f\u5168\u90e8 yum \u5b89\u88c5\uff09\uff0cyum \u6216 apt-get \u6765\u5b89\u88c5 xl2tpd\uff0c\u518d\u6839\u636e\u5404\u4e2a\u53d1\u884c\u7248\u7684\u4f7f\u7528\u65b9\u6cd5\u4e0d\u540c\uff0c\u90e8\u7f72\u9632\u706b\u5899\u89c4\u5219\u3002<\/p>\n<h3>\u5199\u5728\u524d\u9762\uff1a<\/h3>\n<p>\u57fa\u4e8e OpenVZ \u865a\u62df\u5316\u6280\u672f\u7684 VPS \u9700\u8981\u5f00\u542fTUN\/TAP\u624d\u80fd\u6b63\u5e38\u4f7f\u7528\uff0c\u8d2d\u4e70 VPS \u65f6\u8bf7\u5148\u54a8\u8be2\u670d\u52a1\u5546\u662f\u5426\u652f\u6301\u5f00\u542f TUN\/TAP\u3002<\/p>\n<p>OpenVZ \u865a\u62df\u7684 VPS \u9700\u8981\u7cfb\u7edf\u5185\u6838\u652f\u6301 IPSec \u624d\u884c\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6bcd\u670d\u52a1\u5668\u7684\u5185\u6838\u5982\u679c\u4e0d\u652f\u6301\u7684\u8bdd\u90a3\u5c31\u6ca1\u529e\u6cd5\uff0c\u53ea\u80fd\u6362 VPS\u3002<br \/>\n\u56e0\u6b64\uff0c\u4e00\u822c\u4e0d\u5efa\u8bae\u5728 OpenVZ \u7684 VPS \u4e0a\u5b89\u88c5\u672c\u811a\u672c\u3002\u811a\u672c\u5982\u679c\u68c0\u6d4b\u5230\u8be5 VPS \u4e3a OpenVZ \u67b6\u6784\uff0c\u4f1a\u51fa\u73b0\u8b66\u544a\u63d0\u9192\u3002<\/p>\n<p>\u5982\u4f55\u68c0\u6d4b\u662f\u5426\u652f\u6301TUN\u6a21\u5757\uff1f<br \/>\n\u6267\u884c\u547d\u4ee4\uff1a<br \/>\ncat \/dev\/net\/tun<br \/>\n\u5982\u679c\u8fd4\u56de\u4fe1\u606f\u4e3a\uff1acat: \/dev\/net\/tun: File descriptor in bad state \u8bf4\u660e\u6b63\u5e38<\/p>\n<p>\u5982\u4f55\u68c0\u6d4b\u662f\u5426\u652f\u6301ppp\u6a21\u5757\uff1f<br \/>\n\u6267\u884c\u547d\u4ee4\uff1a<br \/>\ncat \/dev\/ppp<br \/>\n\u5982\u679c\u8fd4\u56de\u4fe1\u606f\u4e3a\uff1acat: \/dev\/ppp: No such device or address \u8bf4\u660e\u6b63\u5e38<br \/>\n\u5f53\u7136\uff0c\u811a\u672c\u5728\u5b89\u88c5\u65f6\u4e5f\u4f1a\u6267\u884c\u68c0\u67e5\uff0c\u5982\u679c\u4e0d\u9002\u7528\u4e8e\u5b89\u88c5\uff0c\u811a\u672c\u4f1a\u4e88\u4ee5\u63d0\u793a\u3002<\/p>\n<h3>\u4f7f\u7528\u65b9\u6cd5\uff1a<\/h3>\n<p>root \u7528\u6237\u767b\u5f55\u540e\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\">wget --no-check-certificate https:\/\/raw.githubusercontent.com\/teddysun\/across\/master\/l2tp.sh\r\nchmod +x l2tp.sh\r\n.\/l2tp.sh<\/pre>\n<p>\u6267\u884c\u540e\uff0c\u4f1a\u6709\u5982\u4e0b\u4ea4\u4e92\u754c\u9762<\/p>\n<p><a href=\"https:\/\/teddysun.com\/wp-content\/uploads\/2016\/l2tp_1.png\"><img decoding=\"async\" class=\"left\" title=\"L2TP\u4e00\u952e\u5b89\u88c5\u811a\u672c\" src=\"https:\/\/teddysun.com\/wp-content\/uploads\/2016\/l2tp_1.png\" alt=\"L2TP\" \/><\/a><\/p>\n<p>Please input IP-Range:<br \/>\n(Default Range: 192.168.18):<br \/>\n\u8f93\u5165\u672c\u5730IP\u6bb5\u8303\u56f4\uff08\u672c\u5730\u7535\u8111\u8fde\u63a5\u5230VPS\u540e\u7ed9\u5206\u914d\u7684\u4e00\u4e2a\u672c\u5730IP\u5730\u5740\uff09\uff0c\u76f4\u63a5\u56de\u8f66\u610f\u5473\u7740\u8f93\u5165\u9ed8\u8ba4\u503c192.168.18<\/p>\n<p>Please input PSK:<br \/>\n(Default PSK: teddysun.com):<br \/>\nPSK\u610f\u4e3a\u9884\u5171\u4eab\u5bc6\u94a5\uff0c\u5373\u6307\u5b9a\u4e00\u4e2a\u5bc6\u94a5\u5c06\u6765\u5728\u8fde\u63a5\u65f6\u9700\u8981\u7528\u5230\uff0c\u76f4\u63a5\u56de\u8f66\u610f\u5473\u7740\u8f93\u5165\u9ed8\u8ba4\u503cteddysun.com<\/p>\n<p>Please input Username:<br \/>\n(Default Username: teddysun):<br \/>\nUsername\u610f\u4e3a\u7528\u6237\u540d\uff0c\u5373\u7b2c\u4e00\u4e2a\u9ed8\u8ba4\u7528\u6237\u3002\u76f4\u63a5\u56de\u8f66\u610f\u5473\u7740\u8f93\u5165\u9ed8\u8ba4\u503cteddysun<\/p>\n<p>Please input teddysun\u2019s password:<br \/>\n(Default Password: Q4SKhu2EXQ):<br \/>\n\u8f93\u5165\u7528\u6237\u7684\u5bc6\u7801\uff0c\u9ed8\u8ba4\u4f1a\u968f\u673a\u751f\u6210\u4e00\u4e2a10\u4f4d\u5305\u542b\u5927\u5c0f\u5199\u5b57\u6bcd\u548c\u6570\u5b57\u7684\u5bc6\u7801\uff0c\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u6307\u5b9a\u5bc6\u7801\u3002<\/p>\n<p>ServerIP:your_server_main_IP<br \/>\n\u663e\u793a\u4f60\u7684 VPS \u7684\u4e3b IP\uff08\u5982\u679c\u662f\u591a IP \u7684 VPS \u4e5f\u53ea\u663e\u793a\u4e00\u4e2a\uff09<\/p>\n<p>Server Local IP:192.168.18.1<br \/>\n\u663e\u793a\u4f60\u7684 VPS \u7684\u672c\u5730 IP\uff08\u9ed8\u8ba4\u5373\u53ef\uff09<\/p>\n<p>Client Remote IP Range:192.168.18.2-192.168.18.254<br \/>\n\u663e\u793a IP \u6bb5\u8303\u56f4<\/p>\n<p>PSK:teddysun.com<br \/>\n\u663e\u793a PSK<\/p>\n<p>Press any key to start\u2026or Press Ctrl+c to cancel<br \/>\n\u6309\u4e0b\u4efb\u610f\u6309\u952e\u7ee7\u7eed\uff0c\u5982\u679c\u60f3\u53d6\u6d88\u5b89\u88c5\uff0c\u8bf7\u6309Ctrl+c\u952e<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u811a\u672c\u4f1a\u6267\u884c ipsec verify \u547d\u4ee4\u5e76\u63d0\u793a\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint lang-bsh\">If there are no [FAILED] above, then you can connect to your\r\nL2TP VPN Server with the default Username\/Password is below:\r\n\r\nServerIP:your_server_IP\r\nPSK:your PSK\r\nUsername:your usename\r\nPassword:your password\r\n\r\nIf you want to modify user settings, please use command(s):\r\nl2tp -a (Add a user)\r\nl2tp -d (Delete a user)\r\nl2tp -l (List all users)\r\nl2tp -m (Modify a user password)\r\nWelcome to visit https:\/\/teddysun.com\/448.html\r\nEnjoy it!<\/pre>\n<p>\u5982\u679c\u4f60\u8981\u60f3\u5bf9\u7528\u6237\u8fdb\u884c\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<br \/>\nl2tp -a \u65b0\u589e\u7528\u6237<br \/>\nl2tp -d \u5220\u9664\u7528\u6237<br \/>\nl2tp -m \u4fee\u6539\u73b0\u6709\u7684\u7528\u6237\u7684\u5bc6\u7801<br \/>\nl2tp -l \u5217\u51fa\u6240\u6709\u7528\u6237\u540d\u548c\u5bc6\u7801<br \/>\nl2tp -h \u5217\u51fa\u5e2e\u52a9\u4fe1\u606f<\/p>\n<h3>\u5176\u4ed6\u4e8b\u9879\uff1a<\/h3>\n<p>1\u3001\u811a\u672c\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5df2\u81ea\u52a8\u542f\u52a8\u8fdb\u7a0b\uff0c\u5e76\u52a0\u5165\u4e86\u5f00\u673a\u81ea\u542f\u52a8\u3002<br \/>\n2\u3001\u811a\u672c\u4f1a\u6539\u5199 iptables \u6216 firewalld \u7684\u89c4\u5219\u3002<br \/>\n3\u3001\u811a\u672c\u5b89\u88c5\u65f6\uff0c\u4f1a\u5373\u65f6\u5c06\u5b89\u88c5\u65e5\u5fd7\u5199\u5230 \/root\/l2tp.log \u6587\u4ef6\u91cc\uff0c\u5982\u679c\u4f60\u5b89\u88c5\u5931\u8d25\uff0c\u53ef\u4ee5\u901a\u8fc7\u6b64\u6587\u4ef6\u6765\u5bfb\u627e\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<h3>\u4f7f\u7528\u547d\u4ee4\uff1a<\/h3>\n<p>ipsec status \uff08\u67e5\u770b IPSec \u8fd0\u884c\u72b6\u6001\uff09<br \/>\nipsec verify \uff08\u67e5\u770b IPSec \u68c0\u67e5\u7ed3\u679c\uff09<br \/>\n\/etc\/init.d\/ipsec start|stop|restart|status \uff08CentOS6 \u4e0b\u4f7f\u7528\uff09<br \/>\n\/etc\/init.d\/xl2tpd start|stop|restart \uff08CentOS6 \u4e0b\u4f7f\u7528\uff09<br \/>\nsystemctl start|stop|restart|status ipsec \uff08CentOS7 \u4e0b\u4f7f\u7528\uff09<br \/>\nsystemctl start|stop|restart xl2tpd \uff08CentOS7 \u4e0b\u4f7f\u7528\uff09<br \/>\nservice ipsec start|stop|restart|status \uff08Debian\/Ubuntu \u4e0b\u4f7f\u7528\uff09<br \/>\nservice xl2tpd start|stop|restart \uff08Debian\/Ubuntu \u4e0b\u4f7f\u7528\uff09<\/p>\n<h3>\u66f4\u65b0\u65e5\u5fd7<\/h3>\n<p>2017 \u5e74 05 \u6708 28 \u65e5\uff1a<br \/>\n\u5347\u7ea7 libreswan \u5230\u7248\u672c 3.20\u3002<br \/>\n\u4fee\u6b63 libreswan \u7684\u82e5\u5e72\u914d\u7f6e\u95ee\u9898\u3002<br \/>\n\u4fee\u6b63 xl2tpd \u7684\u7aef\u53e3\u76d1\u542c\u914d\u7f6e\u95ee\u9898\u3002<br \/>\n\u4fee\u6b63\u5728 CentOS 6 \u5bf9 libevent2 \u7684\u4f9d\u8d56\u95ee\u9898\uff0c\u6539\u4e3a yum \u5b89\u88c5 libevent2-devel\u3002<br \/>\n\u6d4b\u8bd5\u8868\u660e\uff0c\u5728\u5185\u7f51\u73af\u5883\u7684 VPS \u91cc\uff08\u5982AWS\uff0c IDCF\uff0cGCE\uff0c\u817e\u8baf\u4e91\uff0c\u963f\u91cc\u4e91\u7b49\uff09\u4e5f\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u4e86\u3002<\/p>\n<p>2017 \u5e74 02 \u6708 25 \u65e5\uff1a<br \/>\n\u5347\u7ea7 libreswan \u5230\u7248\u672c 3.19\u3002<\/p>\n<p>2016 \u5e74 09 \u6708 12 \u65e5\uff1a<br \/>\n\u4fee\u6b63\u4e86\u5728 CentOS 6 \u4e0b libevent2 \u4f9d\u8d56\u7684\u95ee\u9898\uff1b<br \/>\n\u65b0\u589e\u4e86\u4e00\u4e2a -m \u9009\u9879\uff0c\u7528\u4ee5\u4fee\u6539\u73b0\u6709\u7528\u6237\u7684\u5bc6\u7801\u3002<\/p>\n<p>2016 \u5e74 08 \u6708 13 \u65e5\uff1a<br \/>\n\u4fee\u6b63 Debian 8 \u4e0b\u7684 sd-daemon.h: No such file or directory \u95ee\u9898\uff0c\u662f\u7531\u4e8e\u7f3a\u5c11\u4f9d\u8d56\u5305 libsystemd-daemon-dev \u5bfc\u81f4\u7684\u3002<\/p>\n<p>2016 \u5e74 08 \u6708 05 \u65e5\uff1a<br \/>\n\u5347\u7ea7 libreswan \u5230\u7248\u672c 3.18\u3002<\/p>\n<p>2016 \u5e74 06 \u6708 10 \u65e5\uff1a<br \/>\n\u811a\u672c\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u65b0\u589e\u4e86\u51e0\u4e2a\u547d\u4ee4\uff0c\u4fbf\u4e8e\u64cd\u4f5c\u7528\u6237<br \/>\nl2tp -a \u65b0\u589e\u7528\u6237<br \/>\nl2tp -d \u5220\u9664\u7528\u6237<br \/>\nl2tp -l \u5217\u51fa\u6240\u6709\u7528\u6237<br \/>\nl2tp -h \u5217\u51fa\u5e2e\u52a9\u4fe1\u606f<\/p>\n<p>2016 \u5e74 04 \u6708 25 \u65e5\uff1a<br \/>\n4\u3001\u5728\u00a0<strong><a href=\"https:\/\/teddysun.com\/t\/vultr\" target=\"_blank\" rel=\"noopener\">Vultr \u7684 Debian 7<\/a><\/strong>\u7684\u7cfb\u7edf\u6a21\u677f\u4e0b\u5b89\u88c5\u65f6\uff0c\u8f6f\u4ef6\u5305 libcurl4-nss-dev \u4f1a\u51fa\u73b0\u4f9d\u8d56\u9519\u8bef\u3002\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre class=\"prettyprint\">The following packages have unmet dependencies:\r\nlibcurl4-nss-dev : Depends: libldap2-dev but it is not going to be installed\r\nDepends: librtmp-dev but it is not going to be installed<\/pre>\n<p>\u800c libldap2-dev \u548c librtmp-dev \u53c8\u4f9d\u8d56\u4e86\u5176\u4ed6\u51e0\u79cd\u8f6f\u4ef6\u5305\u3002\u603b\u4e4b\u6700\u540e\u7684\u4f9d\u8d56\u5173\u7cfb\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint\">libldap2-dev : Depends: libldap-2.4-2 (= 2.4.31-2+deb7u1) but 2.4.31+really2.4.40+dfsg-1+deb8u1~bpo70+1 is to be installed\r\nlibrtmp-dev : Depends: libgnutls-dev but it is not going to be installed\r\nlibgnutls-dev : Depends: libp11-kit-dev (&gt;= 0.4) but it is not going to be installed\r\nlibp11-kit-dev : Depends: libp11-kit0 (= 0.12-3) but 0.20.7-1~bpo70+1 is to be installed<\/pre>\n<p>\u90a3\u4e48\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u628a\u6700\u5e95\u5c42\u7684\u4f9d\u8d56\u5305 libp11-kit0 \u5148\u5378\u8f7d\u6389\uff0c\u7136\u540e\u518d\u5b89\u88c5 libcurl4-nss-dev \u5373\u53ef\u3002<\/p>\n<pre class=\"prettyprint lang-bsh\">apt-get -y remove libp11-kit0\r\napt-get -y --no-install-recommends install libcurl4-nss-dev wget<\/pre>\n<p>\u7136\u540e\u518d\u8fd0\u884c\u811a\u672c\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p>2016 \u5e74 04 \u6708 22 \u65e5\uff1a<br \/>\n\u4fee\u590d\u4e86\u5728 Ubuntu 16.04 \u4e0b\u56e0\u4e3a\u9ed8\u8ba4\u7f3a\u5c11 python \u547d\u4ee4\u800c\u5bfc\u81f4 ipsec verify \u7b49\u547d\u4ee4\u4e0d\u80fd\u7528\u7684\u95ee\u9898\u3002<\/p>\n<p>2016 \u5e74 04 \u6708 19 \u65e5\uff1a<br \/>\n\u4fee\u590d\u4e86\u5728 Debian 7 \u4e0b\u56e0\u4e3a libnss3 \u548c libnspr4 \u7684\u7248\u672c\u8fc7\u4f4e\u800c\u5bfc\u81f4\u7f16\u8bd1 libreswan \u5931\u8d25\u7684\u95ee\u9898\u3002<\/p>\n<p>2016 \u5e74 04 \u6708 18 \u65e5\uff1a<br \/>\n\u76ee\u524d\u5728 Debian 7 \u4e0a\u6d4b\u8bd5\u7684\u7ed3\u679c\uff0c\u56e0\u4e3a libnss3 \u548c libnspr4 \u7684\u7248\u672c\u8fc7\u4f4e\u800c\u5bfc\u81f4\u7f16\u8bd1 libreswan \u5931\u8d25\u3002\u4e34\u65f6\u89e3\u51b3\u529e\u6cd5\u662f dpkg \u5b89\u88c5 libnss3_3.17.2 \u548c libnspr4_4.10.7 \u7684 deb \u5305\u540e\u91cd\u8bd5\u3002<\/p>\n<p><strong>\u53c2\u8003\u94fe\u63a5\uff1a<\/strong><br \/>\n<a href=\"https:\/\/libreswan.org\/wiki\/3.14_on_Debian_Wheezy\" target=\"_blank\" rel=\"noopener\">https:\/\/libreswan.org\/wiki\/3.14_on_Debian_Wheezy<\/a><br \/>\n<a href=\"https:\/\/github.com\/libreswan\/libreswan\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/libreswan\/libreswan<\/a><\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/teddysun.com\/\">\u79cb\u6c34\u9038\u51b0<\/a>\u00a0\u00bb\u00a0<a href=\"https:\/\/teddysun.com\/448.html\">L2TP\/IPSec\u4e00\u952e\u5b89\u88c5\u811a\u672c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u811a\u672c\u9002\u7528\u73af\u5883\uff1a \u7cfb\u7edf\u652f\u6301\uff1aCentOS6+\uff0cDebian7+\uff0cUbuntu12+ \u5185\u5b58\u8981\u6c42\uff1a\u2265128M \u66f4\u65b0\u65e5\u671f\uff1a2017 \u5e74 05 \u6708 28 \u65e5 \u5173\u4e8e\u672c\u811a\u672c\uff1a \u540d\u8bcd\u89e3\u91ca\u5982\u4e0b L2TP\uff08Layer 2 Tunneling Protocol\uff09 IPSec\uff08Internet Protocol Security\uff09 IKEv2 (Internet Key Exchange v2) \u80fd\u5b9e\u73b0 IPsec \u7684\u76ee\u524d\u603b\u4f53\u4e0a\u6709 openswan\uff0clibreswan\uff0cstrongswan \u8fd93\u79cd\u3002 libreswan \u662f\u57fa\u4e8e openswan \u7684 fork\uff0c\u6240\u4ee5\u73b0\u5728\u5404\u4e2a\u53d1\u884c\u7248\u57fa\u672c\u5df2\u7ecf\u770b\u4e0d\u5230 openswan \u7684\u8eab\u5f71\u4e86\u3002 \u5f53\u7136\u4e5f\u6709\u4f7f\u7528 strongswan \u7684\u3002 \u4e4b\u6240\u4ee5\u8981\u66f4\u65b0 L2TP \u4e00\u952e\u5b89\u88c5\u811a\u672c\uff0c\u662f\u56e0\u4e3a\u968f\u7740\u5404\u4e2a Linux \u53d1\u884c\u7248\u4e0d\u65ad\u63a8\u9648\u51fa\u65b0\uff0c\u539f\u6709\u7684\u811a\u672c\u5df2\u7ecf\u4e0d\u9002\u5e94\u73b0\u5728\u7684\u9700\u6c42\u3002 \u672c\u811a\u672c\u901a\u8fc7\u7f16\u8bd1\u5b89\u88c5\u6700\u65b0\u7248 libreswan \u6765\u5b9e\u73b0 IPSec\uff08CentOS7 \u4e0b\u5219\u662f\u5168\u90e8 yum \u5b89\u88c5\uff09\uff0cyum \u6216 apt-get \u6765\u5b89\u88c5 xl2tpd\uff0c\u518d\u6839\u636e\u5404\u4e2a\u53d1\u884c\u7248\u7684\u4f7f\u7528\u65b9\u6cd5\u4e0d\u540c\uff0c\u90e8\u7f72\u9632\u706b\u5899\u89c4\u5219\u3002 \u5199\u5728\u524d\u9762\uff1a &hellip; <a href=\"https:\/\/www.strongd.net\/?p=1409\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">L2TP\/IPSec\u4e00\u952e\u5b89\u88c5\u811a\u672c<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[220,219,174],"class_list":["post-1409","post","type-post","status-publish","format-standard","hentry","category-linux","tag-ipsec","tag-l2tp","tag-vpn"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1409"}],"version-history":[{"count":1,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1409\/revisions"}],"predecessor-version":[{"id":1410,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1409\/revisions\/1410"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}