{"id":119647,"date":"2026-10-30T03:32:42","date_gmt":"2026-10-29T19:32:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/119647.html"},"modified":"2026-10-30T03:32:42","modified_gmt":"2026-10-29T19:32:42","slug":"ysl%e8%af%ad%e6%9e%a2%c2%b7%e7%9b%be%e7%94%b2-waf-%e9%83%a8%e7%bd%b2%e6%95%99%e7%a8%8b%ef%bc%9a%e4%bb%8e%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87%e5%88%b0%e4%b8%8a%e7%ba%bf%e9%aa%8c%e8%af%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/119647.html","title":{"rendered":"YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1"},"content":{"rendered":"<p>TL;DR&#xff1a;YSL \u8bed\u67a2\u00b7\u76fe\u7532 WAF \u4ee5\u4e8c\u8fdb\u5236\u6216\u955c\u50cf\u65b9\u5f0f\u4ea4\u4ed8&#xff0c;\u652f\u6301\u4e00\u952e\u811a\u672c setup.sh\u3001\u624b\u52a8\u79bb\u7ebf\u5305\u3001Docker compose \u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f&#xff0c;\u5ba2\u6237\u4fa7\u65e0\u9700\u7f16\u8bd1&#xff0c;\u4e5f\u4e0d\u4f9d\u8d56\u4efb\u4f55\u8fd0\u884c\u73af\u5883\u3002\u4ea7\u54c1\u5185\u7f6e 30 \u5929\u8bc4\u4f30\u6388\u6743&#xff0c;\u88c5\u5b8c\u5373\u7528&#xff0c;\u8bc4\u4f30\u6ee1\u610f\u540e\u66f4\u6362\u6388\u6743\u6587\u4ef6\u5373\u53ef\u8f6c\u4e3a\u6b63\u5f0f\u7248&#xff0c;\u914d\u7f6e\u3001\u5ba1\u8ba1\u548c\u89c4\u5219\u5168\u90e8\u4fdd\u7559\u3002\u751f\u4ea7\u73af\u5883\u63a8\u8350\u4f7f\u7528 Docker compose \u5e76\u575a\u6301 network_mode: host&#xff0c;\u907f\u514d\u7aef\u53e3\u6620\u5c04\u505a SNAT \u5bfc\u81f4\u771f\u5b9e\u5ba2\u6237\u7aef IP \u4e22\u5931&#xff0c;\u4ece\u800c\u4fdd\u8bc1\u7194\u65ad\u3001\u9650\u6d41\u548c\u6307\u7eb9\u805a\u7c7b\u7684\u300c\u6bcf IP\u300d\u53e3\u5f84\u6b63\u5e38\u751f\u6548\u3002\u90e8\u7f72\u5b8c\u6210\u540e\u52a1\u5fc5\u6267\u884c ysl license -check \u6821\u9a8c\u6388\u6743\u95e8\u7981&#xff0c;\u518d\u7528 ysl analyze -uri &#034;\/?id&#061;1&#034; \u9a8c\u8bc1\u5355\u8bf7\u6c42\u5224\u5b9a\u94fe\u8def&#xff0c;\u786e\u8ba4\u9632\u62a4\u3001\u6388\u6743\u548c\u53d6\u8bc1\u4e09\u6761\u94fe\u8def\u5168\u90e8\u6253\u901a\u3002<\/p>\n<p>\u76ee\u5f55<\/p>\n<ul>\n<li>\u4e09\u6b65\u4e0a\u7ebf<\/li>\n<li>\u624b\u52a8\u5b89\u88c5&#xff08;\u79bb\u7ebf\u5305&#xff09;<\/li>\n<li>\u88f8\u673a\u90e8\u7f72<\/li>\n<li>Docker \u90e8\u7f72<\/li>\n<li>\u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f\u5bf9\u6bd4<\/li>\n<li>\u914d\u7f6e\u6587\u4ef6&#xff08;\u88c5\u5b8c\u901a\u5e38\u4e0d\u7528\u52a8&#xff09;<\/li>\n<li>\u5e38\u7528\u547d\u4ee4<\/li>\n<li>\u5546\u4e1a\u6388\u6743<\/li>\n<li>\u5b89\u5168\u6ce8\u610f\u4e8b\u9879<\/li>\n<\/ul>\n<h3>\u4e09\u6b65\u4e0a\u7ebf<\/h3>\n<p>YSL \u4ee5\u4e8c\u8fdb\u5236\u6216\u955c\u50cf\u65b9\u5f0f\u4ea4\u4ed8&#xff0c;\u5ba2\u6237\u4fa7\u65e0\u9700\u7f16\u8bd1&#xff0c;\u4e5f\u65e0\u9700\u51c6\u5907\u4efb\u4f55\u4f9d\u8d56\u73af\u5883\u3002\u6709 Docker \u7684\u673a\u5668&#xff0c;\u4e00\u6761\u547d\u4ee4\u5373\u53ef\u88c5\u5b8c&#xff0c;\u5185\u7f6e 30 \u5929\u8bc4\u4f30\u6388\u6743&#xff0c;\u88c5\u5b8c\u5373\u7528&#xff08;\u5355\u7ad9\u70b9&#xff0c;\u5230\u671f\u81ea\u52a8\u505c\u6b62&#xff1b;\u8f6c\u4e3a\u6b63\u5f0f\u7248\u6fc0\u6d3b\u540e&#xff0c;\u914d\u7f6e\u3001\u5ba1\u8ba1\u548c\u89c4\u5219\u5168\u90e8\u4fdd\u7559&#xff09;\u3002<\/p>\n<h4>\u2460 \u4e00\u6761\u547d\u4ee4\u5b89\u88c5<\/h4>\n<p>\u5b89\u88c5\u811a\u672c\u4f1a\u81ea\u52a8\u8bc6\u522b Docker \u6216\u88f8\u673a\u73af\u5883&#xff0c;\u5b89\u88c5\u5230 \/opt\/ysl&#xff0c;\u91cd\u542f\u540e\u4e0d\u4f1a\u4e22\u5931&#xff1a;<\/p>\n<p>bash -c &#034;$(curl -fsSL https:\/\/waf.duduziy.com\/dl\/setup.sh)&#034; <\/p>\n<h4>\u2461 \u6309\u5c4f\u5e55\u4e0a\u7684\u6e05\u5355\u63a5\u5165\u4e1a\u52a1<\/h4>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u7ec8\u7aef\u4f1a\u6253\u5370\u4e09\u6b65\u6e05\u5355&#xff1a;\u5c06\u57df\u540d A \u8bb0\u5f55\u6307\u5411\u672c\u673a&#xff0c;\u7528 curl \u9a8c\u8bc1\u4e1a\u52a1\u5730\u5740&#xff0c;\u518d\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee\u786e\u8ba4\u9632\u62a4\u5df2\u751f\u6548\u3002\u672c\u673a\u673a\u5668\u7801\u4e5f\u4f1a\u540c\u65f6\u6253\u5370\u5728\u5c4f\u5e55\u4e0a&#xff0c;\u7528\u4e8e\u7533\u8bf7\u6b63\u5f0f\u6388\u6743\u3002<\/p>\n<h4>\u2462 \u8f6c\u4e3a\u6b63\u5f0f\u6388\u6743&#xff08;\u8bc4\u4f30\u6ee1\u610f\u540e&#xff09;<\/h4>\n<p>\u628a\u673a\u5668\u7801\u53d1\u7ed9\u6211\u4eec&#xff0c;\u6536\u5230 ysl.lic \u540e\u6267\u884c\u4e00\u6761\u547d\u4ee4\u5373\u53ef\u6fc0\u6d3b&#xff0c;\u914d\u7f6e\u3001\u5ba1\u8ba1\u548c\u89c4\u5219\u5168\u90e8\u4fdd\u7559&#xff1a;<\/p>\n<p>bash -c &#034;$(curl -fsSL https:\/\/waf.duduziy.com\/dl\/activate.sh)&#034; \/root\/ysl.lic <\/p>\n<p>\u8bc4\u4f30\u6388\u6743\u8bf4\u660e&#xff1a;\u955c\u50cf\u5185\u7f6e\u7684\u8bc4\u4f30\u7248\u4e0d\u7ed1\u5b9a\u673a\u5668&#xff0c;\u4ec5\u9650\u5355\u7ad9\u70b9&#xff0c;\u6709\u6548\u671f\u662f\u7b7e\u53d1\u65f6\u5199\u6b7b\u7684\u7edd\u5bf9\u65e5\u671f&#xff0c;\u91cd\u88c5\u955c\u50cf\u65e0\u6cd5\u7eed\u671f\u3002\u8f6c\u4e3a\u6b63\u5f0f\u7248\u8bf7\u901a\u8fc7 activate.sh \u4e00\u6761\u547d\u4ee4\u5b8c\u6210&#xff0c;\u673a\u5668\u7801\u5728\u5b89\u88c5\u5b8c\u6210\u65f6\u5df2\u6253\u5370\u5728\u5c4f\u5e55\u4e0a\u3002<\/p>\n<h3>\u624b\u52a8\u5b89\u88c5&#xff08;\u79bb\u7ebf\u5305&#xff09;<\/h3>\n<p>\u5b89\u88c5\u4ecb\u8d28\u4e5f\u652f\u6301\u624b\u52a8\u4e0b\u8f7d&#xff0c;\u5e76\u63d0\u4f9b SHA256 \u6821\u9a8c&#xff1a;<\/p>\n<p># Docker \u4ea4\u4ed8&#xff1a;\u52a0\u8f7d\u79bb\u7ebf\u955c\u50cf\u5305&#xff08;\u4e0d\u8054\u7f51\u3001\u4e0d\u62c9\u53d6\u57fa\u7840\u955c\u50cf&#xff09;<br \/>\ndocker load -i ysl-shield-7.0.8.tar.gz<br \/>\n\u88f8\u673a\u4ea4\u4ed8&#xff1a;\u89e3\u538b\u5373\u7528&#xff08;Linux amd64\/arm64\u3001Windows&#xff09;<br \/>\ntar xzf ysl-shield-7.0.8-linux-amd64.tar.gz -C \/opt\/ysl<br \/>\n\u9a8c\u8bc1&#xff1a;\u5355\u8bf7\u6c42\u5206\u6790&#xff08;\u8f93\u51fa\u5b8c\u6574\u5224\u5b9a JSON&#xff0c;\u5305\u542b\u52a8\u4f5c\u3001\u5206\u6570\u548c\u8bc1\u636e\u94fe&#xff09;<br \/>\n\/opt\/ysl\/ysl analyze -uri &#034;\/?id&#061;1&#034; <\/p>\n<p>Windows \u7528\u6237\u6ce8\u610f&#xff1a;\u5efa\u8bae\u5c06 YSL \u5b89\u88c5\u76ee\u5f55\u52a0\u5165 Windows Defender \u6392\u9664\u5217\u8868\u3002\u4ea7\u54c1\u7684\u653b\u51fb\u68c0\u6d4b\u6837\u672c\u7279\u5f81\u771f\u5b9e&#xff0c;\u53ef\u80fd\u88ab\u5b89\u5168\u8f6f\u4ef6\u8bef\u62a5\u3002<\/p>\n<p>Add-MpPreference -ExclusionPath &#039;C:\\\\ysl&#039; <\/p>\n<h3>\u88f8\u673a\u90e8\u7f72<\/h3>\n<p>\u88f8\u673a\u90e8\u7f72\u53ea\u9700\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u548c\u4e00\u4e2a JSON \u914d\u7f6e\u6587\u4ef6\u3002\u4ee5\u4e0b\u6700\u5c0f\u914d\u7f6e\u5373\u53ef\u5c06 80 \u7aef\u53e3\u6d41\u91cf\u53cd\u5411\u4ee3\u7406\u5230\u5185\u7f51\u4e1a\u52a1&#xff1a;<\/p>\n<p>\/\/ \/etc\/ysl\/config.json<br \/>\n{<br \/>\n  &#034;listen&#034;:   &#034;:80&#034;,<br \/>\n  &#034;upstream&#034;: &#034;http:\/\/127.0.0.1:8080&#034;,<br \/>\n  \/\/ \u6c99\u7bb1&#xff1a;\u9ed8\u8ba4\u5f00\u542f&#xff1b;\u7070\u5ea6\u671f\u53ef\u7528 monitor_only \u5148\u89c2\u5bdf<br \/>\n  &#034;sandbox_monitor_only&#034;: false<br \/>\n}<br \/>\n# \u542f\u52a8&#xff08;-conf \u6307\u5b9a\u914d\u7f6e\u6587\u4ef6&#xff1b;-upstream\u3001-addr \u7b49\u53c2\u6570\u53ef\u8986\u76d6\u914d\u7f6e&#xff09;<br \/>\n.\/ysl proxy -conf \/etc\/ysl\/config.json<br \/>\nYSL \u8bed\u67a2-\u76fe\u7532 WAF v7.0.8 (YSL Shield WAF)<br \/>\n  upstream: http:\/\/127.0.0.1:8080<br \/>\n  http:     :80 <\/p>\n<p>\u4e1a\u52a1\u4fa7\u65e0\u9700\u4efb\u4f55\u6539\u9020&#xff0c;\u53ea\u9700\u628a\u5165\u53e3\u6d41\u91cf\u6307\u5411 YSL \u76d1\u542c\u7aef\u53e3\u5373\u53ef\u3002<\/p>\n<h3>Docker \u90e8\u7f72<\/h3>\n<p>\u4e00\u4e2a\u955c\u50cf\u53ef\u901a\u7528\u6240\u6709\u5ba2\u6237&#xff0c;\u6388\u6743\u6587\u4ef6\u901a\u8fc7\u6302\u8f7d\u6ce8\u5165&#xff0c;\u955c\u50cf\u5185\u4e0d\u542b\u4efb\u4f55\u673a\u5668\u4fe1\u606f\u548c\u79c1\u94a5\u4fe1\u606f&#xff0c;\u4f53\u79ef\u7ea6 33 MB\u3002\u5982\u679c\u4e0d\u60f3\u4f7f\u7528 compose&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u4e0a\u4e00\u8282\u7684 setup.sh \u4e00\u952e\u547d\u4ee4&#xff0c;\u5b83\u68c0\u6d4b\u5230 Docker \u540e\u4f1a\u81ea\u52a8\u8d70\u8fd9\u6761\u8def&#xff1b;\u5982\u9700\u7cbe\u7ec6\u63a7\u5236&#xff0c;\u53ef\u53c2\u8003\u4e0b\u9762\u4e09\u6b65&#xff1a;<\/p>\n<p>flowchart TD<br \/>\n    A[\u52a0\u8f7d\u79bb\u7ebf\u955c\u50cf\u5305&lt;br\/&gt;docker load -i ysl-shield-7.0.8.tar.gz] &#8211;&gt; B[\u653e\u7f6e\u6388\u6743\u6587\u4ef6&lt;br\/&gt;cp \u5ba2\u6237.lic .\/ysl.lic]<br \/>\n    B &#8211;&gt; C[\u542f\u52a8\u5bb9\u5668&lt;br\/&gt;docker compose up -d]<br \/>\n    C &#8211;&gt; D[\u9a8c\u8bc1\u5bb9\u5668\u72b6\u6001\u4e0e\u771f\u5b9e IP&lt;br\/&gt;docker compose ps \/ \u67e5\u770b\u5ba1\u8ba1\u65e5\u5fd7] <\/p>\n<p>\u4e0a\u56fe\u662f Docker \u90e8\u7f72\u7684\u56db\u6b65\u4e3b\u6d41\u7a0b&#xff1a;\u5148\u79bb\u7ebf\u52a0\u8f7d\u955c\u50cf\u5305&#xff0c;\u518d\u628a\u6388\u6743\u6587\u4ef6\u653e\u5230 compose \u7ea6\u5b9a\u7684 .\/ysl.lic&#xff0c;\u7136\u540e\u4ee5 network_mode: host \u542f\u52a8\u5bb9\u5668&#xff0c;\u6700\u540e\u786e\u8ba4\u5bb9\u5668\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u4e14\u5ba1\u8ba1\u65e5\u5fd7\u4e2d\u8bb0\u5f55\u7684\u662f\u771f\u5b9e\u5ba2\u6237\u7aef IP&#xff0c;\u56db\u6b65\u5168\u90e8\u901a\u8fc7\u5373\u53ef\u628a\u5165\u53e3\u6d41\u91cf\u5207\u5230 YSL\u3002<\/p>\n<p># 1) \u52a0\u8f7d\u79bb\u7ebf\u955c\u50cf\u5305&#xff08;\u7531\u5382\u5546\u4fa7 make-release.sh \u4ea7\u51fa&#xff0c;\u5ba2\u6237\u673a\u65e0\u9700\u5916\u7f51&#xff09;<br \/>\ndocker load -i ysl-shield-7.0.8.tar.gz<br \/>\n2) \u653e\u597d\u6388\u6743&#xff1a;compose \u4f1a\u628a .\/ysl.lic \u6302\u8f7d\u5230 \/etc\/ysl\/ysl.lic<br \/>\ncp \u5ba2\u6237.lic .\/ysl.lic<br \/>\n3) \u542f\u52a8&#xff08;network_mode: host&#xff0c;\u900f\u4f20\u771f\u5b9e\u5ba2\u6237\u7aef IP&#xff09;<br \/>\ndocker compose up -d<br \/>\n\u73af\u5883\u53d8\u91cf\u8986\u76d6&#xff1a;YSL_UPSTREAM \/ YSL_LISTEN \/ YSL_TLS_LISTEN \/ YSL_LICENSE <\/p>\n<p>\u4e0b\u9762\u662f\u53ef\u76f4\u63a5\u4f7f\u7528\u7684\u5b8c\u6574 docker-compose.yml&#xff0c;\u4e0e .\/ysl.lic \u653e\u5728\u540c\u4e00\u76ee\u5f55\u5373\u53ef&#xff1a;<\/p>\n<p>services:<br \/>\n  ysl:<br \/>\n    image: ysl\/shield-waf:7.0.8<br \/>\n    container_name: ysl-shield<br \/>\n    restart: unless-stopped<br \/>\n    network_mode: host<br \/>\n    environment:<br \/>\n      YSL_UPSTREAM: &#034;http:\/\/127.0.0.1:8080&#034;<br \/>\n      YSL_LISTEN: &#034;:80&#034;<br \/>\n    volumes:<br \/>\n      &#8211; \/etc\/machine-id:\/etc\/machine-id:ro<br \/>\n      &#8211; .\/ysl.lic:\/etc\/ysl\/ysl.lic:ro<br \/>\n      &#8211; .\/data\/audit:\/var\/lib\/ysl\/audit<br \/>\n      &#8211; .\/data\/state:\/var\/lib\/ysl\/state<br \/>\n      &#8211; .\/data\/learned:\/var\/lib\/ysl\/learned <\/p>\n<p>\u9010\u9879\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>image: ysl\/shield-waf:7.0.8&#xff1a;\u4f7f\u7528 docker load \u5bfc\u5165\u7684\u672c\u5730\u955c\u50cf&#xff0c;\u5199 image: \u800c\u4e0d\u662f build:&#xff0c;\u56e0\u6b64 up -d \u4e0d\u4f1a\u89e6\u53d1\u6784\u5efa&#xff0c;\u4e5f\u4e0d\u4f1a\u8054\u7f51\u62c9\u53d6\u3002<\/li>\n<li>container_name: ysl-shield&#xff1a;\u56fa\u5b9a\u5bb9\u5668\u540d&#xff0c;\u4fbf\u4e8e docker compose logs ysl-shield\u3001docker compose restart ysl-shield \u7b49\u65e5\u5e38\u8fd0\u7ef4\u547d\u4ee4\u76f4\u63a5\u5f15\u7528\u3002<\/li>\n<li>restart: unless-stopped&#xff1a;\u5bbf\u4e3b\u673a\u91cd\u542f\u6216\u8fdb\u7a0b\u5f02\u5e38\u9000\u51fa\u540e\u81ea\u52a8\u62c9\u8d77&#xff0c;\u9664\u975e\u4eba\u4e3a\u6267\u884c docker compose stop&#xff0c;\u4fdd\u8bc1\u9632\u62a4\u4e0d\u56e0\u610f\u5916\u4e2d\u65ad\u800c\u957f\u65f6\u95f4\u5931\u6548\u3002<\/li>\n<li>network_mode: host&#xff1a;\u5bb9\u5668\u76f4\u63a5\u4f7f\u7528\u5bbf\u4e3b\u673a\u7f51\u7edc\u6808&#xff0c;\u4e0d\u505a\u7aef\u53e3\u6620\u5c04&#xff0c;\u56e0\u6b64\u4e0d\u4f1a\u53d1\u751f SNAT&#xff0c;\u5ba1\u8ba1\u65e5\u5fd7\u91cc\u8bb0\u5f55\u7684\u662f\u771f\u5b9e\u5ba2\u6237\u7aef IP&#xff0c;\u7194\u65ad\u3001\u9650\u6d41\u548c\u6307\u7eb9\u805a\u7c7b\u7684\u300c\u6bcf IP\u300d\u53e3\u5f84\u624d\u80fd\u6b63\u5e38\u751f\u6548\u3002\u6ce8\u610f\u6b64\u65f6\u4e0d\u8981\u518d\u5199 ports:\u3002<\/li>\n<li>YSL_UPSTREAM: &#034;http:\/\/127.0.0.1:8080&#034;&#xff1a;\u4e0a\u6e38\u4e1a\u52a1\u5730\u5740&#xff0c;\u5373 WAF \u628a\u6e05\u6d17\u540e\u7684\u6d41\u91cf\u8f6c\u53d1\u5230\u54ea\u91cc\u3002host \u7f51\u7edc\u4e0b 127.0.0.1 \u6307\u5bbf\u4e3b\u673a\u672c\u673a&#xff0c;\u4e1a\u52a1\u8dd1\u5728\u5176\u5b83\u673a\u5668\u65f6\u6539\u6210\u5bf9\u5e94\u5185\u7f51 IP \u548c\u7aef\u53e3\u3002<\/li>\n<li>YSL_LISTEN: &#034;:80&#034;&#xff1a;WAF \u7684\u76d1\u542c\u5730\u5740&#xff0c;:80 \u8868\u793a\u76d1\u542c\u5bbf\u4e3b\u673a\u6240\u6709\u7f51\u5361\u7684 80 \u7aef\u53e3\u3002\u4e1a\u52a1\u5df2\u5360\u7528 80 \u65f6\u6539\u6210 :8081 \u4e4b\u7c7b&#xff0c;\u518d\u628a\u5165\u53e3\u6d41\u91cf\u6307\u5411\u65b0\u7aef\u53e3\u3002<\/li>\n<li>\/etc\/machine-id:\/etc\/machine-id:ro&#xff1a;\u628a\u5bbf\u4e3b\u673a\u673a\u5668\u7801\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6302\u8fdb\u5bb9\u5668&#xff0c;\u5bb9\u5668\u5185\u636e\u6b64\u8ba1\u7b97\u673a\u5668\u7801&#xff0c;\u4fdd\u8bc1\u6388\u6743\u4e0e\u5bbf\u4e3b\u673a\u7ed1\u5b9a\u4e00\u81f4\u3002:ro \u8868\u793a\u5bb9\u5668\u65e0\u6cd5\u6539\u5199\u5bbf\u4e3b\u673a\u6587\u4ef6\u3002Docker Desktop&#xff08;Windows \/ macOS&#xff09;\u5bbf\u4e3b\u673a\u6ca1\u6709\u8be5\u6587\u4ef6&#xff0c;\u53ef\u53bb\u6389\u8fd9\u4e00\u884c\u5e76\u6539\u7528 YSL_MACHINE_ID \u6307\u5b9a\u56fa\u5b9a\u4e32\u3002<\/li>\n<li>.\/ysl.lic:\/etc\/ysl\/ysl.lic:ro&#xff1a;\u628a\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6388\u6743\u6587\u4ef6\u6302\u8f7d\u5230\u5bb9\u5668\u5185\u7684\u6388\u6743\u8def\u5f84&#xff0c;\u53ea\u8bfb\u6302\u8f7d\u907f\u514d\u5bb9\u5668\u5185\u8bef\u6539\u3002\u6362\u6388\u6743\u65f6\u66ff\u6362\u5bbf\u4e3b\u673a\u4e0a\u7684 .\/ysl.lic \u540e\u6267\u884c docker compose up -d \u91cd\u5efa\u5bb9\u5668\u5373\u53ef\u3002<\/li>\n<li>.\/data\/audit:\/var\/lib\/ysl\/audit&#xff1a;\u5ba1\u8ba1\u65e5\u5fd7\u76ee\u5f55&#xff0c;\u843d\u76d8\u5728\u5bbf\u4e3b\u673a&#xff0c;\u5bb9\u5668\u91cd\u5efa\u6216\u5347\u7ea7\u955c\u50cf\u90fd\u4e0d\u4f1a\u4e22&#xff0c;\u4fbf\u4e8e\u53d6\u8bc1\u548c\u5bf9\u63a5 SIEM\u3002<\/li>\n<li>.\/data\/state:\/var\/lib\/ysl\/state&#xff1a;\u8fd0\u884c\u65f6\u72b6\u6001\u76ee\u5f55&#xff0c;\u4fdd\u5b58\u9650\u6d41\u8ba1\u6570\u3001\u7194\u65ad\u72b6\u6001\u7b49&#xff0c;\u6301\u4e45\u5316\u540e\u91cd\u542f\u4e0d\u4f1a\u628a\u7edf\u8ba1\u53e3\u5f84\u6e05\u96f6\u3002<\/li>\n<li>.\/data\/learned:\/var\/lib\/ysl\/learned&#xff1a;\u81ea\u5b66\u4e60\u4e0e\u6307\u7eb9\u805a\u7c7b\u4ea7\u51fa\u7684\u6a21\u578b\u6570\u636e&#xff0c;\u6301\u4e45\u5316\u540e\u5347\u7ea7\u955c\u50cf\u53ef\u7ee7\u7eed\u6cbf\u7528&#xff0c;\u4e0d\u5fc5\u91cd\u65b0\u8bad\u7ec3\u3002<\/li>\n<\/ul>\n<p>\u4e09\u4e2a\u6570\u636e\u76ee\u5f55\u7531\u5bb9\u5668\u5165\u53e3\u81ea\u52a8\u8865\u5efa\u5e76\u4ea4\u7ed9 uid 1100&#xff0c;\u4e3b\u8fdb\u7a0b\u4e0d\u4ee5 root \u8eab\u4efd\u8fd0\u884c&#xff1b;\u9996\u6b21\u542f\u52a8\u524d\u4e5f\u53ef\u4ee5\u624b\u52a8 mkdir -p data\/audit data\/state data\/learned \u9884\u5efa\u76ee\u5f55\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u63a8\u8350 host \u7f51\u7edc&#xff1a;\u7aef\u53e3\u6620\u5c04\u4f1a\u505a SNAT&#xff0c;\u5ba2\u6237\u7aef\u771f\u5b9e IP \u4f1a\u5168\u90e8\u53d8\u6210\u7f51\u6865\u5730\u5740&#xff0c;\u5bfc\u81f4\u7194\u65ad\u3001\u9650\u6d41\u548c\u6307\u7eb9\u805a\u7c7b\u7684\u300c\u6bcf IP\u300d\u53e3\u5f84\u5168\u90e8\u5931\u6548\u3002\u56e0\u6b64 compose \u4e2d\u5199\u7684\u662f network_mode: host&#xff0c;\u800c\u4e0d\u662f ports:\u3002<\/p>\n<p>\u5b8c\u5168\u4e0d\u8054\u7f51&#xff0c;\u4e09\u6761\u4fdd\u8bc1&#xff1a;<\/p>\n<ul>\n<li>\u955c\u50cf\u5305\u662f docker save \u6253\u5305\u7684\u6574\u5305&#xff0c;\u57fa\u7840\u5c42\u90fd\u5728\u91cc\u9762&#xff1b;<\/li>\n<li>docker load \u4e4b\u540e\u6267\u884c up -d \u4e0d\u4f1a\u518d\u62c9\u53d6\u4efb\u4f55\u5185\u5bb9&#xff1b;<\/li>\n<li>compose \u4e2d\u5199\u7684\u662f image: \u800c\u4e0d\u662f build:&#xff0c;\u4e0d\u4f1a\u89e6\u53d1\u6784\u5efa\u3002<\/li>\n<\/ul>\n<p>\u9ed8\u8ba4\u6302\u8f7d\u4e0e\u914d\u7f6e&#xff1a;\u9ed8\u8ba4\u6302\u8f7d deploy\/ysl.container.json&#xff08;\u5355\u7ad9\u70b9&#xff0c;\u5165\u53e3\u548c\u4e0a\u6e38\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u914d\u7f6e&#xff09;&#xff1b;ysl.prod.json \u662f\u591a\u7ad9\u70b9\u4e0e\u8bc1\u4e66\u7684\u53c2\u8003\u6837\u4f8b&#xff0c;\u5176\u4e2d\u5199\u4e86\u793a\u4f8b\u8bc1\u4e66\u8def\u5f84&#xff0c;\u5957\u7528\u524d\u5fc5\u987b\u5148\u51c6\u5907\u597d\u8bc1\u4e66\u6587\u4ef6&#xff0c;\u5426\u5219\u542f\u52a8\u4f1a\u76f4\u63a5\u5931\u8d25\u3002<\/p>\n<p>\u6388\u6743\u7ed1\u5b9a\u673a\u5668\u7801&#xff1a;\u5bb9\u5668\u5185\u9ed8\u8ba4\u6ca1\u6709 \/etc\/machine-id&#xff0c;compose \u5df2\u5c06\u5bbf\u4e3b\u673a\u4e0a\u7684\u8fd9\u4e00\u4e2a\u6587\u4ef6\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6302\u8f7d\u8fdb\u53bb&#xff1b;Docker Desktop&#xff08;Windows \/ macOS&#xff09;\u5bbf\u4e3b\u673a\u6ca1\u6709\u8fd9\u4e2a\u6587\u4ef6&#xff0c;\u53ef\u6539\u7528 YSL_MACHINE_ID \u6307\u5b9a\u56fa\u5b9a\u4e32\u3002\u6302\u8f7d\u5377\u4e2d\u7684 audit\u3001state\u3001learned \u76ee\u5f55\u7531\u5bb9\u5668\u5165\u53e3\u81ea\u52a8\u8865\u5efa&#xff0c;\u5e76\u4ea4\u7ed9 uid 1100&#xff0c;\u5ba1\u8ba1\u65e5\u5fd7\u7167\u5e38\u843d\u76d8\u53d6\u8bc1&#xff0c;\u4e3b\u8fdb\u7a0b\u4e0d\u4ee5 root \u8eab\u4efd\u8fd0\u884c\u3002<\/p>\n<p>\u5347\u7ea7&#xff1a;\u65b0\u7248\u672c\u955c\u50cf load \u540e&#xff0c;\u6267\u884c docker compose up -d \u91cd\u5efa\u5bb9\u5668\u5373\u53ef&#xff1b;\u914d\u7f6e\u3001\u6388\u6743\u4e0e\u5ba1\u8ba1\u6570\u636e\u90fd\u5728\u5bbf\u4e3b\u673a\u6302\u8f7d\u5377\u4e2d&#xff0c;\u4e0d\u53d7\u955c\u50cf\u66f4\u6362\u5f71\u54cd\u3002<\/p>\n<hr \/>\n<p>\u4ee5\u4e0b\u4e3a\u8fdb\u9636\u53c2\u8003&#xff0c;\u88c5\u5b8c\u80fd\u7528\u5c31\u4e0d\u7528\u5f80\u4e0b\u770b\u3002<\/p>\n<h3>\u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f\u5bf9\u6bd4<\/h3>\n<p>\u4e09\u79cd\u65b9\u5f0f\u4ea4\u4ed8\u7684\u662f\u540c\u4e00\u5957\u5f15\u64ce&#xff0c;\u5dee\u522b\u4e3b\u8981\u5728\u843d\u5730\u6210\u672c\u548c\u53ef\u63a7\u7c92\u5ea6\u4e0a&#xff0c;\u4e0b\u8868\u6309\u4e94\u4e2a\u7ef4\u5ea6\u505a\u4e2a\u5bf9\u7167&#xff1a;<\/p>\n<table>\n<tr>\u5bf9\u6bd4\u7ef4\u5ea6\u4e00\u952e\u811a\u672c setup.sh\u624b\u52a8\u79bb\u7ebf\u5305Docker compose<\/tr>\n<tbody>\n<tr>\n<td>\u9002\u7528\u573a\u666f<\/td>\n<td>\u9996\u6b21\u8bd5\u7528\u3001\u5feb\u901f\u9a8c\u8bc1&#xff0c;\u6216\u4e0d\u60f3\u5173\u5fc3\u5e95\u5c42\u662f Docker \u8fd8\u662f\u88f8\u673a\u7684\u573a\u666f<\/td>\n<td>\u5185\u7f51\u79bb\u7ebf\u73af\u5883\u3001\u9700\u8981\u81ea\u884c\u6821\u9a8c\u5b89\u88c5\u4ecb\u8d28&#xff0c;\u6216\u8981\u6309\u4e8c\u8fdb\u5236\u65b9\u5f0f\u7cbe\u7ec6\u63a7\u5236\u90e8\u7f72\u76ee\u5f55<\/td>\n<td>\u5df2\u6709\u5bb9\u5668\u5316\u8fd0\u7ef4\u4f53\u7cfb&#xff0c;\u9700\u8981\u591a\u7ad9\u70b9\u3001\u8bc1\u4e66\u6302\u8f7d\u3001\u73af\u5883\u53d8\u91cf\u8986\u76d6\u7b49\u7cbe\u7ec6\u914d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td>\u662f\u5426\u9700\u8981\u5916\u7f51<\/td>\n<td>\u9700\u8981&#xff0c;\u811a\u672c\u901a\u8fc7 curl \u4ece\u5b98\u7f51\u62c9\u53d6\u5b89\u88c5\u811a\u672c<\/td>\n<td>\u4e0d\u9700\u8981&#xff0c;\u5b89\u88c5\u5305\u53ef\u79bb\u7ebf\u62f7\u8d1d&#xff0c;\u914d\u5408 SHA256 \u6821\u9a8c<\/td>\n<td>\u4e0d\u9700\u8981&#xff0c;docker load \u52a0\u8f7d\u6574\u5305\u955c\u50cf&#xff0c;up -d \u4e0d\u518d\u62c9\u53d6\u4efb\u4f55\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>\u6388\u6743\u6ce8\u5165\u65b9\u5f0f<\/td>\n<td>\u5b89\u88c5\u540e\u6267\u884c activate.sh \u4e00\u6761\u547d\u4ee4\u6fc0\u6d3b&#xff0c;\u673a\u5668\u7801\u5728\u5b89\u88c5\u5b8c\u6210\u65f6\u6253\u5370<\/td>\n<td>\u624b\u52a8\u6267\u884c ysl license -activate .\/\u5ba2\u6237.lic&#xff0c;\u6388\u6743\u843d\u5230 \/etc\/ysl\/ysl.lic<\/td>\n<td>\u628a .\/ysl.lic \u6302\u8f7d\u5230 \/etc\/ysl\/ysl.lic&#xff0c;\u6216\u7528 YSL_LICENSE \u73af\u5883\u53d8\u91cf\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>\u5347\u7ea7\u65b9\u5f0f<\/td>\n<td>\u91cd\u65b0\u6267\u884c setup.sh&#xff0c;\u811a\u672c\u6309\u5f53\u524d\u73af\u5883\u8d70\u5bf9\u5e94\u5347\u7ea7\u8def\u5f84<\/td>\n<td>\u66ff\u6362\u4e8c\u8fdb\u5236\u6216\u89e3\u538b\u65b0\u7248\u672c\u5305&#xff0c;\u914d\u7f6e\u6587\u4ef6\u4e0e\u5ba1\u8ba1\u6570\u636e\u4fdd\u7559\u5728\u539f\u76ee\u5f55<\/td>\n<td>\u52a0\u8f7d\u65b0\u955c\u50cf\u540e docker compose up -d \u91cd\u5efa\u5bb9\u5668&#xff0c;\u6570\u636e\u5728\u5bbf\u4e3b\u673a\u6302\u8f7d\u5377\u4e2d\u4e0d\u53d7\u5f71\u54cd<\/td>\n<\/tr>\n<tr>\n<td>\u771f\u5b9e\u5ba2\u6237\u7aef IP \u662f\u5426\u4fdd\u7559<\/td>\n<td>\u4fdd\u7559&#xff0c;\u811a\u672c\u6309\u73af\u5883\u751f\u6210\u9ed8\u8ba4\u914d\u7f6e&#xff0c;\u88f8\u673a\u76f4\u63a5\u76d1\u542c\u7aef\u53e3<\/td>\n<td>\u4fdd\u7559&#xff0c;\u4e8c\u8fdb\u5236\u76f4\u63a5\u76d1\u542c\u7aef\u53e3&#xff0c;\u65e0\u989d\u5916\u7f51\u7edc\u5c42<\/td>\n<td>\u4fdd\u7559&#xff0c;\u524d\u63d0\u662f\u4f7f\u7528 network_mode: host&#xff1b;\u82e5\u6539\u7528 ports: \u7aef\u53e3\u6620\u5c04\u4f1a\u505a SNAT&#xff0c;\u771f\u5b9e IP \u4f1a\u53d8\u6210\u7f51\u6865\u5730\u5740<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9009\u578b\u5efa\u8bae&#xff1a;\u53ea\u60f3\u5c3d\u5feb\u8dd1\u8d77\u6765\u9a8c\u8bc1\u6548\u679c&#xff0c;\u76f4\u63a5\u7528 setup.sh \u4e00\u6761\u547d\u4ee4&#xff1b;\u751f\u4ea7\u73af\u5883\u4e14\u5df2\u6709\u5bb9\u5668\u5316\u8fd0\u7ef4\u4f53\u7cfb&#xff0c;\u9009 Docker compose \u5e76\u575a\u6301 host \u7f51\u7edc&#xff1b;\u5b8c\u5168\u79bb\u7ebf\u6216\u9700\u8981\u6309\u4e8c\u8fdb\u5236\u65b9\u5f0f\u638c\u63a7\u90e8\u7f72\u7ec6\u8282&#xff0c;\u5219\u7528\u624b\u52a8\u79bb\u7ebf\u5305\u3002<\/p>\n<h3>\u914d\u7f6e\u6587\u4ef6&#xff08;\u88c5\u5b8c\u901a\u5e38\u4e0d\u7528\u52a8&#xff09;<\/h3>\n<p>\u7edd\u5927\u591a\u6570\u5ba2\u6237\u88c5\u5b8c\u4ec0\u4e48\u90fd\u4e0d\u7528\u6539&#xff0c;setup.sh \u5df2\u751f\u6210\u9ed8\u8ba4\u914d\u7f6e\u5e76\u76f4\u63a5\u542f\u52a8\u3002\u53ea\u6709\u4ee5\u4e0b\u573a\u666f\u624d\u9700\u8981\u6253\u5f00\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<table>\n<tr>\u4f60\u60f3\u505a\u7684\u4e8b\u6539\u54ea\u91cc<\/tr>\n<tbody>\n<tr>\n<td>\u66f4\u6362\u76d1\u542c\u7aef\u53e3&#xff0c;\u6216\u4e0a\u6e38\u4e1a\u52a1\u4e0d\u5728 8080<\/td>\n<td>listen \/ upstream&#xff08;\u5b89\u88c5\u65f6\u5df2\u81ea\u52a8\u751f\u6210&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u7070\u5ea6\u671f\u5148\u53ea\u770b\u4e0d\u62e6&#xff0c;\u8dd1\u7a33\u540e\u518d\u5207\u6362\u62e6\u622a<\/td>\n<td>&#034;sandbox_monitor_only&#034;: true<\/td>\n<\/tr>\n<tr>\n<td>\u7f51\u7ad9\u6709\u4e0a\u4f20\u529f\u80fd&#xff0c;\u60f3\u5173\u95ed\u4e0a\u4f20\u6587\u4ef6\u626b\u63cf<\/td>\n<td>&#034;upload_scan&#034;: false&#xff08;\u9ed8\u8ba4\u5f00\u542f&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u591a\u4e2a\u7f51\u7ad9\u5171\u7528\u540c\u4e00\u53f0 WAF<\/td>\n<td>sites&#xff1a;\u6bcf\u7ad9\u586b\u5199\u57df\u540d\u3001\u4e0a\u6e38\u548c\u8bc1\u4e66&#xff08;\u9ed8\u8ba4\u7a7a\u8868\u793a\u5355\u7ad9\u70b9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5927\u5c4f\u5730\u56fe\u8981\u663e\u793a\u771f\u5b9e\u8bbf\u5ba2\u7ecf\u7eac\u5ea6<\/td>\n<td>geoip_file \u6307\u5411\u79bb\u7ebf GeoIP \u5e93&#xff08;\u683c\u5f0f\u89c1 GeoIP \u4e13\u9898&#xff1b;\u7559\u7a7a\u5219\u663e\u793a\u793a\u610f\u65b9\u4f4d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u63a5\u5165\u4f01\u4e1a\u81ea\u5efa AI \u5224\u5b9a\u670d\u52a1<\/td>\n<td>ai_remote_url&#xff08;\u7559\u7a7a\u5219\u53ea\u7528\u5185\u5d4c\u6a21\u578b&#xff0c;\u79bb\u7ebf\u53ef\u7528&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u914d\u7f6e\u5f00\u5173\u8bfb\u6cd5&#xff08;\u5168\u4ea7\u54c1\u7edf\u4e00&#xff09;&#xff1a;\u4e0d\u5199\u8868\u793a\u9ed8\u8ba4\u5f00\u542f&#xff1b;\u663e\u5f0f\u5199 false \u8868\u793a\u5173\u95ed&#xff1b;\u6570\u503c\u4e3a\u6b63\u6570\u8868\u793a\u5f00\u542f&#xff08;\u5373\u4e0a\u9650\u503c&#xff09;&#xff0c;\u8d1f\u6570\u8868\u793a\u5173\u95ed&#xff1b;\u5b57\u7b26\u4e32\u975e\u7a7a\u8868\u793a\u5f00\u542f&#xff0c;\u7a7a\u5b57\u7b26\u4e32\u8868\u793a\u5173\u95ed\u3002\u5b8c\u6574\u624b\u518c\u5728\u5b89\u88c5\u5305\u5185 docs\/CONFIG.md&#xff08;\u5171 17 \u4e2a\u914d\u7f6e\u7ec4&#xff09;\u3002<\/p>\n<p>\u5185\u7f6e\u5e38\u91cf\u4e0d\u53ef\u8c03&#xff1a;\u56fe\u7247\u50cf\u7d20\u4e0a\u9650\u3001PDF\/zip \u89e3\u538b\u9884\u7b97\u7b49\u662f\u9632\u6b62\u300c\u53c2\u6570\u628a\u9632\u7ebf\u8c03\u7a7f\u300d\u7684\u786c\u8fb9\u754c&#xff0c;\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u65e0\u6cd5\u4fee\u6539&#xff0c;\u8fd9\u662f\u8bef\u62a5\u7387\u7684\u5e95\u7ebf\u3002\u5f15\u64ce\u8c03\u8bd5\u53e3 YSL_ABLATE \u662f\u9a8c\u8bc1\u5de5\u5177\u800c\u975e\u8fd0\u7ef4\u5f00\u5173&#xff0c;\u751f\u4ea7\u73af\u5883\u4e0d\u8981\u6539\u52a8\u3002<\/p>\n<h3>\u5e38\u7528\u547d\u4ee4<\/h3>\n<p>\u65e5\u5e38\u771f\u6b63\u7528\u5230\u7684\u53ea\u6709\u8fd9\u4e94\u6761&#xff0c;\u5176\u4f59\u90fd\u662f\u56de\u5f52\u8c03\u4f18\u5de5\u5177&#xff0c;\u89c1\u672c\u8282\u672b\u5c3e&#xff1a;<\/p>\n<table>\n<tr>\u505a\u4ec0\u4e48\u547d\u4ee4<\/tr>\n<tbody>\n<tr>\n<td>\u542f\u52a8 WAF&#xff08;\u751f\u4ea7\u4e3b\u5165\u53e3&#xff09;<\/td>\n<td>ysl proxy -conf \/etc\/ysl\/config.json<\/td>\n<\/tr>\n<tr>\n<td>\u83b7\u53d6\u673a\u5668\u7801&#xff08;\u7533\u8bf7\u6388\u6743\u7528&#xff09;<\/td>\n<td>ysl license -show<\/td>\n<\/tr>\n<tr>\n<td>\u6fc0\u6d3b\u6536\u5230\u7684\u6388\u6743\u6587\u4ef6<\/td>\n<td>ysl license -activate .\/\u5ba2\u6237.lic<\/td>\n<\/tr>\n<tr>\n<td>\u6388\u6743\u51fa\u95ee\u9898\u65f6\u9010\u9053\u95e8\u7981\u4f53\u68c0<\/td>\n<td>ysl license -check<\/td>\n<\/tr>\n<tr>\n<td>\u6d4b\u8bd5\u67d0\u4e2a URL \u662f\u5426\u4f1a\u88ab\u62e6\u622a&#xff08;\u8f93\u51fa\u5224\u5b9a JSON \u548c\u8bc1\u636e\u94fe&#xff09;<\/td>\n<td>ysl analyze -uri &#034;\/?id&#061;1&#034;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5176\u4f59\u547d\u4ee4&#xff1a;ysl audit \u7528\u4e8e\u5ba1\u8ba1\u67e5\u8be2\u7edf\u8ba1&#xff1b;replay\u3001verify\u3001bench\u3001train\u3001learn\u3001clusters \u662f\u8bed\u6599\u56de\u653e\u3001\u57fa\u51c6\u6d4b\u8bd5\u3001\u6a21\u578b\u8bad\u7ec3\u3001\u6307\u7eb9\u5de1\u68c0\u7b49\u56de\u5f52\u8c03\u4f18\u5de5\u5177&#xff0c;\u65e5\u5e38\u8fd0\u7ef4\u7528\u4e0d\u5230&#xff0c;\u8be6\u89c1\u5b89\u88c5\u5305\u5185 docs\/\u3002<\/p>\n<h3>\u5e38\u89c1\u95ee\u9898\u6392\u67e5<\/h3>\n<p>\u4e0b\u9762\u4e94\u6761\u662f\u90e8\u7f72\u8fc7\u7a0b\u4e2d\u6700\u5e38\u9047\u5230\u7684\u6545\u969c&#xff0c;\u6309\u300c\u73b0\u8c61 \/ \u53ef\u80fd\u539f\u56e0 \/ \u6392\u67e5\u547d\u4ee4\u6216\u6539\u6cd5\u300d\u4e09\u5217\u7ed9\u51fa\u5b9a\u4f4d\u601d\u8def&#xff0c;\u547d\u4ee4\u4e0e\u4e0a\u6587\u4fdd\u6301\u4e00\u81f4&#xff1a;<\/p>\n<table>\n<tr>\u73b0\u8c61\u53ef\u80fd\u539f\u56e0\u6392\u67e5\u547d\u4ee4\u6216\u6539\u6cd5<\/tr>\n<tbody>\n<tr>\n<td>\u6267\u884c bash -c &#034;$(curl -fsSL https:\/\/waf.duduziy.com\/dl\/setup.sh)&#034; \u62a5 curl: (6) Could not resolve host \u6216\u957f\u65f6\u95f4\u65e0\u54cd\u5e94<\/td>\n<td>\u5ba2\u6237\u673a\u65e0\u5916\u7f51\u51fa\u53e3\u3001DNS \u672a\u914d\u7f6e&#xff0c;\u6216\u4ee3\u7406\u62e6\u622a\u4e86 HTTPS \u8bf7\u6c42<\/td>\n<td>\u5148\u786e\u8ba4\u8fde\u901a\u6027&#xff1a;curl -I https:\/\/waf.duduziy.com\/dl\/setup.sh&#xff1b;\u5185\u7f51\u73af\u5883\u6539\u7528\u79bb\u7ebf\u5305&#xff0c;\u6267\u884c docker load -i ysl-shield-7.0.8.tar.gz \u6216 tar xzf ysl-shield-7.0.8-linux-amd64.tar.gz -C \/opt\/ysl<\/td>\n<\/tr>\n<tr>\n<td>docker load \u6210\u529f&#xff0c;\u4f46 docker compose up -d \u540e\u5bb9\u5668\u7acb\u5373\u9000\u51fa<\/td>\n<td>\u6388\u6743\u6587\u4ef6\u672a\u653e\u5230 .\/ysl.lic\u3001\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\u5199\u9519&#xff0c;\u6216\u5bbf\u4e3b\u673a\u7aef\u53e3\u5df2\u88ab\u5360\u7528<\/td>\n<td>\u67e5\u770b\u9000\u51fa\u539f\u56e0&#xff1a;docker compose logs &#8211;tail&#061;100&#xff1b;\u786e\u8ba4\u6388\u6743\u5df2\u5c31\u4f4d ls -l .\/ysl.lic&#xff1b;\u68c0\u67e5\u7aef\u53e3\u5360\u7528 ss -lntp | grep :80<\/td>\n<\/tr>\n<tr>\n<td>ysl license -check \u62a5\u673a\u5668\u7801\u4e0d\u5339\u914d<\/td>\n<td>\u6388\u6743\u6587\u4ef6\u662f\u5728\u53e6\u4e00\u53f0\u673a\u5668\u4e0a\u7b7e\u53d1\u7684&#xff0c;\u6216\u5bb9\u5668\u5185\u7f3a\u5c11 \/etc\/machine-id \u5bfc\u81f4\u673a\u5668\u7801\u53d8\u5316<\/td>\n<td>\u5148\u53d6\u5f53\u524d\u673a\u5668\u7801&#xff1a;ysl license -show&#xff0c;\u4e0e\u7533\u8bf7\u6388\u6743\u65f6\u63d0\u4f9b\u7684\u673a\u5668\u7801\u6bd4\u5bf9&#xff1b;\u5bb9\u5668\u573a\u666f\u786e\u8ba4\u5df2\u53ea\u8bfb\u6302\u8f7d\u5bbf\u4e3b\u673a \/etc\/machine-id&#xff0c;Docker Desktop \u53ef\u6539\u7528 YSL_MACHINE_ID \u6307\u5b9a\u56fa\u5b9a\u4e32<\/td>\n<\/tr>\n<tr>\n<td>\u5df2\u4f7f\u7528 host \u7f51\u7edc&#xff0c;\u4f46\u5ba1\u8ba1\u65e5\u5fd7\u91cc\u5ba2\u6237\u7aef IP \u4ecd\u662f\u7f51\u6865\u5730\u5740<\/td>\n<td>compose \u4e2d\u4ecd\u4fdd\u7559\u4e86 ports: \u7aef\u53e3\u6620\u5c04&#xff0c;\u6216\u6d41\u91cf\u524d\u9762\u8fd8\u6709\u4e00\u5c42\u53cd\u5411\u4ee3\u7406\/NAT<\/td>\n<td>\u68c0\u67e5 compose \u6587\u4ef6&#xff1a;grep -nE &#034;network_mode|ports&#034; docker-compose.yml&#xff0c;\u786e\u8ba4\u5199\u7684\u662f network_mode: host \u4e14\u6ca1\u6709 ports:&#xff1b;\u518d\u9010\u5c42\u786e\u8ba4\u4e0a\u6e38\u4ee3\u7406\u662f\u5426\u900f\u4f20\u771f\u5b9e IP<\/td>\n<\/tr>\n<tr>\n<td>\u5957\u7528 ysl.prod.json \u540e\u542f\u52a8\u76f4\u63a5\u5931\u8d25&#xff0c;\u65e5\u5fd7\u63d0\u793a\u8bc1\u4e66\u76f8\u5173\u9519\u8bef<\/td>\n<td>\u6837\u4f8b\u4e2d\u7684\u8bc1\u4e66\u8def\u5f84\u662f\u793a\u4f8b\u503c&#xff0c;\u5b9e\u9645\u8bc1\u4e66\u6587\u4ef6\u4e0d\u5b58\u5728\u6216\u8def\u5f84\u672a\u6302\u8f7d\u8fdb\u5bb9\u5668<\/td>\n<td>\u6838\u5bf9\u914d\u7f6e\u4e2d\u7684\u8bc1\u4e66\u8def\u5f84&#xff1a;grep -n &#034;cert&#034; \/etc\/ysl\/ysl.prod.json&#xff1b;\u786e\u8ba4\u6587\u4ef6\u5b58\u5728 ls -l \/etc\/ysl\/certs\/&#xff0c;\u5bb9\u5668\u573a\u666f\u8fd8\u9700\u628a\u8bc1\u4e66\u76ee\u5f55\u6302\u8f7d\u8fdb\u5bb9\u5668\u540e\u518d\u6267\u884c docker compose up -d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6392\u67e5\u987a\u5e8f\u5efa\u8bae&#xff1a;\u5148\u770b\u8fdb\u7a0b\u662f\u5426\u8d77\u6765&#xff08;docker compose logs \u6216 ysl proxy -conf \/etc\/ysl\/config.json \u524d\u53f0\u8f93\u51fa&#xff09;&#xff0c;\u518d\u770b\u6388\u6743\u662f\u5426\u901a\u8fc7&#xff08;ysl license -check&#xff09;&#xff0c;\u6700\u540e\u7528 ysl analyze -uri &#034;\/?id&#061;1&#034; \u9a8c\u8bc1\u5355\u8bf7\u6c42\u5224\u5b9a\u94fe\u8def\u662f\u5426\u6b63\u5e38\u3002<\/p>\n<h3>\u5546\u4e1a\u6388\u6743<\/h3>\n<p>\u4e00\u53e5\u8bdd\u6982\u62ec&#xff1a;\u6388\u6743\u6587\u4ef6\u4e0e\u673a\u5668\u7ed1\u5b9a&#xff0c;\u7531 Ed25519 \u79c1\u94a5\u7b7e\u53d1&#xff0c;\u79bb\u7ebf\u6fc0\u6d3b&#xff0c;\u4e0d\u9700\u8981\u8054\u7f51\u3002<\/p>\n<p># \u67e5\u770b\u672c\u673a\u673a\u5668\u7801&#xff08;\u7533\u8bf7\u6388\u6743\u65f6\u63d0\u4f9b&#xff09;<br \/>\n.\/ysl license -show<br \/>\n\u6fc0\u6d3b&#xff1a;\u6821\u9a8c\u5e76\u5b89\u88c5\u6388\u6743\u5230\u7cfb\u7edf\u4f4d\u7f6e&#xff08;\u9ed8\u8ba4\u4ece .\/ysl.lic \u5b89\u88c5\u5230 \/etc\/ysl\/ysl.lic&#xff09;<br \/>\n.\/ysl license -activate .\/\u5ba2\u6237.lic<br \/>\n\u9010\u9053\u95e8\u7981\u6821\u9a8c&#xff08;\u7b7e\u540d\u3001\u673a\u5668\u3001\u6709\u6548\u671f\u3001\u65f6\u949f&#xff09;<br \/>\n.\/ysl license -check <\/p>\n<p>\u5230\u671f\u4f1a\u600e\u6837&#xff1a;\u9632\u62a4\u505c\u6b62&#xff0c;\u4e1a\u52a1\u672c\u8eab\u4e0d\u53d7\u5f71\u54cd&#xff1b;\u7eed\u671f\u540e\u66f4\u6362\u4e00\u4efd\u65b0\u6388\u6743\u6587\u4ef6\u5373\u53ef&#xff0c;\u65e0\u9700\u91cd\u88c5\u4ea7\u54c1&#xff0c;\u914d\u7f6e\u3001\u5ba1\u8ba1\u548c\u89c4\u5219\u5168\u90e8\u4fdd\u7559\u3002<\/p>\n<p>\u6362\u673a\u5668\u6216\u91cd\u88c5\u7cfb\u7edf&#xff1a;\u673a\u5668\u7801\u4f1a\u53d8\u5316&#xff0c;\u8054\u7cfb\u6211\u4eec\u91cd\u65b0\u7b7e\u53d1\u4e00\u4efd\u5373\u53ef&#xff0c;\u8fd9\u5c31\u662f\u300c\u4e00\u673a\u4e00\u7801\u300d\u3002\u8bc4\u4f30\u7248\u8f6c\u6b63\u5f0f\u7248\u540c\u6837\u53ea\u9700\u66f4\u6362\u6388\u6743\u6587\u4ef6\u3002\u6863\u4f4d\u4e0e\u4ef7\u683c\u89c1\u7248\u672c\u4e0e\u6388\u6743&#xff0c;\u7533\u8bf7\u8bd5\u7528\u8bf7\u8054\u7cfb\u6211\u4eec\u3002<\/p>\n<h3>\u5b89\u5168\u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u79c1\u94a5\u7edd\u4e0d\u843d\u670d\u52a1\u5668&#xff1a;\u6388\u6743\u7b7e\u53d1\u79c1\u94a5\u53ea\u5728\u7b7e\u53d1\u7aef&#xff0c;\u4ea7\u54c1\u5305\u4e0e\u5ba2\u6237\u673a\u5747\u4e0d\u5305\u542b\u3002<\/li>\n<li>\u7ba1\u7406\u53f0\u9650\u5185\u7f51&#xff1a;\u5927\u5c4f\u548c\u7ba1\u7406\u63a5\u53e3\u5efa\u8bae\u53ea\u5bf9\u5185\u7f51\u6216 VPN \u5f00\u653e\u3002<\/li>\n<li>\u5ba1\u8ba1\u65e5\u5fd7\u5916\u9001&#xff1a;\u5f00\u542f CEF \u8f93\u51fa&#xff0c;\u53ef\u540c\u6b65\u81f3\u4f01\u4e1a SIEM \u96c6\u4e2d\u7559\u5b58\u3002<\/li>\n<li>DNA \u4fdd\u62a4\u6e05\u5355&#xff1a;\u5c06\u9759\u6001\u9875\u9762\u548c\u5173\u952e\u914d\u7f6e\u7eb3\u5165 DNA \u57fa\u7ebf&#xff0c;\u83b7\u5f97\u7be1\u6539\u8fd8\u539f\u80fd\u529b\u3002<\/li>\n<\/ul>\n<h3><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261029193240-6ae39f5825b93.png\" \/><\/h3>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f\u4ea4\u4ed8\u7684\u662f\u540c\u4e00\u5957\u5f15\u64ce&#xff0c;\u9009\u578b\u7ed3\u8bba\u53ef\u4ee5\u4e00\u53e5\u8bdd\u8bb0\u4f4f&#xff1a;\u53ea\u60f3\u5c3d\u5feb\u9a8c\u8bc1\u6548\u679c\u5c31\u7528 setup.sh \u4e00\u952e\u811a\u672c&#xff0c;\u5b8c\u5168\u79bb\u7ebf\u6216\u9700\u8981\u6309\u4e8c\u8fdb\u5236\u65b9\u5f0f\u638c\u63a7\u90e8\u7f72\u7ec6\u8282\u5c31\u7528\u624b\u52a8\u79bb\u7ebf\u5305&#xff0c;\u751f\u4ea7\u73af\u5883\u4e14\u5df2\u6709\u5bb9\u5668\u5316\u8fd0\u7ef4\u4f53\u7cfb\u5219\u9009 Docker compose \u5e76\u575a\u6301 network_mode: host&#xff0c;\u8fd9\u6837\u65e2\u80fd\u4fdd\u7559\u771f\u5b9e\u5ba2\u6237\u7aef IP&#xff0c;\u4e5f\u80fd\u8ba9\u7194\u65ad\u3001\u9650\u6d41\u548c\u6307\u7eb9\u805a\u7c7b\u7684\u300c\u6bcf IP\u300d\u53e3\u5f84\u6b63\u5e38\u751f\u6548\u3002\u90e8\u7f72\u5b8c\u6210\u540e&#xff0c;\u5efa\u8bae\u6309\u987a\u5e8f\u505a\u5b8c\u4e09\u4ef6\u4e8b\u518d\u4ea4\u7ed9\u4e1a\u52a1\u65b9&#xff1a;\u7b2c\u4e00&#xff0c;\u6267\u884c ysl license -check \u9010\u9053\u95e8\u7981\u6821\u9a8c\u7b7e\u540d\u3001\u673a\u5668\u7801\u3001\u6709\u6548\u671f\u548c\u65f6\u949f&#xff0c;\u786e\u8ba4\u6388\u6743\u72b6\u6001\u6b63\u5e38&#xff1b;\u7b2c\u4e8c&#xff0c;\u6267\u884c ysl analyze -uri &#034;\/?id&#061;1&#034; \u9a8c\u8bc1\u5355\u8bf7\u6c42\u5224\u5b9a\u94fe\u8def&#xff0c;\u786e\u8ba4\u80fd\u8f93\u51fa\u5b8c\u6574\u7684\u52a8\u4f5c\u3001\u5206\u6570\u548c\u8bc1\u636e\u94fe&#xff1b;\u7b2c\u4e09&#xff0c;\u786e\u8ba4\u5ba1\u8ba1\u65e5\u5fd7\u5df2\u6b63\u5e38\u843d\u76d8&#xff08;\u5bb9\u5668\u573a\u666f\u68c0\u67e5\u5bbf\u4e3b\u673a\u6302\u8f7d\u5377\u4e2d\u7684 audit \u76ee\u5f55&#xff0c;\u9700\u8981\u96c6\u4e2d\u7559\u5b58\u65f6\u518d\u5f00\u542f CEF \u8f93\u51fa\u5bf9\u63a5 SIEM&#xff09;\u3002\u8fd9\u4e09\u6b65\u90fd\u901a\u8fc7&#xff0c;\u8bf4\u660e\u9632\u62a4\u3001\u6388\u6743\u548c\u53d6\u8bc1\u4e09\u6761\u94fe\u8def\u5df2\u7ecf\u6253\u901a&#xff0c;\u53ef\u4ee5\u653e\u5fc3\u628a\u5165\u53e3\u6d41\u91cf\u5207\u5230 YSL\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR&#xff1a;YSL \u8bed\u67a2\u00b7\u76fe\u7532 WAF \u4ee5\u4e8c\u8fdb\u5236\u6216\u955c\u50cf\u65b9\u5f0f\u4ea4\u4ed8&#xff0c;\u652f\u6301\u4e00\u952e\u811a\u672c setup.sh\u3001\u624b\u52a8\u79bb\u7ebf\u5305\u3001Docker compose \u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f&#xff0c;\u5ba2\u6237\u4fa7\u65e0\u9700\u7f16\u8bd1&#xff0c;\u4e5f\u4e0d\u4f9d\u8d56\u4efb\u4f55\u8fd0\u884c\u73af\u5883\u3002\u4ea7\u54c1\u5185\u7f6e 30 \u5929\u8bc4\u4f30\u6388\u6743&#xff0c;\u88c5\u5b8c\u5373\u7528&#xff0c;\u8bc4\u4f30\u6ee1\u610f\u540e\u66f4\u6362\u6388\u6743\u6587\u4ef6\u5373\u53ef\u8f6c\u4e3a\u6b63\u5f0f\u7248&#xff0c;\u914d\u7f6e\u3001\u5ba1\u8ba1\u548c\u89c4\u5219\u5168\u90e8\u4fdd\u7559\u3002\u751f\u4ea7\u73af\u5883\u63a8\u8350\u4f7f\u7528 Docker compose \u5e76\u575a\u6301 network_mode: hos<\/p>\n","protected":false},"author":2,"featured_media":119646,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13178,13647,13646,275,188,122],"topic":[],"class_list":["post-119647","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-1024---","tag-waf","tag-0day","tag-web","tag-188","tag-122"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/119647.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"TL;DR&#xff1a;YSL \u8bed\u67a2\u00b7\u76fe\u7532 WAF \u4ee5\u4e8c\u8fdb\u5236\u6216\u955c\u50cf\u65b9\u5f0f\u4ea4\u4ed8&#xff0c;\u652f\u6301\u4e00\u952e\u811a\u672c setup.sh\u3001\u624b\u52a8\u79bb\u7ebf\u5305\u3001Docker compose \u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f&#xff0c;\u5ba2\u6237\u4fa7\u65e0\u9700\u7f16\u8bd1&#xff0c;\u4e5f\u4e0d\u4f9d\u8d56\u4efb\u4f55\u8fd0\u884c\u73af\u5883\u3002\u4ea7\u54c1\u5185\u7f6e 30 \u5929\u8bc4\u4f30\u6388\u6743&#xff0c;\u88c5\u5b8c\u5373\u7528&#xff0c;\u8bc4\u4f30\u6ee1\u610f\u540e\u66f4\u6362\u6388\u6743\u6587\u4ef6\u5373\u53ef\u8f6c\u4e3a\u6b63\u5f0f\u7248&#xff0c;\u914d\u7f6e\u3001\u5ba1\u8ba1\u548c\u89c4\u5219\u5168\u90e8\u4fdd\u7559\u3002\u751f\u4ea7\u73af\u5883\u63a8\u8350\u4f7f\u7528 Docker compose \u5e76\u575a\u6301 network_mode: hos\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/119647.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-29T19:32:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261029193240-6ae39f5825b93.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119647.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/119647.html\",\"name\":\"YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-29T19:32:42+00:00\",\"dateModified\":\"2026-10-29T19:32:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/119647.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/119647.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119647.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/119647.html","og_locale":"zh_CN","og_type":"article","og_title":"YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"TL;DR&#xff1a;YSL \u8bed\u67a2\u00b7\u76fe\u7532 WAF \u4ee5\u4e8c\u8fdb\u5236\u6216\u955c\u50cf\u65b9\u5f0f\u4ea4\u4ed8&#xff0c;\u652f\u6301\u4e00\u952e\u811a\u672c setup.sh\u3001\u624b\u52a8\u79bb\u7ebf\u5305\u3001Docker compose \u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f&#xff0c;\u5ba2\u6237\u4fa7\u65e0\u9700\u7f16\u8bd1&#xff0c;\u4e5f\u4e0d\u4f9d\u8d56\u4efb\u4f55\u8fd0\u884c\u73af\u5883\u3002\u4ea7\u54c1\u5185\u7f6e 30 \u5929\u8bc4\u4f30\u6388\u6743&#xff0c;\u88c5\u5b8c\u5373\u7528&#xff0c;\u8bc4\u4f30\u6ee1\u610f\u540e\u66f4\u6362\u6388\u6743\u6587\u4ef6\u5373\u53ef\u8f6c\u4e3a\u6b63\u5f0f\u7248&#xff0c;\u914d\u7f6e\u3001\u5ba1\u8ba1\u548c\u89c4\u5219\u5168\u90e8\u4fdd\u7559\u3002\u751f\u4ea7\u73af\u5883\u63a8\u8350\u4f7f\u7528 Docker compose \u5e76\u575a\u6301 network_mode: hos","og_url":"https:\/\/www.wsisp.com\/helps\/119647.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-29T19:32:42+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261029193240-6ae39f5825b93.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/119647.html","url":"https:\/\/www.wsisp.com\/helps\/119647.html","name":"YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-29T19:32:42+00:00","dateModified":"2026-10-29T19:32:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/119647.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/119647.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/119647.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"YSL\u8bed\u67a2\u00b7\u76fe\u7532 WAF \u90e8\u7f72\u6559\u7a0b\uff1a\u4ece\u73af\u5883\u51c6\u5907\u5230\u4e0a\u7ebf\u9a8c\u8bc1"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=119647"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119647\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/119646"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=119647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=119647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=119647"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=119647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}