{"id":1336,"date":"2026-11-01T21:10:45","date_gmt":"2026-11-01T13:10:45","guid":{"rendered":"https:\/\/www.asaeo.com\/?p=1336"},"modified":"2026-11-01T21:10:45","modified_gmt":"2026-11-01T13:10:45","slug":"%e5%ae%89%e5%85%a8%e7%bb%84%e5%b7%b2%e6%94%be%e8%a1%8c%ef%bc%8c%e7%ab%af%e5%8f%a3%e4%bb%8d%e4%b8%8d%e9%80%9a%ef%bc%9f%e5%85%88%e6%9f%a5%e7%9b%91%e5%90%ac%e3%80%81%e7%b3%bb%e7%bb%9f%e9%98%b2%e7%81%ab","status":"publish","type":"post","link":"https:\/\/www.asaeo.com\/?p=1336","title":{"rendered":"\u5b89\u5168\u7ec4\u5df2\u653e\u884c\uff0c\u7aef\u53e3\u4ecd\u4e0d\u901a\uff1f\u5148\u67e5\u76d1\u542c\u3001\u7cfb\u7edf\u9632\u706b\u5899\u548c\u4e91\u7aef\u89c4\u5219"},"content":{"rendered":"<div class=\"yd-practical-guide\" style=\"font-size:16px;line-height:1.9\">\n<p>\u63a7\u5236\u53f0\u5df2\u7ecf\u653e\u884c8080\uff0c\u5916\u9762\u4ecd\u7136\u8fde\u4e0d\u4e0a\uff0c\u7ee7\u7eed\u52a0\u89c4\u5219\u5f80\u5f80\u6ca1\u7528\u3002\u5b89\u5168\u7ec4\u53ea\u51b3\u5b9a\u6d41\u91cf\u80fd\u5426\u7ecf\u8fc7\u4e91\u7aef\u8fd9\u4e00\u5c42\uff1b\u670d\u52a1\u5668\u91cc\u8fd8\u8981\u6709\u670d\u52a1\u63a5\u6536\u8fde\u63a5\uff0c\u7cfb\u7edf\u9632\u706b\u5899\u4e5f\u8981\u5141\u8bb8\u5b83\u901a\u8fc7\u3002\u5148\u628a\u8fd9\u4e09\u5c42\u5206\u5f00\u67e5\uff0c\u624d\u80fd\u77e5\u9053\u8be5\u6539\u54ea\u91cc\u3002<\/p>\n<p><small>\u672c\u6587\u4ee5Linux\u670d\u52a1\u5668\u548cUbuntu UFW\u4e3a\u4f8b\uff0c\u4f9d\u636e\u5b98\u65b9\u6587\u6863\u6574\u7406\uff0c\u6838\u9a8c\u65e5\u671f\u4e3a2026\u5e7411\u67081\u65e5\u3002\u914d\u56fe\u4e3a\u5b98\u65b9\u9875\u9762\u771f\u5b9e\u622a\u56fe\uff0c\u547d\u4ee4\u548c\u5730\u5740\u793a\u4f8b\u4e0d\u4ee3\u8868\u672c\u7ad9\u670d\u52a1\u5668\u7684\u5b9e\u6d4b\u7ed3\u679c\u3002<\/small><\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">1. \u5148\u786e\u8ba4\u6d4b\u7684\u662f\u54ea\u4e00\u4e2a\u5165\u53e3<\/h2>\n<p>\u8bb0\u4e0b\u76ee\u6807IP\u3001\u7aef\u53e3\u3001TCP\u6216UDP\uff0c\u4ee5\u53ca\u53d1\u8d77\u6d4b\u8bd5\u7684\u4f4d\u7f6e\u3002\u57df\u540d\u6709AAAA\u8bb0\u5f55\u65f6\uff0c\u5ba2\u6237\u7aef\u53ef\u80fd\u6b63\u5728\u8bbf\u95eeIPv6\uff0c\u800c\u4f60\u53ea\u6838\u5bf9\u4e86IPv4\u89c4\u5219\u3002\u4f7f\u7528CDN\u3001\u53cd\u5411\u4ee3\u7406\u6216\u7aef\u53e3\u6620\u5c04\u65f6\uff0c\u516c\u7f51\u5165\u53e3\u548c\u540e\u7aef\u5b9e\u9645\u7aef\u53e3\u4e5f\u53ef\u80fd\u4e0d\u540c\u3002<\/p>\n<p>\u4e0d\u8981\u628a\u201cping\u4e0d\u901a\u201d\u7b49\u540c\u4e8e\u4e1a\u52a1\u7aef\u53e3\u88ab\u5c01\uff1bICMP\u548cTCP\u4e0d\u662f\u540c\u4e00\u79cd\u68c0\u67e5\u3002\u80fd\u6253\u5f00\u7f51\u7ad9\uff0c\u4e5f\u4e0d\u80fd\u8bc1\u660e\u540c\u4e00\u53f0\u673a\u5668\u7684SSH\u6216\u6570\u636e\u5e93\u7aef\u53e3\u5df2\u7ecf\u653e\u884c\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">2. \u5728\u670d\u52a1\u5668\u4e0a\u770b\u6709\u6ca1\u6709\u76d1\u542c<\/h2>\n<pre style=\"padding:18px;background:#f4f7fb;border:1px solid #e0e7f0;border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere\"><code>sudo ss -lntp<\/code><\/pre>\n<p>\u901a\u8fc7\u5df2\u6709SSH\u4f1a\u8bdd\u3001\u7ba1\u7406\u7ec8\u7aef\u6216\u63a7\u5236\u53f0\u6267\u884c\u3002\u8fd9\u6761\u547d\u4ee4\u53ea\u5217TCP\u76d1\u542c\uff1a<code>-l<\/code>\u770b\u76d1\u542c\uff0c<code>-n<\/code>\u7528\u6570\u5b57\u663e\u793a\u5730\u5740\u548c\u7aef\u53e3\uff0c<code>-t<\/code>\u9009TCP\uff0c<code>-p<\/code>\u663e\u793a\u76f8\u5173\u8fdb\u7a0b\u3002\u6ca1\u6709\u6743\u9650\u65f6\uff0c\u8fdb\u7a0b\u4fe1\u606f\u53ef\u80fd\u4e0d\u5b8c\u6574\u3002<\/p>\n<table style=\"width:100%;border-collapse:collapse;font-size:14px;margin:20px 0\">\n<thead>\n<tr>\n<th style=\"padding:12px;border:1px solid #dce4ef;text-align:left;background:#f2f6fc\">\u770b\u5230\u7684\u5730\u5740<\/th>\n<th style=\"padding:12px;border:1px solid #dce4ef;text-align:left;background:#f2f6fc\">\u600e\u4e48\u5224\u65ad<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">127.0.0.1:\u7aef\u53e3<\/td>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u4ec5\u672c\u673aIPv4\u56de\u73af\u63a5\u6536\uff0c\u5916\u90e8\u4e0d\u80fd\u76f4\u63a5\u8fde\u5230\u5b83\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">0.0.0.0:\u7aef\u53e3<\/td>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u76d1\u542c\u672c\u673a\u6240\u6709IPv4\u5730\u5740\uff0c\u4ecd\u4e0d\u4ee3\u8868\u9632\u706b\u5899\u5df2\u653e\u884c\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">[::]:\u7aef\u53e3<\/td>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">IPv6\u901a\u914d\u76d1\u542c\uff1b\u662f\u5426\u540c\u65f6\u63a5\u6536IPv4\u8fd8\u53d7\u7a0b\u5e8f\u548c\u7cfb\u7edf\u8bbe\u7f6e\u5f71\u54cd\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u627e\u4e0d\u5230\u76ee\u6807\u7aef\u53e3<\/td>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u6838\u5bf9\u7a0b\u5e8f\u662f\u5426\u542f\u52a8\u3001\u914d\u7f6e\u7aef\u53e3\u53ca\u5bb9\u5668\u7f51\u7edc\u547d\u540d\u7a7a\u95f4\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u540e\u7aef\u7a0b\u5e8f\u53ea\u76d1\u542c127.0.0.1\uff0c\u7ecf\u540c\u673aNginx\u8f6c\u53d1\uff0c\u672c\u6765\u5c31\u53ef\u80fd\u662f\u6b63\u786e\u8bbe\u8ba1\u3002\u4e0d\u8981\u4e3a\u4e86\u201c\u5916\u7f51\u80fd\u76f4\u8fde\u201d\u4e00\u5f8b\u6539\u62100.0.0.0\uff0c\u66f4\u4e0d\u8981\u628a\u6570\u636e\u5e93\u548c\u7ba1\u7406\u63a5\u53e3\u987a\u624b\u516c\u5f00\u3002<\/p>\n<figure style=\"margin:26px 0\"><a href=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-listen-20261101.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"815\" height=\"353\" class=\"aligncenter size-full wp-image-1327\" src=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-listen-20261101.jpg\" alt=\"Ubuntu ss\u5b98\u65b9\u624b\u518c\uff1a\u6570\u5b57\u5730\u5740\u4e0e\u76d1\u542c\u7b5b\u9009\" loading=\"lazy\" style=\"display:block;width:100%;height:auto;border:1px solid #e5eaf2;border-radius:8px\" srcset=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-listen-20261101.jpg 815w, https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-listen-20261101-300x130.jpg 300w, https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-listen-20261101-768x333.jpg 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/a><figcaption style=\"font-size:13px;line-height:1.7;color:#67758a;margin-top:9px\">Ubuntu\u5b98\u65b9ss\u624b\u518c\uff1a-n\u4f7f\u7528\u6570\u5b57\u5730\u5740\u548c\u7aef\u53e3\uff0c-l\u7b5b\u9009\u76d1\u542c\uff1b\u672c\u6587\u547d\u4ee4\u4f7f\u7528-t\u53ea\u67e5TCP\uff0cUDP\u9700\u6539\u7528-u\u3002 <a href=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-listen-20261101.jpg\" target=\"_blank\" rel=\"noopener\">\u67e5\u770b\u622a\u56fe<\/a> \u00b7 <a href=\"https:\/\/manpages.ubuntu.com\/manpages\/noble\/man8\/ss.8.html\" target=\"_blank\" rel=\"noopener\">\u5b98\u65b9\u539f\u6587<\/a><\/figcaption><\/figure>\n<p>\u6392\u67e5UDP\u65f6\u6362\u6210<code>sudo ss -lnup<\/code>\uff1b\u53ea\u770bIPv4\u6216IPv6\u53ef\u5206\u522b\u4f7f\u7528<code>sudo ss -4lntp<\/code>\u3001<code>sudo ss -6lntp<\/code>\u3002UDP\u670d\u52a1\u4e0d\u4e00\u5b9a\u50cfTCP\u90a3\u6837\u56de\u5e94\u63a2\u6d4b\uff0c\u6ca1\u6536\u5230\u56de\u590d\u4e0d\u80fd\u5355\u72ec\u8bc1\u660e\u7aef\u53e3\u5173\u95ed\u3002\u5bb9\u5668\u91cc\u7684\u76d1\u542c\uff0c\u8fd8\u8981\u4e0e\u5bbf\u4e3b\u673a\u53d1\u5e03\u7aef\u53e3\u5bf9\u5e94\u6838\u5bf9\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">3. \u67e5\u770bUFW\uff0c\u4f46\u522b\u628a\u5b83\u5f53\u6210\u5168\u90e8\u89c4\u5219<\/h2>\n<pre style=\"padding:18px;background:#f4f7fb;border:1px solid #e0e7f0;border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere\"><code>sudo ufw status verbose\r\nsudo ufw status numbered<\/code><\/pre>\n<p>\u68c0\u67e5\u72b6\u6001\u3001\u5165\u7ad9\u9ed8\u8ba4\u7b56\u7565\u3001\u76ee\u6807\u7aef\u53e3\u3001\u534f\u8bae\u548c\u6765\u6e90\u5730\u5740\u3002<code>numbered<\/code>\u4fbf\u4e8e\u8bc6\u522b\u89c4\u5219\u987a\u5e8f\uff1b\u4e0d\u8981\u770b\u5230\u7f16\u53f7\u5c31\u76f4\u63a5\u5220\u9664\uff0c\u56e0\u4e3a\u5220\u9664\u540e\u540e\u7eed\u7f16\u53f7\u4f1a\u53d8\u5316\u3002<\/p>\n<p><code>Status: inactive<\/code>\u53ea\u8868\u793aUFW\u672a\u5904\u4e8e\u542f\u7528\u72b6\u6001\uff0c\u4e0d\u80fd\u8bc1\u660e\u6574\u53f0\u673a\u5668\u6ca1\u6709\u5176\u4ed6\u8fc7\u6ee4\u3002UFW\u7684\u72b6\u6001\u5217\u8868\u4e5f\u4e0d\u662f\u5b8c\u6574\u89c4\u5219\u5ba1\u8ba1\uff1a\u5176\u4ed6iptables\u3001nftables\u3001\u9762\u677f\u3001\u5bb9\u5668\u6216\u5b89\u5168\u8f6f\u4ef6\u89c4\u5219\u4ecd\u9700\u7ed3\u5408\u5b9e\u9645\u90e8\u7f72\u6392\u67e5\u3002\u6709\u591a\u5957\u7ba1\u7406\u5de5\u5177\u65f6\uff0c\u5148\u786e\u8ba4\u8c01\u8d1f\u8d23\u89c4\u5219\uff0c\u4e0d\u8981\u4e92\u76f8\u8986\u76d6\u3002\u5982\u679c\u4f7f\u7528Docker\u53d1\u5e03\u5bb9\u5668\u7aef\u53e3\uff0c\u8fd8\u8981\u6838\u5bf9\u5b9e\u9645\u7aef\u53e3\u6620\u5c04\u4e0eDocker\u751f\u6210\u7684\u89c4\u5219\u3002Docker\u53d1\u5e03\u7684\u6d41\u91cf\u53ef\u80fd\u5728\u5230\u8fbeUFW\u524d\u7ecf\u8fc7NAT\u8f6c\u53d1\uff0c\u4e0d\u80fd\u53ea\u51edUFW\u62d2\u7edd\u89c4\u5219\u5c31\u8ba4\u5b9a\u5bb9\u5668\u7aef\u53e3\u672a\u5bf9\u5916\u66b4\u9732\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">4. \u8fdc\u7a0b\u6392\u9519\u65f6\uff0c\u522b\u628a\u81ea\u5df1\u9501\u5728\u5916\u9762<\/h2>\n<p>\u4e0d\u8981\u76f4\u63a5\u7981\u7528\u3001\u91cd\u7f6e\u9632\u706b\u5899\uff0c\u4e5f\u4e0d\u8981\u628a\u5168\u90e8\u7aef\u53e3\u5f00\u653e\u7ed9\u6240\u6709\u6765\u6e90\u3002\u5c24\u5176\u4e0d\u8981\u5728\u6ca1\u6709\u53ef\u7528\u63a7\u5236\u53f0\u6216\u6551\u63f4\u901a\u9053\u65f6\u8d38\u7136\u6267\u884c<code>ufw enable<\/code>\uff1b\u5b98\u65b9\u624b\u518c\u63d0\u9192\uff0c\u542f\u7528\u65f6\u53ef\u80fd\u5f71\u54cd\u5df2\u6709SSH\u8fde\u63a5\u3002<\/p>\n<figure style=\"margin:26px 0\"><a href=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-remote-20261101.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"815\" height=\"197\" class=\"aligncenter size-full wp-image-1328\" src=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-remote-20261101.jpg\" alt=\"Ubuntu UFW\u5b98\u65b9\u624b\u518c\uff1a\u8fdc\u7a0b\u542f\u7528\u4e0eSSH\u4e2d\u65ad\u98ce\u9669\" loading=\"lazy\" style=\"display:block;width:100%;height:auto;border:1px solid #e5eaf2;border-radius:8px\" srcset=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-remote-20261101.jpg 815w, https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-remote-20261101-300x73.jpg 300w, https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-remote-20261101-768x186.jpg 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/a><figcaption style=\"font-size:13px;line-height:1.7;color:#67758a;margin-top:9px\">Ubuntu\u5b98\u65b9UFW\u624b\u518c\u63d0\u9192\uff1a\u542f\u7528\u9632\u706b\u5899\u4f1a\u5237\u65b0\u5176\u89c4\u5219\u94fe\uff0c\u53ef\u80fd\u5f71\u54cd\u5df2\u6709SSH\u8fde\u63a5\u3002\u6b63\u5f0f\u53d8\u66f4\u524d\uff0c\u5e94\u5148\u4fdd\u7559\u53ef\u7528\u7684\u7ba1\u7406\u901a\u9053\u3002 <a href=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd2-firewall-remote-20261101.jpg\" target=\"_blank\" rel=\"noopener\">\u67e5\u770b\u622a\u56fe<\/a> \u00b7 <a href=\"https:\/\/manpages.ubuntu.com\/manpages\/jammy\/man8\/ufw.8.html\" target=\"_blank\" rel=\"noopener\">\u5b98\u65b9\u539f\u6587<\/a><\/figcaption><\/figure>\n<p>\u82e5\u5df2\u7ecf\u786e\u8ba4UFW\u6b63\u5728\u4f7f\u7528\uff0c\u4e14\u786e\u5b9e\u7f3a\u5c11\u4e00\u6761\u7ba1\u7406\u8bbf\u95ee\u89c4\u5219\uff0c\u53ef\u5148\u9884\u6f14\u9700\u8981\u6dfb\u52a0\u7684\u89c4\u5219\uff1a<\/p>\n<pre style=\"padding:18px;background:#f4f7fb;border:1px solid #e0e7f0;border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere\"><code>sudo ufw --dry-run allow from ADMIN_PUBLIC_IP to any port SSH_PORT proto tcp<\/code><\/pre>\n<p>\u5148\u628a<code>ADMIN_PUBLIC_IP<\/code>\u6362\u6210\u7ba1\u7406\u7aef\u5b9e\u9645\u51fa\u53e3IP\uff0c\u628a<code>SSH_PORT<\/code>\u6362\u6210\u5f53\u524dSSH\u76d1\u542c\u7aef\u53e3\uff1b\u8fd9\u4e24\u4e2a\u5b57\u7b26\u4e32\u4e0d\u80fd\u539f\u6837\u6267\u884c\uff0c\u4e5f\u4e0d\u80fd\u9ed8\u8ba4\u7167\u628422\u3002<code>--dry-run<\/code>\u53ea\u663e\u793a\u8ba1\u5212\uff0c\u4e0d\u5e94\u7528\u89c4\u5219\u3002\u6b63\u5f0f\u53d8\u66f4\u524d\u5e94\u68c0\u67e5\u5df2\u6709\u62d2\u7edd\u89c4\u5219\u53ca\u987a\u5e8f\uff0c\u5e76\u4fdd\u7559\u539f\u4f1a\u8bdd\uff0c\u7528\u7b2c\u4e8c\u4e2a\u8fde\u63a5\u9a8c\u6536\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">5. \u6700\u540e\u6838\u5bf9\u4e91\u7aef\u89c4\u5219\u548c\u7ed3\u679c<\/h2>\n<p>\u5230\u670d\u52a1\u5546\u63a7\u5236\u53f0\u786e\u8ba4\u89c4\u5219\u7ed1\u5b9a\u7684\u662f\u8fd9\u53f0\u5b9e\u4f8b\u6216\u5bf9\u5e94\u7f51\u5361\uff0c\u5165\u7ad9\u534f\u8bae\u3001\u7aef\u53e3\u548c\u6765\u6e90\u8303\u56f4\u90fd\u4e0e\u672c\u6b21\u6d4b\u8bd5\u4e00\u81f4\uff1b\u5b58\u5728NAT\u6216\u5176\u4ed6\u7f51\u7edc\u8fc7\u6ee4\u65f6\uff0c\u4e5f\u8981\u6838\u5bf9\u5bf9\u5e94\u5c42\u3002\u53ea\u7ed9\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u6216\u53e6\u4e00\u4e2aIP\u7248\u672c\u52a0\u89c4\u5219\uff0c\u4e0d\u4f1a\u89e3\u51b3\u5f53\u524d\u8fde\u63a5\u95ee\u9898\u3002<\/p>\n<p>\u590d\u6d4b\u65f6\u4fdd\u6301\u76ee\u6807\u3001\u534f\u8bae\u548c\u6765\u6e90\u4e00\u81f4\uff0c\u4e00\u6b21\u53ea\u6539\u4e00\u5904\u3002\u63d0\u4ea4\u5de5\u5355\u53ef\u9644\u5b9e\u9645\u62a5\u9519\u3001\u6d4b\u8bd5\u65f6\u95f4\u3001\u6765\u6e90\u8fd0\u8425\u5546\u3001\u76d1\u542c\u7ed3\u679c\u53ca\u76f8\u5173\u89c4\u5219\u622a\u56fe\uff1b\u5bf9\u5916\u53d1\u9001\u524d\u906e\u4f4f\u7ba1\u7406\u5730\u5740\u548c\u65e0\u5173\u670d\u52a1\u4fe1\u606f\u3002\u201c\u8d85\u65f6\u201d\u6216\u201c\u62d2\u7edd\u8fde\u63a5\u201d\u90fd\u662f\u6392\u67e5\u7ebf\u7d22\uff0c\u4e0d\u80fd\u4ec5\u51ed\u8fd9\u4e00\u53e5\u8bdd\u8ba4\u5b9a\u662f\u54ea\u4e00\u5c42\u62e6\u622a\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">\u5b98\u65b9\u53c2\u8003<\/h2>\n<ul>\n<li><a href=\"https:\/\/manpages.ubuntu.com\/manpages\/noble\/man8\/ss.8.html\" target=\"_blank\" rel=\"noopener\">Ubuntu\uff1ass\u76d1\u542c\u4e0e\u534f\u8bae\u7b5b\u9009\u624b\u518c<\/a><\/li>\n<li><a href=\"https:\/\/manpages.ubuntu.com\/manpages\/jammy\/man8\/ufw.8.html\" target=\"_blank\" rel=\"noopener\">Ubuntu\uff1aUFW\u72b6\u6001\u3001\u89c4\u5219\u548c\u8fdc\u7a0b\u7ba1\u7406\u624b\u518c<\/a><\/li>\n<li><a href=\"https:\/\/documentation.ubuntu.com\/security\/security-features\/network\/firewall\/\" target=\"_blank\" rel=\"noopener\">Ubuntu\uff1aLinux\u9632\u706b\u5899\u4e0eNetfilter<\/a><\/li>\n<li><a href=\"https:\/\/ubuntu.com\/server\/docs\/firewalls\/\" target=\"_blank\" rel=\"noopener\">Ubuntu Server\uff1aUFW\u914d\u7f6e\u8bf4\u660e<\/a><\/li>\n<li><a href=\"https:\/\/docs.digitalocean.com\/support\/how-do-i-debug-a-firewall-causing-connection-problems-with-my-droplet\/\" target=\"_blank\" rel=\"noopener\">DigitalOcean\uff1a\u4e91\u7aef\u4e0e\u7cfb\u7edf\u9632\u706b\u5899\u8fde\u63a5\u6392\u67e5<\/a><\/li>\n<li><a href=\"https:\/\/manpages.ubuntu.com\/manpages\/noble\/man7\/ip.7.html\" target=\"_blank\" rel=\"noopener\">Ubuntu\uff1aIPv4\u76d1\u542c\u5730\u5740\u4e0e\u56de\u73af\u5730\u5740<\/a><\/li>\n<li><a href=\"https:\/\/docs.docker.com\/engine\/network\/packet-filtering-firewalls\/\" target=\"_blank\" rel=\"noopener\">Docker\uff1a\u7aef\u53e3\u53d1\u5e03\u3001\u5305\u8fc7\u6ee4\u4e0eUFW\u517c\u5bb9\u6027<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u653e\u884c\u5b89\u5168\u7ec4\u4e0d\u7b49\u4e8e\u670d\u52a1\u80fd\u8fde\u63a5\u3002\u7528ss\u786e\u8ba4\u76d1\u542c\u5730\u5740\u4e0eTCP\/UDP\uff0c\u518d\u67e5UFW\u3001IPv4\/IPv6\u548c\u4e91\u7aef\u89c4\u5219\uff0c\u907f\u514d\u76f2\u76ee\u5f00\u653e\u5168\u90e8\u7aef\u53e3\u6216\u65ad\u5f00SSH\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[235],"tags":[265,262,263,264],"class_list":["post-1336","post","type-post","status-publish","format-standard","hentry","category-235","tag-ufw","tag-262","tag-263","tag-264"],"_links":{"self":[{"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/posts\/1336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1336"}],"version-history":[{"count":1,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/posts\/1336\/revisions"}],"predecessor-version":[{"id":1337,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/posts\/1336\/revisions\/1337"}],"wp:attachment":[{"href":"https:\/\/www.asaeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}