{"id":471,"date":"2013-10-20T12:34:06","date_gmt":"2013-10-20T12:34:06","guid":{"rendered":"https:\/\/shan.info\/new\/selinux-%e5%af%bc%e8%87%b4-php-%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8-fsockopen-%e8%bf%9e%e6%8e%a5%e5%88%b0-memcached-%e6%9c%8d%e5%8a%a1%e5%99%a8\/"},"modified":"2013-10-20T12:34:06","modified_gmt":"2013-10-20T12:34:06","slug":"selinux-%e5%af%bc%e8%87%b4-php-%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8-fsockopen-%e8%bf%9e%e6%8e%a5%e5%88%b0-memcached-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/selinux-%e5%af%bc%e8%87%b4-php-%e6%97%a0%e6%b3%95%e4%bd%bf%e7%94%a8-fsockopen-%e8%bf%9e%e6%8e%a5%e5%88%b0-memcached-%e6%9c%8d%e5%8a%a1%e5%99%a8\/","title":{"rendered":"SELinux \u5bfc\u81f4 PHP \u65e0\u6cd5\u4f7f\u7528 fsockopen \u8fde\u63a5\u5230 Memcached \u670d\u52a1\u5668"},"content":{"rendered":"<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u524d\u6bb5\u65f6\u95f4\u521a\u521a\u5199\u4e86\u4e00\u7bc7\u5173\u4e8e&nbsp;<a style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #004d99;\" href=\"http:\/\/liang.eu\/servers\/%e4%bb%8e%e5%a4%87%e4%bb%bd%e8%bf%98%e5%8e%9f%e5%90%8e-selinux-%e5%af%bc%e8%87%b4-httpdapache2-%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%ef%bc%8c%e6%8f%90%e7%a4%ba-documentroot-must-be-a-directory\" target=\"_blank\">SELinux \u5bfc\u81f4 httpd(Apache2) \u65e0\u6cd5\u542f\u52a8<\/a>&nbsp;\u7684\u6587\u7ae0\uff0c\u4eca\u5929\u53c8\u78b0\u5230 SELinux \u7684\u95ee\u9898\u4e86\u3002<\/p>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u4e8b\u60c5\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u9996\u5148\u662f\u670d\u52a1\u5668\u786c\u76d8\u51fa\u95ee\u9898\u4e86:-(\uff0c\u6211\u7ed9\u6362\u4e86\u5757\u786c\u76d8\uff0c\u7136\u540e\u91cd\u88c5\u7cfb\u7edf\uff08CentOS 5.4 i386\uff09\uff0c\u7136\u540e\u5b89\u88c5\u5404\u79cd\u7a0b\u5e8f\u3001\u8fd8\u539f\u5404\u79cd\u6570\u636e\u3002\u6700\u540e\u4e00\u6b65\u662f\u4f7f\u7528&nbsp;<a style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #004d99;\" href=\"http:\/\/liang.eu\/web-dev\/php\/a-memcache-mamager-written-in-php\" target=\"_blank\">memcache.php&nbsp;<\/a>\u6765\u76d1\u63a7 Memcache \u72b6\u6001\u3002\u7136\u800c\u5374\u53d1\u73b0\u8be5\u5de5\u5177\u65e0\u6cd5\u8fde\u63a5\u4e0a Memcached \u670d\u52a1\u5668\u3002\u7ecf\u68c0\u67e5\uff0cMemcached \u670d\u52a1\u5668\u5df2\u7ecf\u6b63\u5e38\u542f\u52a8\uff0c\u4f7f\u7528 telnet \u80fd\u591f\u6b63\u5e38\u8fde\u63a5\u4e0a\u53bb\uff0c\u4f7f\u7528 Memcached \u7684\u5e94\u7528\u7a0b\u5e8f\uff08PHP\u7a0b\u5e8f\uff09\u4e5f\u6b63\u5e38\u5de5\u4f5c\u3002\u67e5\u770b memcache.php \u4ee3\u7801\u53d1\u73b0\u5176\u662f\u4f7f\u7528 fsockopen \u6765\u8fde\u63a5 Memcached \u670d\u52a1\u5668\uff0c\u9042\u6000\u7591 Socket \u6269\u5c55\u7684\u95ee\u9898\u3002\u7136\u800c\uff0c\u68c0\u67e5\u53d1\u73b0\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528 fsockopen \u8fde\u63a5\u5230\u4efb\u610f\u5730\u5740\u7684\u4efb\u610f\u7aef\u53e3\uff0c\u8bf4\u660e Socket \u6269\u5c55\u6ca1\u95ee\u9898\u3002\u4f46\u5728 httpd \u4e2d\u4f7f\u7528 fsockopen \u6765\u5c31\u53ea\u80fd\u8fde\u63a5\u672c\u673a\u7684 80\u30018080\u3001443 \u7aef\u53e3\uff0c\u8fde\u63a5\u5176\u4ed6\u7aef\u53e3\u5747\u5931\u8d25\u3002<\/p>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u68c0\u67e5 httpd \u7684 log \u4e5f\u6ca1\u53d1\u73b0\u4efb\u4f55\u95ee\u9898\u3002\u4e0a\u7f51\u641c\u7d22\u4e5f\u6ca1\u53d1\u73b0\u7c7b\u4f3c\u95ee\u9898\uff0c\u90c1\u95f7ing\u2026\u2026<\/p>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u4e8e\u662f\u53c8\u60f3\u5230\u662f\u5426\u662f SELinux \u7684\u95ee\u9898\u3002grep \u4e86\u4e0b \/var\/log\/audit\/audit.log\uff0c\u53d1\u73b0\u4ee5\u4e0b\u7ebf\u7d22\uff1a<\/p>\n<blockquote style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border-width: 0px 0px 0px 2px; border-left-style: solid; border-left-color: #eaeaea; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 7px; quotes: none; background-color: #f8f8f8; color: #111111; line-height: 20px;\">\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\"><strong style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #2e2e2e;\">[<a href=\"mailto:liang@www ~\">liang@www ~<\/a>]$ sudo grep denied \/var\/log\/audit\/audit.log<\/strong><\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">type=AVC msg=audit(1280882021.681:780): avc:&nbsp; denied&nbsp; { name_connect } for&nbsp; pid=3822 comm=&#8221;httpd&#8221; dest=11211 scontext=user_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_cache_port_t:s0 tclass=tcp_socket&nbsp;<br \/>type=AVC msg=audit(1280885410.800:805): avc:&nbsp; denied&nbsp; { name_connect } for&nbsp; pid=3790 comm=&#8221;httpd&#8221; dest=11211 scontext=user_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_cache_port_t:s0 tclass=tcp_socket<\/p>\n<\/blockquote>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u770b\u6765\u53c8\u662f SELinux \u641e\u7684\u9b3c\u3002\u7ee7\u7eed\u68c0\u67e5\uff0c\u53d1\u73b0 \/var\/log\/messages \u6709\u4ee5\u4e0b\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n<blockquote style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border-width: 0px 0px 0px 2px; border-left-style: solid; border-left-color: #eaeaea; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 7px; quotes: none; background-color: #f8f8f8; color: #111111; line-height: 20px;\">\n<ol style=\"list-style-type: upper-alpha;\">\n<li>4 08:11:59 www setroubleshoot: SELinux is preventing the http daemon from connecting to the itself or the relay ports For complete SELinux messages. run sealert -l 23d1381f-9d4b-439a-9ad6-d52f1025f247<\/li>\n<\/ol>\n<\/blockquote>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u679c\u7136\u662f SELinux \u5f15\u8d77\u7684\u95ee\u9898\u3002\u6839\u636e\u63d0\u793a\u7ee7\u7eed\u68c0\u67e5\uff1a<\/p>\n<blockquote style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border-width: 0px 0px 0px 2px; border-left-style: solid; border-left-color: #eaeaea; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 7px; quotes: none; background-color: #f8f8f8; color: #111111; line-height: 20px;\">\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\"><strong style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #2e2e2e;\">[<a href=\"mailto:liang@www ~\">liang@www ~<\/a>]$ sealert -l 23d1381f-9d4b-439a-9ad6-d52f1025f247<\/strong><\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">Summary:<\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\"><span style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #0000ff;\">SELinux is preventing the http daemon from connecting to the itself or the relay&nbsp;<br \/>ports<\/span><\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">Detailed Description:<\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">SELinux has denied the http daemon from connecting to itself or the relay ports.&nbsp;<br \/>An httpd script is trying to do a network connect to an http\/ftp port. If you&nbsp;<br \/>did not setup httpd to network connections, this could signal a intrusion&nbsp;<br \/>attempt.<\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">Allowing Access:<\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">If you want httpd to connect to httpd\/ftp ports you need to turn on the&nbsp;<br \/>httpd_can_network_relay boolean: &#8220;setsebool -P httpd_can_network_relay=1&#8221;<\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">The following command will allow this access:<\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\"><span style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #0000ff;\">setsebool -P httpd_can_network_relay=1<\/span><\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">Additional Information:<\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">Source Context&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user_u:system_r:httpd_t&nbsp;<br \/>Target Context&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; system_u:object_r:http_cache_port_t&nbsp;<br \/>Target Objects&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None [ tcp_socket ]<\/p>\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\">\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u7701\u7565\u82e5\u5e72\u8f93\u51fa\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<\/blockquote>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u9519\u8bef\u4fe1\u606f\u8bf4\u5f97\u5f88\u660e\u4e86\u4e86\uff1aSELinux \u963b\u6b62\u4e86 httpd \u7684\u8fde\u63a5\u3002\u4fee\u6539\u65b9\u5f0f\u4e5f\u7ed9\u51fa\u6765\u4e86\uff0c\u4ee5 root \u8eab\u4efd\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n<blockquote style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border-width: 0px 0px 0px 2px; border-left-style: solid; border-left-color: #eaeaea; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 7px; quotes: none; background-color: #f8f8f8; color: #111111; line-height: 20px;\">\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\"><strong style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #2e2e2e;\">[<a href=\"mailto:liang@www ~\">liang@www ~<\/a>]$ sudo \/usr\/sbin\/setsebool -P httpd_can_network_relay=1<\/strong><\/p>\n<\/blockquote>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u6ce8\u610f\u8be5\u547d\u4ee4\u6210\u529f\u8fd0\u884c\u540e\u6ca1\u6709\u4efb\u4f55\u8f93\u51fa\u3002\u8981\u68c0\u67e5\u662f\u5426\u8bbe\u7f6e\u6210\u529f\uff0c\u53ef\u4ee5\u67e5\u770b\u8fd0\u884c getsebool \u547d\u4ee4\u6216\u8005\u76f4\u63a5\u67e5\u770b log\uff1a<\/p>\n<blockquote style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border-width: 0px 0px 0px 2px; border-left-style: solid; border-left-color: #eaeaea; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 7px; quotes: none; background-color: #f8f8f8; color: #111111; line-height: 20px;\">\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\"><strong style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #2e2e2e;\">[<a href=\"mailto:liang@www ~\">liang@www ~<\/a>]$ \/usr\/sbin\/getsebool httpd_can_network_relay<\/strong>&nbsp;<br \/>httpd_can_network_relay \u2013&gt; on<\/p>\n<\/blockquote>\n<blockquote style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border-width: 0px 0px 0px 2px; border-left-style: solid; border-left-color: #eaeaea; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 7px; quotes: none; background-color: #f8f8f8; color: #111111; line-height: 20px;\">\n<p style=\"border: 0px; margin-top: 0px; margin-bottom: 0px; outline: 0px; padding: 0px; color: #000000;\"><strong style=\"border: 0px; margin: 0px; outline: 0px; padding: 0px; color: #2e2e2e;\">[<a href=\"mailto:liang@www ~\">liang@www ~<\/a>]$ sudo tail \/var\/log\/messages<\/strong><\/p>\n<ol style=\"list-style-type: upper-alpha;\">\n<li>4 10:50:23 www setsebool: The httpd_can_network_relay policy boolean was changed to 1 by root<\/li>\n<\/ol>\n<\/blockquote>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u8bbe\u7f6e\u6210\u529f\u4e86\u3002\u91cd\u65b0\u5237\u65b0\u4e0b memcache.php, \u53d1\u73b0\u5df2\u7ecf\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u4e86\u3002job done!<\/p>\n<p style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1; border: 0px; font-size: 13px; margin-top: 0px; margin-bottom: 9px; outline: 0px; padding: 0px; line-height: 20px;\">\u6b64\u6587\u7eaf\u7cb9\u662f\u5de5\u4f5c\u5907\u5fd8\u3002\u4f46\u5e0c\u671b\u4e5f\u80fd\u7ed9\u78b0\u5230\u540c\u6837\u95ee\u9898\u7684\u670b\u53cb\u4e00\u70b9\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u6bb5\u65f6\u95f4\u521a\u521a\u5199\u4e86\u4e00\u7bc7\u5173\u4e8e&nbsp;SELinux \u5bfc\u81f4 httpd(Apache2) \u65e0\u6cd5\u542f\u52a8&nbsp;\u7684\u6587\u7ae0\uff0c\u4eca\u5929\u53c8\u78b0\u5230 SELinux \u7684\u95ee\u9898\u4e86\u3002 \u4e8b\u60c5\u662f\u8fd9\u6837\u7684\uff1a \u9996\u5148\u662f\u670d\u52a1\u5668\u786c\u76d8\u51fa\u95ee\u9898\u4e86:-(\uff0c\u6211\u7ed9\u6362\u4e86\u5757\u786c\u76d8\uff0c\u7136\u540e\u91cd\u88c5\u7cfb\u7edf\uff08CentOS 5.4 i386\uff09\uff0c\u7136\u540e\u5b89\u88c5\u5404\u79cd\u7a0b\u5e8f\u3001\u8fd8\u539f\u5404\u79cd\u6570\u636e\u3002\u6700\u540e\u4e00\u6b65\u662f\u4f7f\u7528&nbsp;memcache.php&nbsp;\u6765\u76d1\u63a7 Memcache \u72b6\u6001\u3002\u7136\u800c\u5374\u53d1\u73b0\u8be5\u5de5\u5177\u65e0\u6cd5\u8fde\u63a5\u4e0a Memcached \u670d\u52a1\u5668\u3002\u7ecf\u68c0\u67e5\uff0cMemcached \u670d\u52a1\u5668\u5df2\u7ecf\u6b63\u5e38\u542f\u52a8\uff0c\u4f7f\u7528 telnet \u80fd\u591f\u6b63\u5e38\u8fde\u63a5\u4e0a\u53bb\uff0c\u4f7f\u7528 Memcached \u7684\u5e94\u7528\u7a0b\u5e8f\uff08PHP\u7a0b\u5e8f\uff09\u4e5f\u6b63\u5e38\u5de5\u4f5c\u3002\u67e5\u770b memcache.php \u4ee3\u7801\u53d1\u73b0\u5176\u662f\u4f7f\u7528 fsockopen \u6765\u8fde\u63a5 Memcached \u670d\u52a1\u5668\uff0c\u9042\u6000\u7591 Socket \u6269\u5c55\u7684\u95ee\u9898\u3002\u7136\u800c\uff0c\u68c0\u67e5\u53d1\u73b0\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528 fsockopen \u8fde\u63a5\u5230\u4efb\u610f\u5730\u5740\u7684\u4efb\u610f\u7aef\u53e3\uff0c\u8bf4\u660e Socket \u6269\u5c55\u6ca1\u95ee\u9898\u3002\u4f46\u5728 httpd \u4e2d\u4f7f\u7528 fsockopen \u6765\u5c31\u53ea\u80fd\u8fde\u63a5\u672c\u673a\u7684 80\u30018080\u3001443 \u7aef\u53e3\uff0c\u8fde\u63a5\u5176\u4ed6\u7aef\u53e3\u5747\u5931\u8d25\u3002 \u68c0\u67e5 httpd \u7684 log \u4e5f\u6ca1\u53d1\u73b0\u4efb\u4f55\u95ee\u9898\u3002\u4e0a\u7f51\u641c\u7d22\u4e5f\u6ca1\u53d1\u73b0\u7c7b\u4f3c\u95ee\u9898\uff0c\u90c1\u95f7ing\u2026\u2026 \u4e8e\u662f\u53c8\u60f3\u5230\u662f\u5426\u662f SELinux \u7684\u95ee\u9898\u3002grep \u4e86\u4e0b \/var\/log\/audit\/audit.log\uff0c\u53d1\u73b0\u4ee5\u4e0b\u7ebf\u7d22\uff1a [liang@www ~]$ sudo grep denied \/var\/log\/audit\/audit.log type=AVC msg=audit(1280882021.681:780): [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-471","post","type-post","status-publish","format-standard","hentry","category-centos-6"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/471","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=471"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/471\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}