{"id":320,"date":"2021-08-20T14:00:15","date_gmt":"2021-08-20T06:00:15","guid":{"rendered":"http:\/\/blog.xtaa.cn\/?p=320"},"modified":"2021-08-20T14:00:15","modified_gmt":"2021-08-20T06:00:15","slug":"centos7%e7%b3%bb%e7%bb%9f%e9%85%8d%e7%bd%aefirewalld%e4%bd%bf%e7%94%a8nat%e6%96%b9%e6%b3%95%e5%b0%86%e7%bd%91%e7%bb%9c%e5%85%b1%e4%ba%ab%e7%bb%99%e5%86%85%e9%83%a8%e5%b1%80%e5%9f%9f%e7%bd%91%e6%9c%ba","status":"publish","type":"post","link":"http:\/\/blog.xtaa.cn\/index.php\/2021\/08\/20\/centos7%e7%b3%bb%e7%bb%9f%e9%85%8d%e7%bd%aefirewalld%e4%bd%bf%e7%94%a8nat%e6%96%b9%e6%b3%95%e5%b0%86%e7%bd%91%e7%bb%9c%e5%85%b1%e4%ba%ab%e7%bb%99%e5%86%85%e9%83%a8%e5%b1%80%e5%9f%9f%e7%bd%91%e6%9c%ba\/","title":{"rendered":"CentOS7\u7cfb\u7edf\u914d\u7f6efirewalld\u4f7f\u7528NAT\u65b9\u6cd5\u5c06\u7f51\u7edc\u5171\u4eab\u7ed9\u5185\u90e8\u5c40\u57df\u7f51\u673a\u5668"},"content":{"rendered":"\n<p>1,\u7528 Linux \u6253\u9020\u8def\u7531\u5668 zebra,<\/p>\n\n\n\n<p>2,Linux\u7cfb\u7edf\u4e0b\u5b89\u88c5Vmware<\/p>\n\n\n\n<p>3,linux+openwrt<\/p>\n\n\n\n<p>4,firewalld+nat<\/p>\n\n\n\n<p>5,iptables<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u81ea\u4ece\u7528 HAProxy \u5bf9\u670d\u52a1\u5668\u505a\u4e86\u8d1f\u8f7d\u5747\u8861\u4ee5\u540e\uff0c\u611f\u89c9\u540e\u7aef\u670d\u52a1\u5668\u771f\u7684\u6ca1\u5fc5\u8981\u518d\u914d\u7f6e\u5e76\u5360\u7528\u516c\u7f51IP\u8d44\u6e90\u3002<br>\u800c\u4e14\u7531\u4e8e\u6258\u7ba1\u670d\u52a1\u5668\u7684\u516c\u7f51 IP \u8d44\u6e90\u662f\u56fa\u5b9a\u7684\uff0c\u60f3\u4e0a Keepalived \u7684\u8bdd\uff0c\u9700\u8981\u6324\u51fa\u6765 3 \u4e2a\u516c\u7f51 IP \u4f7f\u7528\uff0c\u6240\u4ee5\u66f4\u52a0\u575a\u5b9a\u4e86\u8ba9\u8d1f\u8f7d\u5747\u8861\u540e\u7aef\u670d\u52a1\u5668\u91ca\u653e\u516c\u7f51 IP \u7684\u60f3\u6cd5\u3002<br>\u53ef\u662f\uff0c\u540e\u7aef\u670d\u52a1\u5668\u4e5f\u4e0d\u662f\u7b80\u5355\u91ca\u653e\u516c\u7f51 IP \u5c31\u80fd\u6b63\u5e38\u5de5\u4f5c\u7684\uff0c\u6b63\u5728\u8fd0\u884c\u7684\u7cfb\u7edf\u5f88\u591a\u6a21\u5757\u4f9d\u7136\u9700\u8981\u5177\u6709\u8fde\u63a5\u5916\u7f51\u83b7\u53d6\u6570\u636e\u7684\u80fd\u529b\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u5c31\u60f3\u5230\u4e86\u7528 CentOS \u505a\u4e00\u4e2a\u8f6f\u8def\u7531\uff08\u5185\u7f51 NAT \u8f6c\u53d1\uff09\uff0c\u5982\u679c\u80fd\u5b9e\u73b0\u7684\u8bdd\uff0c\u5c31\u6ee1\u8db3\u4e86\u6211\u7684\u9700\u6c42\u3002<br>\u641c\u7d22\u5e76\u8bd5\u9a8c\u4e86\u4e00\u756a\uff0c\u76ee\u524d\u53d1\u73b0\u7528 iptables \u662f\u53ef\u884c\u7684\uff0c\u800c\u4e14\u5df2\u7ecf\u88ab\u6211\u9a8c\u8bc1\u6709\u6548\u7684\u65b9\u6848\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u7528\u5230\u4e86 iptables\uff0c\u9700\u8981\u505c\u6b62\u5e76\u7981\u7528\u5185\u7f6e\u7684 firewalld \u9632\u706b\u5899\u670d\u52a1\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u505c\u6b62\u5185\u7f6e\u7684-firewalld\">\u263c \u505c\u6b62\u5185\u7f6e\u7684 firewalld<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop firewalld\nsystemctl disable firewalld\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u6253\u5f00\u7cfb\u7edf\u7684-ip-\u8f6c\u53d1\u529f\u80fd\">\u263c \u6253\u5f00\u7cfb\u7edf\u7684 IP \u8f6c\u53d1\u529f\u80fd<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"net.ipv4.ip_forward=1\" &gt;&gt; \/etc\/sysctl.conf\nsysctl -p\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u5b89\u88c5-iptables-\u670d\u52a1\">\u263c \u5b89\u88c5 iptables \u670d\u52a1<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install iptables-services\n# \u79fb\u9664 iptables \u670d\u52a1\n#yum -y remove iptables-services\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u67e5\u770b-iptables-\u89c4\u5219\">\u263c \u67e5\u770b iptables \u89c4\u5219<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>iptables -L\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u6e05\u7a7a\u9ed8\u8ba4\u7684-filter-\u8868\">\u263c \u6e05\u7a7a\u9ed8\u8ba4\u7684 filter \u8868<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>iptables -F\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u6e05\u7a7a\u9ed8\u8ba4\u7684-nat-\u8868\">\u263c \u6e05\u7a7a\u9ed8\u8ba4\u7684 nat \u8868<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>iptables -t nat -F\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u9ed8\u8ba4\u89c4\u5219\uff0c\u7981\u6b62\u6240\u6709\u5165\u7ad9\uff0c\u5141\u8bb8\u6240\u6709\u51fa\u7ad9\">\u263c \u9ed8\u8ba4\u89c4\u5219\uff0c\u7981\u6b62\u6240\u6709\u5165\u7ad9\uff0c\u5141\u8bb8\u6240\u6709\u51fa\u7ad9<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>iptables -P INPUT DROP\niptables -P OUTPUT ACCEPT\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u9ed8\u8ba4\u89c4\u5219\uff0c\u5141\u8bb8\u6240\u6709\u672c\u5730\u73af\u56de\u901a\u4fe1\uff0c\u51fa\u5165\u7ad9\">\u263c \u9ed8\u8ba4\u89c4\u5219\uff0c\u5141\u8bb8\u6240\u6709\u672c\u5730\u73af\u56de\u901a\u4fe1\uff0c\u51fa\u5165\u7ad9<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>iptables -A INPUT -i lo -j ACCEPT\niptables -A OUTPUT -o lo -j ACCEPT\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u91cd\u70b9\uff0c\u5f00\u542f-nat-\u529f\u80fd\">\u263c \u91cd\u70b9\uff0c\u5f00\u542f NAT \u529f\u80fd<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>iptables -t nat -A POSTROUTING -j MASQUERADE\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u263c-\u5b8c\u6574\u7684\u547d\u4ee4\">\u263c \u5b8c\u6574\u7684\u547d\u4ee4<\/h3>\n\n\n\n<p>\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e0b\u7c98\u8d34\u6279\u91cf\u6267\u884c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop firewalld\nsystemctl disable firewalld\n\n\nyum -y install iptables-services\n\n\niptables -F\niptables -t nat -F\niptables -P INPUT  DROP\niptables -P OUTPUT ACCEPT\niptables -t nat -A POSTROUTING -j MASQUERADE\n\niptables -A INPUT -i lo -j ACCEPT\niptables -A OUTPUT -o lo -j ACCEPT\niptables -A INPUT -p udp --dport 53 -j ACCEPT\niptables -A INPUT -p tcp --dport 53 -j ACCEPT\niptables -A INPUT -p tcp -s 192.168.66.0\/24 -j ACCEPT\niptables -A INPUT -p tcp --dport 22 -s \u4f60\u7684\u53ef\u4fe1\u4efb\u8fdc\u7a0b\u7ba1\u7406IP -j ACCEPT\n\n\niptables -A INPUT -p tcp --dport 80 -j ACCEPT\niptables -A INPUT -p tcp --dport 443 -j ACCEPT\n\niptables-save &gt; \/etc\/sysconfig\/iptables\nsystemctl restart iptables\n\n\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u263c-\u5176\u4ed6\">\u263c \u5176\u4ed6<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5141\u8bb8\u5df2\u5efa\u7acb\u7684\u4f20\u5165\u8fde\u63a5\niptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT\n\n# \u5141\u8bb8DHCP\u4f20\u5165\u8fde\u63a5\niptables -A INPUT -i eth1 -p udp --dport 67:68 -j ACCEPT\n\n# \u9ed8\u8ba4\u7981\u6b62\u8def\u7531\u8f6c\u53d1\niptables -P FORWARD DROP\n\n# \u5141\u8bb8\u5185\u7f51\u8def\u7531\u8f6c\u53d1\niptables -A FORWARD -s 192.168.66.0\/24 -j ACCEPT\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u263c-\u540e\u8bb0\uff0c\u8865\u5145-2017-12-13-2028\">\u263c \u540e\u8bb0\uff0c\u8865\u5145 2017-12-13 20:28<\/h2>\n\n\n\n<p>\u6363\u9f13\u4e86\u4e00\u4e0b\u5348\uff0cNAT \u8f6c\u53d1\u5f53\u8def\u7531\u5668\u4f9b\u5185\u7f51\u670d\u52a1\u5668\u4e0a\u7f51\u7ec8\u4e8e\u641e\u5b9a\u4e86\uff0c\u7ed3\u679cCentOS\u91cd\u542f\u540e\uff0c\u53d1\u73b0 iptables \u7684\u914d\u7f6e\u4e22\u5931\uff0c\u7adf\u7136\u6ca1\u6709\u6c38\u4e45\u4fdd\u5b58\uff1f<br>\u592a\u626f\u6de1\uff01<\/p>\n\n\n\n<p>\u7f51\u4e0a\u8bf4\u8fd9\u4e2a\u95ee\u9898\u7684\u8fd8\u5f88\u591a\uff0c\u6709\u4eba\u8bf4\u53ef\u4ee5\u5236\u4f5c\u81ea\u542f\u52a8\u811a\u672c\uff0c\u5728\u542f\u52a8\u65f6\u81ea\u52a8\u5c06 iptables \u7684\u89c4\u5219\u91cd\u65b0\u6ce8\u518c\u4e00\u6b21\uff0c<br>\u4e5f\u7b97\u662f\u4e00\u4e2a\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\uff0c\u601d\u6765\u60f3\u8d77\uff0c\u65e2\u7136 CentOS \u5df2\u7ecf\u629b\u5f03\u4e86 iptables \uff0c\u90a3\u80af\u5b9a\u662f\u6709\u4e00\u5b9a\u9053\u7406\u7684\uff0cfirewalld \u4e00\u5b9a\u4e5f\u6709\u529e\u6cd5\u5b9e\u73b0\u540c\u6837\u7684\u529f\u80fd\u5427\uff01<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nfirewall-cmd --permanent --zone=public --add-masquerade\n\n# \u8c03\u6574\u9632\u706b\u5899\u7b56\u7565\uff0c\u5f00\u653e vrrp \u534f\u8bae\uff0c\u7ed9 Keepalived \u4f7f\u7528\n# \u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u3010\u8111\u88c2\u3011\u95ee\u9898\uff0c\u4e89\u62a2VIP\uff0c\u6216\u8005master\u6302\u6389\u4e4b\u540ebackup\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\nfirewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens33 --protocol vrrp -j ACCEPT\nfirewall-cmd --reload\n#\n<\/code><\/pre>\n\n\n\n<p>\u641e\u5b9a\u4e86\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\u5176\u4ed6\u529f\u80fd\u7aef\u53e3\u7684\u5f00\u653e\uff0c\u8fd9\u91cc\u5c31\u4e0d\u5570\u55e6\u4e86 (0^0)\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>other page1<\/strong><\/p>\n\n\n\n<p><strong>\u73af\u5883\u4ecb\u7ecd\uff1a<\/strong><\/p>\n\n\n\n<p><strong>\u4e00\u53f0CentOS6 \u4e3b\u673a\uff0c\u53cc\u7f51\u5361\uff0c\u4e24\u7f51\u6bb5<\/strong><\/p>\n\n\n\n<p><strong>\u7f51\u53e3\u8bbe\u5b9a\u5982\u4e0b\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@CentOS ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 \nDEVICE=eth0\nTYPE=Ethernet\nONBOOT=yes\nBOOTPROTO=dhcp\n&#91;root@CentOS ~]# \n\n&#91;root@CentOS ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth1\nDEVICE=eth1\nTYPE=Ethernet\nONBOOT=yes\nBOOTPROTO=static\n\nIPADDR=192.168.66.1\nNETMASK=255.255.255.0\n\n&#91;root@CentOS ~]# service network restart\n\n\n&#91;root@CentOS ~]# ifconfig -a\neth0      Link encap:Ethernet  HWaddr 00:0C:29:37:00:93  \n          inet addr:172.16.20.183  Bcast:172.16.255.255  Mask:255.255.0.0\n\n\t\t  \neth1      Link encap:Ethernet  HWaddr 00:0C:29:37:00:9D  \n          inet addr:192.168.66.1  Bcast:192.168.66.255  Mask:255.255.255.0\t\t<\/code><\/pre>\n\n\n\n<p><strong>\u6253\u5f00\u7f51\u5361\u8f6c\u53d1<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@CentOS ~]# vim \/etc\/sysctl.conf  \nnet.ipv4.ip_forward = 1<\/code><\/pre>\n\n\n\n<p><strong>\u7acb\u5373\u751f\u6548<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@CentOS ~]# sysctl -p<\/code><\/pre>\n\n\n\n<p><strong>\u8f6c\u53d1\u89c4\u5219\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@CentOS ~]# iptables -t nat -A POSTROUTING -s 192.168.66.0\/24 -j SNAT --to 172.16.20.183 #\u51fa\u53e3\u4e3a\u9759\u6001IP\u9009\u8fd9\u4e2a\n&#91;root@CentOS ~]# iptables -t nat -A POSTROUTING -s 192.168.66.0\/24 -o eth0 -j MASQUERADE #\u51fa\u53e3\u4e3a\u52a8\u6001IP\u9009\u8fd9\u4e2a<\/code><\/pre>\n\n\n\n<p><strong>\u67e5\u770b\/\u4fdd\u5b58\u8f6c\u53d1\u89c4\u5219<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@CentOS ~]# iptables -t nat -nL\n&#91;root@CentOS ~]# service iptables save<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>other page<\/strong>2<\/p>\n\n\n\n<p>\u5b66\u6821\u5b9e\u9a8c\u5ba4\u6709\u53f0\u670d\u52a1\u5668\u7533\u8bf7\u4e86\u56fa\u5b9a\u7684\u516c\u7f51IP\uff0c\u80fd\u8fde\u63a5\u5916\u90e8\u7f51\u7edc\uff0c\u540c\u65f6\u8be5\u673a\u5668\u548c\u5176\u5b83\u51e0\u53f0\u5185\u90e8\u670d\u52a1\u5668\u8fde\u63a5\u5728\u4e00\u4e2a\u8def\u7531\u5668\u4e0a\u3002\u9700\u8981\u5c06\u8be5\u670d\u52a1\u5668\u7684\u7f51\u7edc\u5171\u4eab\u7ed9\u5176\u5b83\u5185\u7f51\u670d\u52a1\u5668\u3002\u8fdb\u884c\u5982\u4e0b\u8bbe\u7f6e\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u5916\u7f51\u670d\u52a1\u5668\u6709\u4e24\u6839\u7f51\u7ebf\u8fde\u63a5\uff0c\u4e00\u6839\u548c\u5916\u7f51\u76f8\u8fde\uff0c\u4e00\u6839\u548c\u5185\u7f51\u8def\u7531\u5668\u76f8\u8fde\u3002\u5728\u5916\u7f51\u670d\u52a1\u5668\u8fdb\u884cNAT\u8f6c\u53d1\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u7b2c\u4e00\u79cd\u65b9\u6cd5\uff1a\n\u5f00\u542fNAT\u8f6c\u53d1\n# firewall-cmd --permanent --zone=public --add-masquerade\n\u5f00\u653eDNS\u4f7f\u7528\u768453\u7aef\u53e3\uff0c\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u5185\u7f51\u670d\u52a1\u5668\u867d\u7136\u8bbe\u7f6e\u6b63\u786e\u7684DNS\uff0c\u4f46\u662f\u4f9d\u7136\u65e0\u6cd5\u8fdb\u884c\u57df\u540d\u89e3\u6790\u3002\n# firewall-cmd --zone=public --add-port=53\/tcp --permanent\n\u91cd\u542f\u9632\u706b\u5899\n# systemctl restart firewalld.service\n# \u68c0\u67e5\u662f\u5426\u5141\u8bb8NAT\u8f6c\u53d1\nfirewall-cmd --query-masquerade\n# \u5173\u95edNAT\u8f6c\u53d1\nfirewall-cmd --remove-masquerade\n\n\u7b2c\u4e8c\u79cd\u65b9\u6cd5\uff1a\n\u5f00\u542fip_forward\u8f6c\u53d1\n\u5728\/etc\/sysctl.conf\u914d\u7f6e\u6587\u4ef6\u5c3e\u90e8\u6dfb\u52a0\nnet.ipv4.ip_forward=1\n\u7136\u540e\u8ba9\u5176\u751f\u6548\n# sysctl -p\n\u6267\u884cfirewalld\u547d\u4ee4\u8fdb\u884c\u8f6c\u53d1\uff1a\nfirewall-cmd --permanent --direct --passthrough ipv4 -t nat -I POSTROUTING -o enoxxxxxx -j MASQUERADE -s 192.168.1.0\/24\n\u6ce8\u610fenoxxxxxx\u5bf9\u5e94\u5916\u7f51\u7f51\u53e3\u540d\u79f0\u3002\n\u91cd\u542f\u9632\u706b\u5899\n# systemctl restart firewalld.service\n<\/pre>\n\n\n\n<p>\u8bbe\u7f6e\u5916\u7f51\u670d\u52a1\u5668\u7684IP\u5730\u5740\u4e3a192.168.1.1\uff0c\u7136\u540e\uff0c\u5728\u5185\u7f51\u670d\u52a1\u5668\u4e2d\u5bf9\u914d\u7f6e\u6587\u4ef6\/etc\/sysconfig\/network-scripts\/ifcfg-enxxxxxx\u8fdb\u884c\u4fee\u6539\uff0c\u8bbe\u7f6e\u7f51\u5361\u7684\u7f51\u5173\u4e3a\u5916\u7f51\u670d\u52a1\u5668\u7684IP\u5730\u5740\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ONBOOT=yes\nIPADDR=192.168.1.2\nPREFIX=24\nGATEWAY=192.168.1.1\nDNS1=119.29.29.29\n<\/pre>\n\n\n\n<p>\u91cd\u542f\u5185\u7f51\u670d\u52a1\u5668\u7684\u7f51\u7edc\u670d\u52a1\uff0c\u5373\u53ef\u8bbf\u95ee\u5916\u7f51\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl restart network.service\n<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1,\u7528 Linux \u6253\u9020\u8def\u7531\u5668 zebra, 2,Linux\u7cfb\u7edf\u4e0b\u5b89\u88c5Vmware 3,linux+openw [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-22"],"_links":{"self":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":0,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}