{"id":2656,"date":"2020-11-16T12:34:50","date_gmt":"2020-11-16T04:34:50","guid":{"rendered":"https:\/\/www.charflower.com\/?p=2656"},"modified":"2020-11-16T12:38:26","modified_gmt":"2020-11-16T04:38:26","slug":"a10%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e9%80%89%e8%b7%af","status":"publish","type":"post","link":"https:\/\/www.charflower.com\/?p=2656","title":{"rendered":"A10\u57df\u540d\u89e3\u6790\u9009\u8def"},"content":{"rendered":"\n<h4><strong>\u4e00\u3001\u5b9e\u9a8c\u62d3\u6251<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"575\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/1-3-1024x575.png\" alt=\"\" class=\"wp-image-2657\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/1-3-1024x575.png 1024w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/1-3-300x169.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/1-3-768x432.png 768w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/1-3.png 1105w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4><strong>\u4e8c\u3001\u5730\u5740\u4fe1\u606f<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"851\" height=\"270\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/2-3.png\" alt=\"\" class=\"wp-image-2658\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/2-3.png 851w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/2-3-300x95.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/2-3-768x244.png 768w\" sizes=\"(max-width: 851px) 100vw, 851px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"432\" height=\"312\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/3-3.png\" alt=\"\" class=\"wp-image-2659\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/3-3.png 432w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/3-3-300x217.png 300w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/figure>\n\n\n\n<h4><strong>\u4e09\u3001\u914d\u7f6e\u51fa\u5411\u94fe\u8def<\/strong><\/h4>\n\n\n\n<h5><strong>1\uff09Server<\/strong><\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>slb server GW_bridge 192.168.3.1 \n  port 0 tcp \n    health-check-disable \n  port 0 udp \n    health-check-disable \n!\nslb server GW_dhcp 192.168.232.2 \n  port 0 tcp \n    health-check-disable \n  port 0 udp \n    health-check-disable <\/code><\/pre>\n\n\n\n<h6><strong>2\uff09NAT<\/strong><\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>ip nat pool bridge_NAT 192.168.3.200 192.168.3.200 netmask \/32 \n!\nip nat pool dhcp_NAT 192.168.232.200 192.168.232.200 netmask \/32 \n\nslb template port bridge_NAT_Temp \n  source-nat bridge_NAT \nslb template port dhcp_NAT_Temp \n  source-nat dhcp_NAT <\/code><\/pre>\n\n\n\n<h5><strong> 3\uff09service-group<\/strong><\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>slb service-group SG_GW_bridge_tcp tcp \n  member GW_bridge 0 \n    template bridge_NAT_Temp \n!\nslb service-group SG_GW_bridge_udp udp \n  member GW_bridge 0 \n    template bridge_NAT_Temp \n!\nslb service-group SG_GW_dhcp_tcp tcp \n  member GW_dhcp 0 \n    template dhcp_NAT_Temp \n!\nslb service-group SG_GW_dhcp_udp udp \n  member GW_dhcp 0 \n    template dhcp_NAT_Temp \n\uff01\nslb service-group SG_GW_ALL_tcp tcp \n  member GW_bridge 0 \n    template bridge_NAT_Temp \n  member GW_dhcp 0 \n    template dhcp_NAT_Temp \n!\nslb service-group SG_GW_ALL_udp udp \n  member GW_bridge 0 \n    template bridge_NAT_Temp \n  member GW_dhcp 0 \n    template dhcp_NAT_Temp <\/code><\/pre>\n\n\n\n<h4><strong>\u56db\u3001\u4f7f\u7528Class-list\u5efa\u7acb\u57df\u540d\u5339\u914d\u8868\uff1b<\/strong><\/h4>\n\n\n\n<h5><strong>1\uff09\u547d\u4ee4\u884c<\/strong><\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>class-list url-218 string \n  str taobao.com \n!\nclass-list url-61 string \n  str jd.com <\/code><\/pre>\n\n\n\n<p><strong>2\uff09Web\u754c\u9762<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"367\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/4-3-1024x367.png\" alt=\"\" class=\"wp-image-2660\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/4-3-1024x367.png 1024w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/4-3-300x108.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/4-3-768x276.png 768w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/4-3-1536x551.png 1536w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/4-3.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4><strong>\u4e94\u3001\u914d\u7f6e\u4e24\u6761\u7ebf\u8def\u4e0a\u7684DNS\u5730\u5740\uff1b<\/strong><\/h4>\n\n\n\n<p><strong>\u6ce8\u91ca\uff1a\u7531\u4e8e\u662f\u5b9e\u9a8c\u73af\u5883\uff0c\u4e24\u4e2aDNS\u5730\u5740\u5747\u662f\u6c5f\u82cf\u7535\u4fe1\u7684DNS\u5730\u5740\uff0c\u5728\u751f\u4ea7\u73af\u5883\u4e0a\u5404\u8fd0\u884c\u5546\u7ebf\u8def\u4f7f\u7528\u5404\u81ea\u7684DNS\u5730\u5740\uff1b<\/strong><\/p>\n\n\n\n<h5><strong>1\uff09Server<\/strong><\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>slb server DNS_218 218.2.135.1 \n  port 53 udp \n!\nslb server DNS_61 61.147.37.1 \n  port 53 udp<\/code><\/pre>\n\n\n\n<h5>2\uff09Service-group<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>slb service-group SG_DNS_218 udp \n  member DNS_218 53 \n    template dhcp_NAT_Temp \n!\nslb service-group SG_DNS_61 udp \n  member DNS_61 53 \n    template bridge_NAT_Temp <\/code><\/pre>\n\n\n\n<h5><strong>3\uff09\u914d\u7f6eDNS\u5730\u5740\u5230\u5177\u4f53\u7ebf\u8def\u7684\u7cbe\u786e\u8def\u7531<\/strong><\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>ip route 61.147.37.1 \/32 192.168.3.1 \nip route 218.2.135.1 \/32 192.168.232.2<\/code><\/pre>\n\n\n\n<h4><strong>\u516d\u3001\u7f16\u5199Aflex\uff0c\u5339\u914dClass-list\u4e2d\u7684\u57df\u540d\uff0c\u8f6c\u53d1\u7ed9\u6307\u5b9a\u7684DNS\u7ec4\uff0c\u5e76\u5c06\u67e5\u8be2\u5230\u7684IP\u5b58\u5165table\u8868\uff1b<\/strong><\/h4>\n\n\n\n<p><strong>\u6ce8\u91ca\uff1a\u5229\u7528DNS_REQUEST\u4e8b\u4ef6\u63a7\u5236Class-list\u4e2d\u57df\u540d\u8d70\u6307\u5b9aDNS\u7ec4\uff0c\u4f7f\u7528DNS_RESPONED\u4e8b\u4ef6\u4e2d\u5c06\u57df\u540d\u89e3\u6790\u5f97\u5230\u7684A\u8bb0\u5f55\u4fdd\u5b58\u5230table\u8868\u4e2d\uff1b<\/strong><\/p>\n\n\n\n<h5><strong>table\u8868\u8bf4\u660e\uff1a<\/strong><\/h5>\n\n\n\n<p><strong>      table\u662f\u4e00\u5f20\u53ef\u4ee5\u52a8\u6001\u521b\u5efa\uff0c\u52a8\u6001\u66f4\u65b0\uff0c\u5168\u5c40\u8c03\u7528\u7684\u6570\u636e\u5b58\u50a8\u8868\uff0c\u4e5f\u5c31\u662f\u8bf4\u4e0d\u540c\u4e8b\u4ef6\u7684Aflex\u53ef\u4ee5\u8c03\u7528\u901a\u4e00\u5f20table\u4e2d\u7684\u6570\u636e\uff0c\u8fd9\u5c31\u662ftable\u7075\u6d3b\u5f3a\u5927\u4e4b\u5904\uff0c\u5176\u5916\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6elifetime\u548ctimeout\u63a7\u5236\u8868\u4e2d\u5185\u5bb9\u6761\u76ee\u7684\u5b58\u6d3b\u65f6\u95f4\u3002<\/strong><\/p>\n\n\n\n<h5><strong>AFLEX\u5185\u5bb9\uff1a<\/strong><\/h5>\n\n\n\n<p><strong>\u540d\u79f0\uff1aDNS_AFLEX<\/strong><\/p>\n\n\n\n<p><strong>\u9488\u5bf9\u4e8eAflex\u9700\u8981\u770b\u61c2\u903b\u8f91\u5173\u7cfb\u5c31\u53ef\u4ee5\uff0c\u7f16\u5199\u7684\u683c\u5f0f\u53ef\u4ee5\u4e0d\u53bb\u5173\u5fc3\uff1b<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>when DNS_REQUEST {\nset flag 0\n    \tset host [string tolower [DNS::question name]]\n    \tif { [CLASS::match $host contains url-218] } {\n        \tset flag 1\t\n                pool SG_DNS_218\n        \tlog \"DNS REQUEST $host use GW_dhcp link\"\n    \t} \n        if { [CLASS::match $host contains url-61] } {\n        \tset flag 2\t\n                pool SG_DNS_61\n        \tlog \"DNS REQUEST $host use GW_bridge link\"\n    \t} \n}\nwhen DNS_RESPONSE {\n    \tif {$flag equals \"1\"} {\n        \tset rrs [DNS::answer]       \n        \tforeach rr $rrs {\n            \tif { [DNS::type $rr] equals \"A\" } {    \n                \tset dip [DNS::rdata $rr]\t\t\n                 \tif { [table lookup t-GWdhcp $dip] equals \"\"} {  \n                    \ttable add t-GWdhcp $dip $host indef 86400\n\t\t\t\t\t}  else {\n                    \t\ttable replace t-GWdhcp $dip $host indef 86400\n\t\t\t\t  \t\t   }  \nlog \"DNS RESPONSE $host use GW_dhcp link\"\n            \t\t}\n        \t}\n    }\n    \tif {$flag equals \"2\"} {\n        \tset rrs [DNS::answer]       \n        \tforeach rr $rrs {\n            \tif { [DNS::type $rr] equals \"A\" } {    \n                \tset dip [DNS::rdata $rr]\t\t\n                 \tif { [table lookup t-GWbridge $dip] equals \"\"} {  \n                    \ttable add t-GWbridge $dip $host indef 86400\n\t\t\t\t\t}  else {\n                    \t\ttable replace t-GWbridge $dip $host indef 86400\n\t\t\t\t  \t\t   }  \nlog \"DNS RESPONSE $host use GWbridge link\"\n            \t\t}\n        \t}\n    }\n}<\/code><\/pre>\n\n\n\n<h4><strong>\u4e03\uff1a\u914d\u7f6eDNS\u4e03\u5c42\u4ee3\u7406Virtual-Server<\/strong><\/h4>\n\n\n\n<p><strong>\u6ce8\u91ca\uff1aVirtual-Server \u53ef\u4ee5\u8bbe\u7f6e\u6210Normal VS\uff0c\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u6210Wildcare VS\uff1b\u5f15\u5bfc\u57df\u540d\u89e3\u6790\uff0c\u5185\u7f51\u914d\u7f6e\u7684DNS\u5730\u5740\u662f192.168.5.200\uff1b<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>slb virtual-server VS_DNS2 192.168.5.200 \n  port 53 dns-udp \n    aflex DNS_AFLEX <\/code><\/pre>\n\n\n\n<h4><strong>\u516b\u3001\u7f16\u5199table\u8868\u9009\u8defAflex\uff1b<\/strong><\/h4>\n\n\n\n<p><strong>Aflex\u5185\u5bb9\uff1a<\/strong><\/p>\n\n\n\n<p><strong>\u540d\u79f0\uff1aChoose-Link-TCP<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>when CLIENT_ACCEPTED {\n    \tset Dip [IP::local_addr]\n    \tif {  ([table lookup t-GWdhcp $Dip]!=\"\") } {\n        \tpool SG_GW_dhcp_tcp\n        \tlog \"choose_link to-link-GW_dhcp  --&gt; $Dip\"\n    \t} \n    \tif {  ([table lookup t-GWbridge $Dip]!=\"\") } {\n        \tpool SG_GW_bridge_tcp\n        \tlog \"choose_link to-link-GW_bridge  --&gt; $Dip\"\n    \t} \n}<\/code><\/pre>\n\n\n\n<p><strong>\u540d\u79f0\uff1aChoose-Link-UDP<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>when CLIENT_ACCEPTED {\n    \tset Dip [IP::local_addr]\n    \tif {  ([table lookup t-GWdhcp $Dip]!=\"\") } {\n        \tpool SG_GW_dhcp_udp\n        \tlog \"choose_link to-link-GW_dhcp  --&gt; $Dip\"\n    \t} \n    \tif {  ([table lookup t-GWbridge $Dip]!=\"\") } {\n        \tpool SG_GW_bridge_udp\n        \tlog \"choose_link to-link-GW_bridge  --&gt; $Dip\"\n    \t} \n}<\/code><\/pre>\n\n\n\n<h4><strong>\u4e5d\u3001\u7ed1\u5b9a\u9009\u8defaFlex\u5230LLB Vserver<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>slb virtual-server LLB_VS_ALL 0.0.0.0 acl 180 \n  port 0 others \n    aflex Choose-Link-UDP \n    use-rcv-hop-for-resp \n    no-dest-nat \n  port 0 tcp \n    clientip-sticky-nat \n    aflex Choose-Link-TCP \n    use-rcv-hop-for-resp \n    no-dest-nat \n  port 0 udp \n    clientip-sticky-nat \n    aflex Choose-Link-UDP \n    use-rcv-hop-for-resp \n    no-dest-nat <\/code><\/pre>\n\n\n\n<h4><strong>\u5341\u3001\u8bbf\u95ee\u6548\u679c\uff1a<\/strong><\/h4>\n\n\n\n<p><strong>\u6ce8\u91ca\uff1a\u8bbf\u95ee\u4e2dtaobao.com  jd.com\u7684\u9875\u9762\u80fd\u591f\u62ff\u5230core 200<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1025\" height=\"728\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/5-2.png\" alt=\"\" class=\"wp-image-2661\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/5-2.png 1025w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/5-2-300x213.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/5-2-768x545.png 768w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/5-2-100x70.png 100w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/5-2-367x260.png 367w\" sizes=\"(max-width: 1025px) 100vw, 1025px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1023\" height=\"728\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/6-2.png\" alt=\"\" class=\"wp-image-2662\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/6-2.png 1023w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/6-2-300x213.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/6-2-768x547.png 768w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/6-2-100x70.png 100w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/6-2-367x260.png 367w\" sizes=\"(max-width: 1023px) 100vw, 1023px\" \/><\/figure>\n\n\n\n<h4><strong>\u5341\u4e00\u3001\u6293\u5305\u67e5\u770b\u57df\u540d\u662f\u5426\u7531\u6307\u5b9a\u7684DNS\u89e3\u6790<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"290\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/7-2-1024x290.png\" alt=\"\" class=\"wp-image-2663\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/7-2-1024x290.png 1024w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/7-2-300x85.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/7-2-768x217.png 768w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/7-2.png 1389w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"290\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/8-3-1024x290.png\" alt=\"\" class=\"wp-image-2664\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/8-3-1024x290.png 1024w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/8-3-300x85.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/8-3-768x218.png 768w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/8-3.png 1379w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"615\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/9-2-1024x615.png\" alt=\"\" class=\"wp-image-2665\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/9-2-1024x615.png 1024w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/9-2-300x180.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/9-2-768x461.png 768w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/9-2.png 1094w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"494\" src=\"http:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/10-2-1024x494.png\" alt=\"\" class=\"wp-image-2666\" srcset=\"https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/10-2-1024x494.png 1024w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/10-2-300x145.png 300w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/10-2-768x370.png 768w, https:\/\/www.charflower.com\/wp-content\/uploads\/2020\/11\/10-2.png 1122w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4><strong>\u5341\u4e8c\u3001\u6700\u7ec8\u6548\u679c\u8bf4\u660e<\/strong><\/h4>\n\n\n\n<p><strong>\u901a\u8fc7\u914d\u7f6e\uff0c\u6700\u7ec8\u5b9e\u73b0\u7684\u6548\u679c\u662f\uff0c\u7528\u6237\u8bbf\u95eetaobao.com\u7684\u57df\u540d,\u4f1a\u8d70218.2.135.1\u67e5\u8be2,\u4e5f\u5c31\u662fdhcp\u7ebf\u8def\uff0c\u8bbf\u95eejd.com\u57df\u540d\uff0c\u4f1a\u8d7061.148.37.1\u67e5\u8be2\uff0c\u662fbridge\u7ebf\u8def\uff1b\u5728\u8be5\u5b9e\u9a8c\u4e2d\uff0c\u5e76\u6ca1\u6709\u8fc7\u591a\u7684\u5173\u6ce8\u4e8e\u5065\u5eb7\u68c0\u67e5\u3001\u5176\u4ed6\u9009\u8def\u7b56\u7565\u3001\u4ee5\u53ca\u7279\u6b8a\u9700\u6c42\u7684\u6a21\u677f\uff0c\u6240\u4ee5\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u6839\u636e\u7528\u6237\u9700\u6c42\u53ef\u4ee5\u7075\u6d3b\u8c03\u6574\uff1b<\/strong><\/p>\n\n\n\n<p><strong>\u4e00\u822c\u914d\u7f6e\u4e03\u5c42\u57df\u540d\u89e3\u6790\u9009\u8def\uff0c\u662f\u7531\u4e8e\u56fd\u5916\u7684\u4e00\u4e9b\u7f51\u7ad9\u65e0\u6cd5\u901a\u8fc7\u56fd\u5185\u8fd0\u8425\u5546\u7ebf\u8def\u8bbf\u95ee\u521d\u671f\uff0c\u56e0\u6b64\u9700\u8981\u901a\u8fc7A10\u5f15\u5bfc\u8bbf\u95ee\u56fd\u5916\u7f51\u7ad9\u7684\u6d41\u91cf\u8d70VPN\u4e13\u7ebf\uff0c\u4ece\u800c\u5b9e\u73b0\u8bbf\u95ee\u76ee\u7684\uff1b<\/strong><\/p>\n\n\n\n<h5><strong>\u6ce8\u610f\u6761\u4ef6:<\/strong><\/h5>\n\n\n\n<p><strong>1\u3001\u7528\u6237\u7684\u57df\u540dDNS\u8bf7\u6c42\u5fc5\u987b\u7ecf\u8fc7A10\uff1b<\/strong><\/p>\n\n\n\n<p><strong>2\u3001table\u7684\u547d\u540d\u4e0d\u80fd\u4f7f\u7528\u4e0b\u5212\u7ebf\u201c_\u201d;<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u9644\uff1a\u8bbe\u5907show run\u4fe1\u606f\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>A10-1(NOLICENSE)# show run\n!Current configuration: 1159 bytes      \n!Configuration last updated at 06:54:22 GMT Sun Nov 15 2020\n!Configuration last saved at 07:33:21 GMT Sun Nov 15 2020\n!64-bit Advanced Core OS (ACOS) version 4.1.4-GR1-P3, build 155 (Mar-28-2020,18:07)\n!\naccess-list 180 permit ip object-group SUB_Network any \n!\nclass-list url-218 string \n  str taobao.com \n!\nclass-list url-61 string \n  str jd.com \n!\nvlan 10 \n  untagged ethernet 1\n  router-interface ve 10 \n!\nvlan 20 \n  untagged ethernet 2\n  router-interface ve 20 \n!\nvlan 30 \n  untagged ethernet 3\n  router-interface ve 30 \n!\nhostname A10-1 \n!\n!\nweb-service gui-timeout-policy idle 60 \n!\ninterface management \n  ip address 192.168.4.10 255.255.255.0 \n  ip default-gateway 192.168.4.1 \n!\ninterface ethernet 1 \n  enable \n!\ninterface ethernet 2 \n  enable \n!\ninterface ethernet 3 \n  enable \n!\ninterface ethernet 4 \n!\ninterface ve 10 \n  ip address 192.168.3.10 255.255.255.0 \n!\ninterface ve 20 \n  ip address dhcp \n!\ninterface ve 30 \n  ip address 192.168.5.10 255.255.255.0 \n  ip allow-promiscuous-vip \n!\n!\nip nat pool bridge_NAT 192.168.3.200 192.168.3.200 netmask \/32 \n!\nip nat pool dhcp_NAT 192.168.232.200 192.168.232.200 netmask \/32 \n!\nip route 0.0.0.0 \/0 192.168.3.1 \nip route 0.0.0.0 \/0 192.168.232.2 10 \n!\nip route 61.147.37.1 \/32 192.168.3.1 \n!\nip route 218.2.135.1 \/32 192.168.232.2 \n!\nslb template port bridge_NAT_Temp \n  source-nat bridge_NAT \n!\nslb template port dhcp_NAT_Temp \n  source-nat dhcp_NAT \n!\nslb server DNS_114 114.114.114.114 \n  port 53 udp \n!\nslb server DNS_218 218.2.135.1 \n  port 53 udp \n!\nslb server DNS_61 61.147.37.1 \n  port 53 udp \n!\nslb server GW_bridge 192.168.3.1 \n  port 0 tcp \n    health-check-disable \n  port 0 udp \n    health-check-disable \n!\nslb server GW_dhcp 192.168.232.2 \n  port 0 tcp \n    health-check-disable \n  port 0 udp \n    health-check-disable \n!\nslb service-group SG_DNS_218 udp \n  member DNS_218 53 \n    template dhcp_NAT_Temp \n!\nslb service-group SG_DNS_61 udp \n  member DNS_61 53 \n    template bridge_NAT_Temp \n!\nslb service-group SG_GW_ALL_tcp tcp \n  member GW_bridge 0 \n    template bridge_NAT_Temp \n  member GW_dhcp 0 \n    template dhcp_NAT_Temp \n!\nslb service-group SG_GW_ALL_udp udp \n  member GW_bridge 0 \n    template bridge_NAT_Temp \n  member GW_dhcp 0 \n    template dhcp_NAT_Temp \n!\nslb service-group SG_GW_bridge_tcp tcp \n  member GW_bridge 0 \n    template bridge_NAT_Temp \n!\nslb service-group SG_GW_bridge_udp udp \n  member GW_bridge 0 \n    template bridge_NAT_Temp \n!\nslb service-group SG_GW_dhcp_tcp tcp \n  member GW_dhcp 0 \n    template dhcp_NAT_Temp \n!\nslb service-group SG_GW_dhcp_udp udp \n  member GW_dhcp 0 \n    template dhcp_NAT_Temp \n!\nslb virtual-server LLB_VS_ALL 0.0.0.0 acl 180 \n  port 0 others \n    aflex Choose-Link-UDP \n    use-rcv-hop-for-resp \n    no-dest-nat \n  port 0 tcp \n    clientip-sticky-nat \n    aflex Choose-Link-TCP \n    use-rcv-hop-for-resp \n    no-dest-nat \n  port 0 udp \n    clientip-sticky-nat \n    aflex Choose-Link-UDP \n    use-rcv-hop-for-resp \n    no-dest-nat \n!\nslb virtual-server VS_DNS 0.0.0.0 \n  port 53 dns-udp \n    aflex DNS_AFLEX \n!\nslb virtual-server VS_DNS2 192.168.5.200 \n  port 53 dns-udp \n    aflex DNS_AFLEX \n!\nsflow setting local-collection \n!\nsflow collector ip 127.0.0.1 6343 \n!\n!\nobject-group network SUB_Network \n  192.168.0.0 0.0.255.255 \n  172.16.0.0 0.15.255.255 \n  10.0.0.0 0.255.255.255 \n!\nend\n!Current config commit point for partition 0 is 0 &amp; config mode is classical-mode\n\n[END] 2020\/11\/15 15:55:21<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5b9e\u9a8c\u62d3\u6251 \u4e8c\u3001\u5730\u5740\u4fe1\u606f \u4e09\u3001\u914d\u7f6e\u51fa\u5411\u94fe\u8def 1\uff09Server 2\uff09NAT 3\uff09service-group \u56db&hellip; <a class=\"more-link\" href=\"https:\/\/www.charflower.com\/?p=2656\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">A10\u57df\u540d\u89e3\u6790\u9009\u8def<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":2673,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[33,95],"_links":{"self":[{"href":"https:\/\/www.charflower.com\/index.php?rest_route=\/wp\/v2\/posts\/2656"}],"collection":[{"href":"https:\/\/www.charflower.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.charflower.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.charflower.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.charflower.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2656"}],"version-history":[{"count":3,"href":"https:\/\/www.charflower.com\/index.php?rest_route=\/wp\/v2\/posts\/2656\/revisions"}],"predecessor-version":[{"id":2672,"href":"https:\/\/www.charflower.com\/index.php?rest_route=\/wp\/v2\/posts\/2656\/revisions\/2672"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.charflower.com\/index.php?rest_route=\/wp\/v2\/media\/2673"}],"wp:attachment":[{"href":"https:\/\/www.charflower.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.charflower.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.charflower.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}