{"id":124,"date":"2011-05-03T09:38:33","date_gmt":"2011-05-03T09:38:33","guid":{"rendered":"https:\/\/shan.info\/new\/centos%e5%ae%89%e8%a3%85l2tp-ipsec-%e4%b8%8e%e7%ae%80%e5%8d%95%e6%95%85%e9%9a%9c%e5%a4%84%e7%90%86\/"},"modified":"2011-05-03T09:38:33","modified_gmt":"2011-05-03T09:38:33","slug":"centos%e5%ae%89%e8%a3%85l2tp-ipsec-%e4%b8%8e%e7%ae%80%e5%8d%95%e6%95%85%e9%9a%9c%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/centos%e5%ae%89%e8%a3%85l2tp-ipsec-%e4%b8%8e%e7%ae%80%e5%8d%95%e6%95%85%e9%9a%9c%e5%a4%84%e7%90%86\/","title":{"rendered":"Centos\u5b89\u88c5L2TP\/IPSEC \u4e0e\u7b80\u5355\u6545\u969c\u5904\u7406"},"content":{"rendered":"<p>\u8f6c\u8d34\u81ea<\/p>\n<p><a href=\"http:\/\/www.vpsyou.com\/centos-install-l2tpipsec-and-simple-troubleshooting\/\">http:\/\/www.vpsyou.com\/centos-install-l2tpipsec-and-simple-troubleshooting\/<\/a><\/p>\n<p>\u00a0<\/p>\n<p><!--more--><\/p>\n<p>\u00a0<\/p>\n<p>\u8f6c\u8d34\u81ea<\/p>\n<p><a href=\"http:\/\/www.vpsyou.com\/centos-install-l2tpipsec-and-simple-troubleshooting\/\">http:\/\/www.vpsyou.com\/centos-install-l2tpipsec-and-simple-troubleshooting\/<\/a><\/p>\n<p>\u00a0<\/p>\n<h1>\n<p>\u8bf4\u5b9e\u8bdd\uff0c\u6298\u817eL2TP\/IPSEC\u662f\u6700\u96be\u53d7\u7684\u3002\u4e0d\u50cfPPTP\u6709\u9ad8\u4eba\u5199\u597d\u7684\u4e00\u952e\u5b89\u88c5\u5305\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u3002\u800c\u5728\u8fc7\u7a0b\u4f1a\u51fa\u73b0\u5404\u79cd\u5404\u6837\u7684\u72b6\u51b5\uff0c\u6709\u7684\u751a\u81f3 \u6d89\u53ca\u5230\u5185\u6838\u3002\u672c\u6587\u4e2d\u63d0\u5230\u7684\u65b9\u6cd5\u4e0e\u6b65\u9aa4\u662f\u6211\u53c2\u9605\u8bb8\u591a\u6559\u7a0b\u548c\u6587\u6863\u540e\u4eb2\u81ea\u5b9e\u8df5\u64cd\u4f5c\u53ef\u884c\u7684\u3002\u82e5\u8bfb\u8005\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u95ee\u9898\uff0c\u8bf7\u7559\u610f\u6587\u7ae0\u6700\u540e\u7684\u7b80\u5355\u6545\u969c\u5904\u7406<\/p>\n<p>\u5f00\u59cb\uff1a<br \/> \u670d\u52a1\u5668\u73af\u5883 \uff1aCentos 5.5 64\u4f4d<\/p>\n<p>\u5148\u66f4\u65b0\u8f6f\u4ef6\u6e90<\/p>\n<p>32\u4f4d<br \/> rpm -Uvh <a href=\"http:\/\/download.fedora.redhat.com\/pub\/epel\/5\/i386\/epel-release-5-3.noarch.rpm\">http:\/\/download.fedora.redhat.com\/pub\/epel\/5\/i386\/epel-release-5-3.noarch.rpm<\/a><\/p>\n<p>64\u4f4d<br \/> rpm -Uvh <a href=\"http:\/\/download.fedora.redhat.com\/pub\/epel\/5\/x86_64\/epel-release-5-3.noarch.rpm\">http:\/\/download.fedora.redhat.com\/pub\/epel\/5\/x86_64\/epel-release-5-3.noarch.rpm<\/a><\/p>\n<p><span id=\"more-507\"> <\/span><\/p>\n<\/h1>\n<h2>\u4e00\uff1a\u5b89\u88c5OPENSWAN<\/h2>\n<h3>1.\u8fd9\u91cc\u662f\u4e0b\u8f7d\u5230\u673a\u5668\u4e0a\u81ea\u5df1\u7f16\u8bd1\uff0c\u800c\u76f4\u63a5\u4e0d\u7528rpm\u5305\u3002\u53ef\u80fd\u6709\u4e9b\u6559\u7a0b\u5efa\u8bae\u7528rpm\u5305\uff0c\u4f46\u5b9e\u9645\u4e0a\u8fd8\u662f\u4eb2\u81ea\u5b9e\u9a8c\u770b\u770b\u6bd4\u8f83\u6709\u628a\u63e1\u3002<\/h3>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5071\">\n<td id=\"p507code1\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">yum install gmp<span style=\"color: #339933;\">-<\/span>devel gawk flex bison wget lsof  <span style=\"color: #666666; font-style: italic;\">\/\/\u5b89\u88c5\u7f16\u8bd1\u7528\u7684\u5305\uff0c\u540c\u65f6\u4e5f\u4f1a\u628alsof\u5b89\u88c5\u4e0a\uff0c\u7528\u4e8e\u6700\u540e\u7aef\u53e3\u68c0\u6d4b<\/span>\r\nwget http<span style=\"color: #339933;\">:<\/span><span style=\"color: #666666; font-style: italic;\">\/\/www.openswan.org\/download\/openswan-2.6.28.tar.gz  \/\/\u4e0b\u8f7dOPENSWAN<\/span>\r\ntar zxvf openswan<span style=\"color: #339933;\">-<\/span>2<span style=\"color: #339933;\">.<\/span>6<span style=\"color: #339933;\">.<\/span>28<span style=\"color: #339933;\">.<\/span>tar<span style=\"color: #339933;\">.<\/span>gz  <span style=\"color: #666666; font-style: italic;\">\/\/\u89e3\u538b<\/span>\r\ncd  openswan<span style=\"color: #339933;\">-<\/span>2<span style=\"color: #339933;\">.<\/span>6<span style=\"color: #339933;\">.<\/span>28<span style=\"color: #339933;\">.<\/span>tar<span style=\"color: #339933;\">.<\/span>gz\r\nmake programs  <span style=\"color: #666666; font-style: italic;\">\/\/\u7f16\u8bd1<\/span>\r\nmake install  <span style=\"color: #666666; font-style: italic;\">\/\/\u5b89\u88c5<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>2.\u4fee\u6539\/etc\/ipsec.conf\u6587\u4ef6<\/h3>\n<p>\u5982\u679c\u4f60\u89c9\u5f97\u7528\u547d\u4ee4\u884c\u7f16\u8f91\u6bd4\u8f83\u9ebb\u70e6\uff0c\u6211\u5efa\u8bae\u7528WinSCP \u628a\u6587\u4ef6\u4e0b\u8f7d\u4e0b\u6765\uff0c\u7528Notepad++\u7f16\u8f91\u540e\u4e0a\u4f20\u8986\u76d6 ^_^<br \/> \u628aipsec.conf\u4fee\u6539\u6210\u8fd9\u6837<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5072\">\n<td id=\"p507code2\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">version <span style=\"color: #800080;\">2.0<\/span>\r\nconfig setup\r\n  nat_traversal<span style=\"color: #339933;\">=<\/span>yes\r\n  virtual_private<span style=\"color: #339933;\">=%<\/span>v4<span style=\"color: #339933;\">:<\/span>10<span style=\"color: #339933;\">.<\/span>0<span style=\"color: #339933;\">.<\/span>0<span style=\"color: #339933;\">.<\/span>0<span style=\"color: #339933;\">\/<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #339933;\">,%<\/span>v4<span style=\"color: #339933;\">:<\/span>192<span style=\"color: #339933;\">.<\/span>168<span style=\"color: #339933;\">.<\/span>0<span style=\"color: #339933;\">.<\/span>0<span style=\"color: #339933;\">\/<\/span><span style=\"color: #cc66cc;\">16<\/span><span style=\"color: #339933;\">,%<\/span>v4<span style=\"color: #339933;\">:<\/span>172<span style=\"color: #339933;\">.<\/span>16<span style=\"color: #339933;\">.<\/span>0<span style=\"color: #339933;\">.<\/span>0<span style=\"color: #339933;\">\/<\/span><span style=\"color: #cc66cc;\">12<\/span>\r\n  oe<span style=\"color: #339933;\">=<\/span>off\r\n  protostack<span style=\"color: #339933;\">=<\/span>netkey\r\n\u00a0\r\nconn L2TP<span style=\"color: #339933;\">-<\/span>PSK<span style=\"color: #339933;\">-<\/span>NAT\r\n  rightsubnet<span style=\"color: #339933;\">=<\/span>vhost<span style=\"color: #339933;\">:%<\/span>priv\r\n  also<span style=\"color: #339933;\">=<\/span>L2TP<span style=\"color: #339933;\">-<\/span>PSK<span style=\"color: #339933;\">-<\/span>noNAT\r\n\u00a0\r\nconn L2TP<span style=\"color: #339933;\">-<\/span>PSK<span style=\"color: #339933;\">-<\/span>noNAT\r\n  authby<span style=\"color: #339933;\">=<\/span>secret\r\n  pfs<span style=\"color: #339933;\">=<\/span>no\r\n  auto<span style=\"color: #339933;\">=<\/span>add\r\n  keyingtries<span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">3<\/span>\r\n  rekey<span style=\"color: #339933;\">=<\/span>no\r\n  ikelifetime<span style=\"color: #339933;\">=<\/span>8h\r\n  keylife<span style=\"color: #339933;\">=<\/span>1h\r\n  type<span style=\"color: #339933;\">=<\/span>transport\r\n  left<span style=\"color: #339933;\">=<\/span>1<span style=\"color: #339933;\">.<\/span>2<span style=\"color: #339933;\">.<\/span>3<span style=\"color: #339933;\">.<\/span>4  <span style=\"color: #666666; font-style: italic;\">\/\/\u4f60\u7684\u670d\u52a1\u5668IP<\/span>\r\n  leftprotoport<span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">17<\/span><span style=\"color: #339933;\">\/<\/span><span style=\"color: #cc66cc;\">1701<\/span>\r\n  right<span style=\"color: #339933;\">=%<\/span>any\r\n  rightprotoport<span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">17<\/span><span style=\"color: #339933;\">\/%<\/span>any<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>3.\u4fee\u6539\/etc\/ipsec.secrets<\/h3>\n<p>\u628aipsec.secrets\u4fee\u6539\u6210\u8fd9\u6837<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5073\">\n<td id=\"p507code3\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">1<span style=\"color: #339933;\">.<\/span>2<span style=\"color: #339933;\">.<\/span>3<span style=\"color: #339933;\">.<\/span>4   <span style=\"color: #339933;\">%<\/span>any<span style=\"color: #339933;\">:<\/span>  PSK <span style=\"color: #0000ff;\">\"YourSharedSecret\"<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5176\u4e2d1.2.3.4\u662f\u4f60\u7684\u670d\u52a1\u5668IP\uff0cYourSharedSecret\u662f\u4f60\u81ea\u5b9a\u4e49\u7684\u4e00\u4e32\u5b57\u7b26\uff0c\u5c31\u662f\u4eca\u540e\u8fde\u63a5\u65f6\u7528\u7684\u5bc6\u94a5\u3002<\/p>\n<p>4.\u5b8c\u6210\u4ee5\u4e0a\u7f16\u8f91\u4ee5\u540e, \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4:<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5074\">\n<td id=\"p507code4\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #b1b100;\">for<\/span> <span style=\"color: #990000;\">each<\/span> in <span style=\"color: #339933;\">\/<\/span>proc<span style=\"color: #339933;\">\/<\/span>sys<span style=\"color: #339933;\">\/<\/span>net<span style=\"color: #339933;\">\/<\/span>ipv4<span style=\"color: #339933;\">\/<\/span>conf<span style=\"color: #666666; font-style: italic;\">\/*\r\ndo\r\necho 0 &gt; $each\/accept_redirects\r\necho 0 &gt; $each\/send_redirects\r\ndone<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>5. \u91cd\u542fOPENSWAN<\/h3>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5075\">\n<td id=\"p507code5\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">service ipsec restart<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u7136\u540e\u68c0\u67e5\u4e00\u4e0bOPENSWAN\u662f\u5426\u6b63\u5e38\u5de5\u4f5c<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5076\">\n<td id=\"p507code6\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">ipsec verify<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u770b\u770b\u8f93\u51fa\u7684\u7ed3\u679c\u662f\u4e0d\u662f\u90fd\u662fOK\uff0c\u9664\u4e86\u6700\u540e\u4e00\u4e2a\u662fDISABLED\u3002\u5982\u679c\u4e0d\u662f\u6ca1\u5173\u7cfb\uff0c\u8bf7\u7559\u610f\u6587\u7ae0\u6700\u540e\u7684\u6545\u969c\u5904\u7406\u3002<\/p>\n<h2>\u4e8c\uff1a\u5b89\u88c5L2TP<\/h2>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5077\">\n<td id=\"p507code7\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">yum install xl2tpd  <span style=\"color: #666666; font-style: italic;\">\/\/\u5982\u679c\u51fa\u73b0\u627e\u4e0d\u5230\u5305\u5c31\u662f\u6ca1\u6709\u66f4\u65b0\u8f6f\u4ef6\u6e90<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>2.\u5b89\u88c5\u5b8c\u6210\u540e, \u4fee\u6539\/etc\/xl2tpd\/xl2tpd.conf<\/h3>\n<p>\u628axl2tpd.conf, \u4fee\u6539\u6210\u8fd9\u6837<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5078\">\n<td id=\"p507code8\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #009900;\">[<\/span><span style=\"color: #000000; font-weight: bold;\">global<\/span><span style=\"color: #009900;\">]<\/span>\r\nipsec saref <span style=\"color: #339933;\">=<\/span> yes\r\n\u00a0\r\n<span style=\"color: #009900;\">[<\/span>lns <span style=\"color: #b1b100;\">default<\/span><span style=\"color: #009900;\">]<\/span>\r\nip <span style=\"color: #990000;\">range<\/span> <span style=\"color: #339933;\">=<\/span> 10<span style=\"color: #339933;\">.<\/span>1<span style=\"color: #339933;\">.<\/span>2<span style=\"color: #339933;\">.<\/span>2<span style=\"color: #339933;\">-<\/span>10<span style=\"color: #339933;\">.<\/span>1<span style=\"color: #339933;\">.<\/span>2<span style=\"color: #339933;\">.<\/span>255  <span style=\"color: #666666; font-style: italic;\">\/\/\u8fd9\u91cc\u53ef\u4ee5\u6839\u636e\u9700\u8981\u6539\u6210\u6ca1\u88ab\u5360\u7528\u7684IP\u6bb5<\/span>\r\nlocal ip <span style=\"color: #339933;\">=<\/span> 10<span style=\"color: #339933;\">.<\/span>1<span style=\"color: #339933;\">.<\/span>2<span style=\"color: #339933;\">.<\/span>1\r\n<span style=\"color: #339933;\">;<\/span>require chap <span style=\"color: #339933;\">=<\/span> yes\r\nrefuse chap <span style=\"color: #339933;\">=<\/span> yes\r\nrefuse pap <span style=\"color: #339933;\">=<\/span> yes\r\n<span style=\"color: #b1b100;\">require<\/span> authentication <span style=\"color: #339933;\">=<\/span> yes\r\nppp debug <span style=\"color: #339933;\">=<\/span> yes\r\npppoptfile <span style=\"color: #339933;\">=<\/span> <span style=\"color: #339933;\">\/<\/span>etc<span style=\"color: #339933;\">\/<\/span>ppp<span style=\"color: #339933;\">\/<\/span>options<span style=\"color: #339933;\">.<\/span>xl2tpd\r\nlength bit <span style=\"color: #339933;\">=<\/span> yes<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>3.\u5b89\u88c5pppd<\/h3>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p5079\">\n<td id=\"p507code9\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">yum install ppp<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>4.\u5b89\u88c5\u5b8c\u6bd5, \u5728\/etc\/ppp\u4e0b\u5efa\u7acboptions.xl2tpd\u6587\u4ef6\uff08\u5982\u679c\u5df2\u7ecf\u6709\u4e86\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539\uff09<\/h3>\n<p>\u628aoptions.xl2tpd\u4fee\u6539\u6210\u8fd9\u6837<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50710\">\n<td id=\"p507code10\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">require<span style=\"color: #339933;\">-<\/span>mschap<span style=\"color: #339933;\">-<\/span>v2\r\nms<span style=\"color: #339933;\">-<\/span>dns 8<span style=\"color: #339933;\">.<\/span>8<span style=\"color: #339933;\">.<\/span>8<span style=\"color: #339933;\">.<\/span>8  <span style=\"color: #666666; font-style: italic;\">\/\/VPS\u4f7f\u7528\u7684DNS\u670d\u52a1\u5668<\/span>\r\nms<span style=\"color: #339933;\">-<\/span>dns 8<span style=\"color: #339933;\">.<\/span>8<span style=\"color: #339933;\">.<\/span>4<span style=\"color: #339933;\">.<\/span>4  <span style=\"color: #666666; font-style: italic;\">\/\/VPS\u4f7f\u7528\u7684DNS\u670d\u52a1\u5668<\/span>\r\nasyncmap <span style=\"color: #cc66cc;\">0<\/span>\r\nauth\r\ncrtscts\r\nlock\r\nhide<span style=\"color: #339933;\">-<\/span>password\r\nmodem\r\ndebug\r\nname l2tpd\r\nproxyarp\r\nlcp<span style=\"color: #339933;\">-<\/span>echo<span style=\"color: #339933;\">-<\/span>interval <span style=\"color: #cc66cc;\">30<\/span>\r\nlcp<span style=\"color: #339933;\">-<\/span>echo<span style=\"color: #339933;\">-<\/span>failure <span style=\"color: #cc66cc;\">4<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5982\u679c\u9700\u8981Radius\u652f\u6301\uff0c\u5c31\u5728\u6700\u540e\u4e00\u884c\u52a0\u4e0a<br \/> plugin radius.so<br \/> \u5e76\u590d\u5236radius.so\u5230\u8be5\u76ee\u5f55\u4e0b\u3002<\/p>\n<h3>5.\u7ed9xl2tpd\u6dfb\u52a0\u7528\u6237, \u586b\u5728\/etc\/ppp\/chap-secrets\u4e2d<\/h3>\n<p>\u5982\uff1a<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50711\">\n<td id=\"p507code11\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #666666; font-style: italic;\">#  user  server   pass    IP\r\n<\/span>l2tpuser  xl2tpd   l2tppass  <span style=\"color: #339933;\">*<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u683c\u5f0f\u4e3a\uff1a<br \/> \u7528\u6237\u540d \u8fde\u63a5\u670d\u52a1 \u5bc6\u7801 \u6765\u6e90IP<\/p>\n<p>\u6765\u6e90IP\u4e3a*\u65f6\u5373\u5141\u8bb8\u6240\u6709\u6765\u6e90\u3002server\u4e0b\u9762\u5199\u7684\u662fxl2tpd\u5373\u4e3axl2tpd\u7528\u6237\u3002<\/p>\n<h3>6. \u91cd\u542fxl2tpd\uff0c\u8bbe\u7f6eiptables\u8f6c\u53d1<\/h3>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50712\">\n<td id=\"p507code12\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">service xl2tpd restart\r\niptables <span style=\"color: #339933;\">--<\/span>table nat <span style=\"color: #339933;\">--<\/span>append POSTROUTING <span style=\"color: #339933;\">--<\/span>jump MASQUERADE\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #cc66cc;\">1<\/span> <span style=\"color: #339933;\">&gt;<\/span> <span style=\"color: #339933;\">\/<\/span>proc<span style=\"color: #339933;\">\/<\/span>sys<span style=\"color: #339933;\">\/<\/span>net<span style=\"color: #339933;\">\/<\/span>ipv4<span style=\"color: #339933;\">\/<\/span>ip_forward<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>7.\u4fee\u6539\/ect\/sysctl.conf<\/h3>\n<p>\u628asysctl.conf \u4fee\u6539\u6210\u8fd9\u6837<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50713\">\n<td id=\"p507code13\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">net<span style=\"color: #339933;\">.<\/span>ipv4<span style=\"color: #339933;\">.<\/span>ip_forward <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">1<\/span>\r\nnet<span style=\"color: #339933;\">.<\/span>ipv4<span style=\"color: #339933;\">.<\/span>conf<span style=\"color: #339933;\">.<\/span><span style=\"color: #b1b100;\">default<\/span><span style=\"color: #339933;\">.<\/span>rp_filter <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">0<\/span>\r\nnet<span style=\"color: #339933;\">.<\/span>ipv4<span style=\"color: #339933;\">.<\/span>conf<span style=\"color: #339933;\">.<\/span><span style=\"color: #b1b100;\">default<\/span><span style=\"color: #339933;\">.<\/span>accept_source_route <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">0<\/span>\r\nkernel<span style=\"color: #339933;\">.<\/span>sysrq <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">0<\/span>\r\nkernel<span style=\"color: #339933;\">.<\/span>core_uses_pid <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">1<\/span>\r\nnet<span style=\"color: #339933;\">.<\/span>ipv4<span style=\"color: #339933;\">.<\/span>tcp_syncookies <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">1<\/span>\r\nkernel<span style=\"color: #339933;\">.<\/span>msgmnb <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">65536<\/span>\r\nkernel<span style=\"color: #339933;\">.<\/span>msgmax <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">65536<\/span>\r\nkernel<span style=\"color: #339933;\">.<\/span>shmmax <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">68719476736<\/span>\r\nkernel<span style=\"color: #339933;\">.<\/span>shmall <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc66cc;\">4294967296<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>8.\u8ba9L2TP\u5f00\u673a\u81ea\u542f\u3002<\/h3>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50714\">\n<td id=\"p507code14\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">chkconfig xl2tpd on<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>9.\u6700\u540e\u5728\/etc\/rc.local\u7684exit 0\u524d\u52a0\u5165\u4ee5\u4e0b\u8bed\u53e5<\/h3>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50715\">\n<td id=\"p507code15\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">iptables <span style=\"color: #339933;\">--<\/span>table nat <span style=\"color: #339933;\">--<\/span>append POSTROUTING <span style=\"color: #339933;\">--<\/span>jump MASQUERADE\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #cc66cc;\">1<\/span> <span style=\"color: #339933;\">&gt;<\/span> <span style=\"color: #339933;\">\/<\/span>proc<span style=\"color: #339933;\">\/<\/span>sys<span style=\"color: #339933;\">\/<\/span>net<span style=\"color: #339933;\">\/<\/span>ipv4<span style=\"color: #339933;\">\/<\/span>ip_forward\r\n<span style=\"color: #b1b100;\">for<\/span> <span style=\"color: #990000;\">each<\/span> in <span style=\"color: #339933;\">\/<\/span>proc<span style=\"color: #339933;\">\/<\/span>sys<span style=\"color: #339933;\">\/<\/span>net<span style=\"color: #339933;\">\/<\/span>ipv4<span style=\"color: #339933;\">\/<\/span>conf<span style=\"color: #666666; font-style: italic;\">\/*\r\ndo\r\n  echo 0 &gt; $each\/accept_redirects\r\n  echo 0 &gt; $each\/send_redirects\r\ndone\r\n\/etc\/init.d\/ipsec restart<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u8fd9\u6837\u4e00\u4e2aL2TP\/IPSEC\u670d\u52a1\u5668\u5c31\u5927\u529f\u544a\u6210\u4e86\uff01\uff01\uff01\u8d76\u7d27\u8fde\u63a5\u8bd5\u8bd5\u770b\u5427 ^_^<\/p>\n<h2>\u4e09\uff1a\u7b80\u5355\u6545\u969c\u5904\u7406\u3002<\/h2>\n<p>\u8bb8\u591a\u4eba\u5728\u6267\u884cipsec verify\u7684\u65f6\u5019\u4f1a\u51fa\u73b0\u9519\u8bef\uff0c\u8fd9\u91cc\u8bf4\u4e24\u4e2a\u6211\u9047\u5230\u6700\u90c1\u95f7\u7684\u72b6\u51b5\u3002<\/p>\n<h3>1.\u5982\u53ea\u6709\u51fa\u73b0\u4ee5\u4e0b\u4e24\u884cFailed\uff0c\u522b\u7684\u5168\u90e8OK<\/h3>\n<p>Pluto listening for NAT-T on udp 4500 [Failed]<br \/> Two or more interfaces found, checking IP forwarding [Failed]<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u66fe\u7ecf\u56f0\u6270\u4e86\u6211\u5f88\u4e45\uff0c\u6700\u540e\u5728\u670b\u53cb\u548c\u9ad8\u624b\u534f\u52a9\u4e0b\u4fee\u590d\u4e86\u3002<\/p>\n<p>\u4fee\u6539ipsec.conf\u3002<\/p>\n<p>\u5728<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50716\">\n<td id=\"p507code16\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">left<span style=\"color: #339933;\">=<\/span>1<span style=\"color: #339933;\">.<\/span>2<span style=\"color: #339933;\">.<\/span>3<span style=\"color: #339933;\">.<\/span>4  <span style=\"color: #666666; font-style: italic;\">\/\/\u4f60\u7684\u670d\u52a1\u5668IP<\/span>\r\nleftprotoport<span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">17<\/span><span style=\"color: #339933;\">\/<\/span><span style=\"color: #cc66cc;\">1701<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u4e2d\u95f4\u52a0\u4e0a\u4e00\u884c\uff1a<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50717\">\n<td id=\"p507code17\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">leftid<span style=\"color: #339933;\">=<\/span>1<span style=\"color: #339933;\">.<\/span>2<span style=\"color: #339933;\">.<\/span>3<span style=\"color: #339933;\">.<\/span>4  <span style=\"color: #666666; font-style: italic;\">\/\/\u4f60\u7684\u670d\u52a1\u5668IP<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5728<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50718\">\n<td id=\"p507code18\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">right<span style=\"color: #339933;\">=%<\/span>any\r\nrightprotoport<span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">17<\/span><span style=\"color: #339933;\">\/%<\/span>any<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u4e2d\u95f4\u52a0\u4e0a\u4e00\u884c<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50719\">\n<td id=\"p507code19\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">rightid<span style=\"color: #339933;\">=%<\/span>any<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5373\u53ef\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<h3>2.\u6bd4\u4e0a\u9762\u7684\u95ee\u9898\u66f4\u90c1\u95f7\u7684\u8fd8\u6709\u5728ipsec verify\u7684\u65f6\u5019\u5168\u90e8OK\uff0c\u5374\u4e0d\u80fd\u7528\u6ca1\u6709\u5bc6\u94a5\u8fde\u63a5\u7684\u60c5\u51b5\u3002\uff08\u4e0d\u4f7f\u7528\u5bc6\u94a5\u53ef\u4ee5\u6b63\u5e38\u8fde\u63a5\u3002\uff09<\/h3>\n<p>\u8fd9\u4e2a\u95ee\u9898\u7ffb\u6765\u8986\u53bb\uff0c\u548c\u670b\u53cb\u68c0\u67e5\u4e86\u6240\u6709\u6709\u5173\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u7cfb\u7edf\u73af\u5883\u3002\u8fd8\u662f\u6ca1\u6709\u7ed3\u679c\uff0c\u7ec8\u4e8e\u5728\u770bmanpage\u4e2d\u770b\u5230\u4e86\u76f8\u5173\u5185\u5bb9\u3002<br \/> \u7b80\u5355\u89e3\u91ca\u4e0b\uff1a\u7cfb\u7edf\u7684esp\u6a21\u5757\u662f\u9700\u8981\u52a0\u5bc6\u3002\u800c\u9ed8\u8ba4\u7684\u52a0\u5bc6\u6a21\u5757\u6211\u7684\u5185\u6838\u91cc\u6ca1\u6709\uff0c\u6240\u4ee5\u5185\u6838\u62a5\u9519\u4e86\u3002\u90a3\u4e48\u56fa\u5b9a\u4e00\u79cd\u52a0\u5bc6\u65b9\u5f0f\uff0c\u5c31\u89e3\u51b3\u95ee\u9898\u4e86\u3002<br \/> \u662f\u4e0d\u662f\u5f88\u7ea0\u7ed3\u3002\u4f46\u662f\u89e3\u51b3\u8d77\u6765\u5374\u975e\u5e38\u7b80\u5355\u3002\uff08\u6709\u7528\u6237\u62a5\u544a32\u4f4d\u7cfb\u7edf\u65e0\u6cd5\u89e3\u51b3\uff0c\u8bf7\u5927\u5bb6\u81ea\u884c\u6d4b\u8bd5\uff09<\/p>\n<p>\u5728ipsec.conf\u4e2d\u7684<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50720\">\n<td id=\"p507code20\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">pfs<span style=\"color: #339933;\">=<\/span>no\r\nauto<span style=\"color: #339933;\">=<\/span>add<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u4e24\u884c\u4e4b\u95f4\u52a0\u4e0a<\/p>\n<div class=\"wp_codebox_msgheader\"><span class=\"right\"><sup><a href=\"http:\/\/www.ericbess.com\/ericblog\/2008\/03\/03\/wp-codebox\/#examples\" target=\"_blank\" title=\"WP-CodeBox HowTo?\"><span style=\"color: #99cc00;\">?<\/span><\/a><\/sup><\/span><span class=\"left\"><a>View Code<\/a> PHP<\/span><\/div>\n<div class=\"wp_codebox\">\n<table border=\"0\">\n<tbody>\n<tr id=\"p50721\">\n<td id=\"p507code21\" class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">esp<span style=\"color: #339933;\">=<\/span>3des<span style=\"color: #339933;\">-<\/span>sha1<span style=\"color: #339933;\">-<\/span><span style=\"color: #cc66cc;\">96<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u8fd9\u6837\u5c31\u5b9a\u4e49\u4e86\u52a0\u5bc6\u6a21\u5757\uff01\u95ee\u9898\u5c31\u89e3\u51b3\u4e86<br \/> \u540c\u65f6\u8fd8\u6709<br \/> esp=3des-md5-96<br \/> esp=3des<br \/> \u53ef\u4f9b\u9009\u62e9<\/p>\n<p>\u5148\u89e3\u51b3\u8fd9\u4e24\u4e2a\u68d8\u624b\u7684\u95ee\u9898\uff0c\u5982\u679c\u6709\u9047\u5230\u522b\u7684\u60c5\u51b5\u53ef\u4ee5Google\u4e00\u4e0b\u6216\u8005\u67e5\u9605\u76f8\u5173\u6587\u6863\u3002<\/p>\n<p>\u5e0c\u671b\u672c\u6587\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<p>\u6700\u540e\u5e7d\u9ed8\u4e00\u4e0b\uff1a\u6211\u4eec\u4e0d\u4ec5\u8981\u5e38\u5e38\u6fc0\u52b1\u81ea\u5df1\u52aa\u529b\u5b66\u4e60\uff0c\u540c\u65f6\u4e5f\u8981\u6fc0\u53d1\u5e7f\u5927\u7684\u793e\u4f1a\u4e3b\u4e49\u9752\u5e74\u5b66\u4e60\u76f8\u5173\u6280\u672f\u7684\u5174\u8da3\uff0c\u7528\u79d1\u5b66\u6280\u672f\u5e26\u9886\u4ebf\u4e07\u540c\u80de\u8131\u79bb\u82e6\u6d77\u2026\u2026<\/p>\n<p>^_^<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8d34\u81ea http:\/\/www.vpsyou.com\/centos-install-l2tpipsec-and-simple-troubleshooting\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/124","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=124"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}