{"id":123296,"date":"2026-11-07T01:16:56","date_gmt":"2026-11-06T17:16:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/123296.html"},"modified":"2026-11-07T01:16:56","modified_gmt":"2026-11-06T17:16:56","slug":"%e8%bf%90%e7%bb%b4%e7%ac%94%e8%ae%b0%ef%bc%9a%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%bf%e9%97%ae-ip-%e6%8e%92%e6%9f%a5%e3%80%81%e5%ae%9a%e4%bd%8d%e4%b8%8e%e5%b0%81%e7%a6%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/123296.html","title":{"rendered":"\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981"},"content":{"rendered":"<h2>\u8fd0\u7ef4\u7b14\u8bb0&#xff1a;\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981<\/h2>\n<p>\u5728\u4f7f\u7528 FRP \u5c06\u5185\u7f51\u670d\u52a1\u6620\u5c04\u5230\u516c\u7f51\u540e&#xff0c;\u6709\u65f6\u9700\u8981\u786e\u8ba4\u54ea\u4e9b IP \u6b63\u5728\u8bbf\u95ee\u670d\u52a1&#xff0c;\u5e76\u5bf9\u5f02\u5e38 IP \u8fdb\u884c\u9650\u5236\u3002\u8fd9\u7bc7\u7b14\u8bb0\u8bb0\u5f55\u4e00\u5957\u9002\u7528\u4e8e Ubuntu\/Debian\u3001FRPS \u548c UFW \u7684\u5e38\u7528\u6392\u67e5\u65b9\u6cd5\u3002<\/p>\n<p>\u4ee5\u4e0b\u547d\u4ee4\u5e94\u5728\u8fd0\u884c \u516c\u7f51\u670d\u52a1\u5668\u4e0a\u6267\u884c\u3002\u6587\u4e2d\u7edf\u4e00\u4f7f\u7528\u6f14\u793a\u7aef\u53e3 6000&#xff0c;\u8bf7\u6309\u5b9e\u9645\u60c5\u51b5\u66ff\u6362\u3002<\/p>\n<h3>\u4e00\u3001\u67e5\u770b\u5f53\u524d\u6b63\u5728\u8bbf\u95ee\u7aef\u53e3\u7684 IP<\/h3>\n<p>\u67e5\u770b 6000 \u7aef\u53e3\u5f53\u524d\u5df2\u7ecf\u5efa\u7acb\u7684 TCP \u8fde\u63a5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ss <span class=\"token parameter variable\">-ntp<\/span> <span class=\"token string\">&#039;sport &#061; :6000&#039;<\/span><\/p>\n<p>\u5178\u578b\u8f93\u51fa&#xff1a;<\/p>\n<p>ESTAB 0 0 [::ffff:198.51.100.10]:6000 [::ffff:203.0.113.42]:49152 users:((&#034;frps&#034;,pid&#061;1234,fd&#061;18))<\/p>\n<p>\u8fd9\u91cc&#xff1a;<\/p>\n<ul>\n<li>198.51.100.10:6000 \u662f\u793a\u4f8b\u670d\u52a1\u5668\u5730\u5740\u548c\u88ab\u8bbf\u95ee\u7684\u7aef\u53e3&#xff1b;<\/li>\n<li>203.0.113.42:49152 \u662f\u793a\u4f8b\u8bbf\u95ee\u8005 IP \u548c\u4e34\u65f6\u6e90\u7aef\u53e3&#xff1b;<\/li>\n<li>frps \u8868\u793a\u8fde\u63a5\u7531 FRP \u670d\u52a1\u63a5\u6536&#xff1b;<\/li>\n<li>ESTAB \u8868\u793a\u8fde\u63a5\u76ee\u524d\u4ecd\u7136\u5904\u4e8e\u5efa\u7acb\u72b6\u6001&#xff1b;<\/li>\n<li>::ffff: \u662f IPv4 \u6620\u5c04\u4e3a IPv6 \u7684\u663e\u793a\u5f62\u5f0f&#xff0c;\u771f\u6b63\u7684\u8bbf\u95ee IP \u4ecd\u662f\u540e\u9762\u7684 IPv4 \u5730\u5740\u3002<\/li>\n<\/ul>\n<p>\u6301\u7eed\u5237\u65b0\u67e5\u770b&#xff1a;<\/p>\n<p><span class=\"token function\">watch<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">1<\/span> <span class=\"token string\">&#034;ss -ntp &#039;sport &#061; :6000&#039;&#034;<\/span><\/p>\n<p>ss \u53ea\u80fd\u770b\u5230\u5f53\u524d\u5c1a\u672a\u65ad\u5f00\u7684\u8fde\u63a5\u3002\u5982\u679c\u8bbf\u95ee\u5f88\u77ed&#xff0c;\u53ef\u80fd\u6765\u4e0d\u53ca\u89c2\u5bdf\u5230&#xff0c;\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u6293\u5305\u3002<\/p>\n<h3>\u4e8c\u3001\u7528 tcpdump \u6355\u83b7\u77ed\u8fde\u63a5<\/h3>\n<p>\u76d1\u542c\u6240\u6709\u8fdb\u5165 6000 \u7aef\u53e3\u7684 TCP \u6570\u636e\u5305&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> tcpdump <span class=\"token parameter variable\">-n<\/span> <span class=\"token parameter variable\">-i<\/span> any <span class=\"token string\">&#039;tcp dst port 6000&#039;<\/span><\/p>\n<p>\u53ea\u89c2\u5bdf\u65b0\u8fde\u63a5\u7684 SYN \u5305&#xff0c;\u8f93\u51fa\u66f4\u6e05\u695a&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> tcpdump <span class=\"token parameter variable\">-n<\/span> <span class=\"token parameter variable\">-i<\/span> any <span class=\"token string\">&#039;tcp dst port 6000 and tcp[tcpflags] &amp; tcp-syn !&#061; 0&#039;<\/span><\/p>\n<p>\u628a\u7ed3\u679c\u540c\u65f6\u663e\u793a\u5e76\u4fdd\u5b58\u5230\u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> tcpdump <span class=\"token parameter variable\">-n<\/span> <span class=\"token parameter variable\">-l<\/span> <span class=\"token parameter variable\">-i<\/span> any <span class=\"token string\">&#039;tcp dst port 6000 and tcp[tcpflags] &amp; tcp-syn !&#061; 0&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/var\/log\/frp-6000-access.log<\/p>\n<p>\u6309 Ctrl&#043;C \u53ef\u4ee5\u505c\u6b62\u6293\u5305\u3002<\/p>\n<p>\u6ce8\u610f&#xff0c;\u6b63\u786e\u7684\u8fc7\u6ee4\u8bed\u6cd5\u662f tcp dst port 6000&#xff0c;port \u540e\u9762\u6ca1\u6709\u5192\u53f7\u3002<\/p>\n<h3>\u4e09\u3001\u67e5\u8be2 IP \u7684\u5927\u81f4\u5f52\u5c5e<\/h3>\n<p>\u67e5\u5230 IP \u540e&#xff0c;\u53ef\u4ee5\u67e5\u8be2\u5176\u8fd0\u8425\u5546\u548c\u5927\u81f4\u5730\u533a&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token string\">&#034;https:\/\/ipinfo.io\/203.0.113.42\/json&#034;<\/span><\/p>\n<p>\u4e5f\u53ef\u4ee5\u628a IP \u5199\u6210\u53d8\u91cf&#xff0c;\u907f\u514d\u53cd\u590d\u4fee\u6539\u6574\u6761\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token assign-left variable\">ip_to_check<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;203.0.113.42&#034;<\/span><br \/>\n<span class=\"token function\">curl<\/span> <span class=\"token string\">&#034;https:\/\/ipinfo.io\/<span class=\"token variable\">${ip_to_check}<\/span>\/json&#034;<\/span><\/p>\n<p>IP \u5b9a\u4f4d\u901a\u5e38\u53ea\u80fd\u53cd\u6620\u8fd0\u8425\u5546\u51fa\u53e3\u6216\u5927\u81f4\u57ce\u5e02&#xff0c;\u4e0d\u80fd\u636e\u6b64\u786e\u8ba4\u5177\u4f53\u4e2a\u4eba\u3002\u8bbf\u95ee\u8005\u5982\u679c\u4f7f\u7528 VPN\u3001\u4ee3\u7406\u6216\u4e91\u4e3b\u673a&#xff0c;\u67e5\u8be2\u7ed3\u679c\u663e\u793a\u7684\u4e5f\u53ea\u662f\u5176\u51fa\u53e3\u8282\u70b9\u3002<\/p>\n<h3>\u56db\u3001\u786e\u8ba4 UFW \u662f\u5426\u542f\u7528<\/h3>\n<p><span class=\"token function\">sudo<\/span> ufw status verbose<\/p>\n<p>\u5982\u679c\u663e\u793a Status: active&#xff0c;\u8bf4\u660e UFW \u6b63\u5728\u5de5\u4f5c\u3002\u67e5\u770b\u5e26\u7f16\u53f7\u7684\u5b8c\u6574\u89c4\u5219&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw status numbered<\/p>\n<p>\u5728\u4fee\u6539\u9632\u706b\u5899\u524d&#xff0c;\u5fc5\u987b\u786e\u8ba4 SSH \u4f7f\u7528\u7684\u7aef\u53e3\u5df2\u7ecf\u6709 ALLOW \u89c4\u5219&#xff0c;\u4ee5\u514d\u628a\u81ea\u5df1\u7684\u8fdc\u7a0b\u8fde\u63a5\u6321\u5728\u670d\u52a1\u5668\u5916\u3002<\/p>\n<h3>\u4e94\u3001\u7981\u6b62\u67d0\u4e2a IP \u8bbf\u95ee\u6307\u5b9a\u7aef\u53e3<\/h3>\n<p>\u7981\u6b62\u793a\u4f8b IP 203.0.113.42 \u8bbf\u95ee 6000\/tcp&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw insert <span class=\"token number\">1<\/span> deny from <span class=\"token number\">203.0<\/span>.113.42 to any port <span class=\"token number\">6000<\/span> proto tcp<\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528 insert 1&#xff0c;\u662f\u4e3a\u4e86\u628a\u62d2\u7edd\u89c4\u5219\u63d2\u5165\u5230\u5df2\u6709\u7684 6000\/tcp ALLOW IN Anywhere \u4e4b\u524d\u3002UFW \u6309\u89c4\u5219\u987a\u5e8f\u5339\u914d&#xff0c;\u5982\u679c\u5141\u8bb8\u89c4\u5219\u5728\u62d2\u7edd\u89c4\u5219\u4e4b\u524d&#xff0c;\u5c01\u7981\u53ef\u80fd\u4e0d\u4f1a\u751f\u6548\u3002<\/p>\n<p>\u6dfb\u52a0\u540e\u7acb\u5373\u68c0\u67e5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw status numbered<\/p>\n<p>\u8fd9\u6761\u89c4\u5219\u53ea\u7981\u6b62\u8be5 IP \u8bbf\u95ee 6000&#xff0c;\u4e0d\u4f1a\u5f71\u54cd\u5b83\u8bbf\u95ee\u5176\u4ed6\u7aef\u53e3\u3002<\/p>\n<h4>\u5c01\u7981\u8be5 IP \u5bf9\u6240\u6709\u7aef\u53e3\u7684\u8bbf\u95ee<\/h4>\n<p>\u5982\u679c\u786e\u8ba4\u8be5 IP \u5b8c\u5168\u4e0d\u53ef\u4fe1&#xff0c;\u53ef\u4ee5\u7981\u6b62\u5b83\u8bbf\u95ee\u670d\u52a1\u5668\u7684\u6240\u6709\u7aef\u53e3&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw insert <span class=\"token number\">1<\/span> deny from <span class=\"token number\">203.0<\/span>.113.42<\/p>\n<p>\u8fd9\u6bd4\u53ea\u5c01\u7981\u4e00\u4e2a\u7aef\u53e3\u5f71\u54cd\u66f4\u5927&#xff0c;\u6267\u884c\u524d\u5e94\u786e\u8ba4 IP \u65e0\u8bef\u3002<\/p>\n<h3>\u516d\u3001\u89e3\u9664\u5c01\u7981<\/h3>\n<p>\u89e3\u9664\u9488\u5bf9 6000 \u7aef\u53e3\u7684\u7cbe\u786e\u5c01\u7981\u89c4\u5219&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw delete deny from <span class=\"token number\">203.0<\/span>.113.42 to any port <span class=\"token number\">6000<\/span> proto tcp<\/p>\n<p>\u5982\u679c\u4e0d\u786e\u5b9a\u89c4\u5219\u5185\u5bb9&#xff0c;\u5148\u67e5\u770b\u7f16\u53f7&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw status numbered<\/p>\n<p>\u518d\u6309\u7f16\u53f7\u5220\u9664&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw delete <span class=\"token number\">1<\/span><\/p>\n<p>\u5220\u9664\u7f16\u53f7\u524d\u8981\u91cd\u65b0\u67e5\u770b\u4e00\u6b21\u89c4\u5219&#xff0c;\u56e0\u4e3a\u6bcf\u6b21\u6dfb\u52a0\u6216\u5220\u9664\u89c4\u5219\u540e&#xff0c;\u7f16\u53f7\u90fd\u53ef\u80fd\u53d8\u5316\u3002<\/p>\n<h3>\u4e03\u3001\u5173\u95ed\u4e00\u4e2a\u516c\u7f51\u7aef\u53e3<\/h3>\n<p>\u5982\u679c UFW \u7684\u9ed8\u8ba4\u5165\u7ad9\u7b56\u7565\u662f deny&#xff0c;\u5220\u9664\u7aef\u53e3\u7684\u5141\u8bb8\u89c4\u5219\u5373\u53ef\u5173\u95ed\u516c\u7f51\u8bbf\u95ee\u3002\u4f8b\u5982\u5173\u95ed\u6f14\u793a\u7aef\u53e3 7000\/tcp&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw delete allow <span class=\"token number\">7000<\/span>\/tcp<\/p>\n<p>\u68c0\u67e5\u89c4\u5219&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw status<\/p>\n<p>\u8f93\u51fa\u4e2d\u4e0d\u518d\u51fa\u73b0 7000\/tcp \u548c 7000\/tcp (v6) \u5373\u53ef\u3002<\/p>\n<p>\u68c0\u67e5\u7a0b\u5e8f\u662f\u5426\u4ecd\u5728\u76d1\u542c\u7aef\u53e3&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ss <span class=\"token parameter variable\">-lntp<\/span> <span class=\"token string\">&#039;sport &#061; :7000&#039;<\/span><\/p>\n<p>\u8fd9\u91cc\u9700\u8981\u533a\u5206\u4e24\u4e2a\u6982\u5ff5&#xff1a;<\/p>\n<ul>\n<li>\u5220\u9664 UFW \u7684\u5141\u8bb8\u89c4\u5219&#xff1a;\u7a0b\u5e8f\u53ef\u80fd\u4ecd\u5728\u76d1\u542c&#xff0c;\u4f46\u516c\u7f51\u6d41\u91cf\u4f1a\u88ab\u9632\u706b\u5899\u963b\u6b62&#xff1b;<\/li>\n<li>\u505c\u6b62 FRP \u6620\u5c04&#xff1a;\u9700\u8981\u5728\u5bf9\u5e94\u7684 frpc.toml \u4e2d\u5220\u9664\u6216\u505c\u7528 remotePort &#061; 7000 \u7684\u4ee3\u7406\u914d\u7f6e&#xff0c;\u7136\u540e\u91cd\u542f frpc\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u8981\u4e3a\u4e86\u5173\u95ed\u5355\u4e2a\u6620\u5c04\u76f4\u63a5\u505c\u6b62 frps&#xff0c;\u5426\u5219\u5176\u4ed6 FRP \u6620\u5c04\u4e5f\u4f1a\u4e00\u8d77\u4e2d\u65ad\u3002<\/p>\n<h3>\u516b\u3001\u4e3a\u4ec0\u4e48\u5c01\u7981\u540e\u8fde\u63a5\u53ef\u80fd\u8fd8\u5b58\u5728<\/h3>\n<p>\u65b0\u589e UFW \u89c4\u5219\u4e3b\u8981\u963b\u6b62\u540e\u7eed\u8fde\u63a5\u3002\u5df2\u7ecf\u5efa\u7acb\u7684\u8fde\u63a5\u53ef\u80fd\u6682\u65f6\u7ee7\u7eed\u5b58\u5728&#xff0c;\u53ef\u4ee5\u5148\u67e5\u770b&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ss <span class=\"token parameter variable\">-ntp<\/span> <span class=\"token string\">&#039;sport &#061; :6000&#039;<\/span><\/p>\n<p>\u5982\u9700\u7acb\u5373\u6e05\u7406\u8fde\u63a5\u72b6\u6001&#xff0c;\u53ef\u4ee5\u4f7f\u7528 conntrack&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> conntrack <span class=\"token parameter variable\">-D<\/span> <span class=\"token parameter variable\">-s<\/span> <span class=\"token number\">203.0<\/span>.113.42 <span class=\"token parameter variable\">-p<\/span> tcp <span class=\"token parameter variable\">&#8211;dport<\/span> <span class=\"token number\">6000<\/span><\/p>\n<p>\u5982\u679c\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4&#xff0c;\u53ef\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> conntrack<\/p>\n<p>\u91cd\u542f frps \u4e5f\u4f1a\u65ad\u5f00\u8fde\u63a5&#xff0c;\u4f46\u4f1a\u540c\u65f6\u5f71\u54cd\u5176\u4ed6 FRP \u670d\u52a1&#xff0c;\u4e0d\u5efa\u8bae\u4ec5\u4e3a\u8e22\u6389\u4e00\u4e2a IP \u800c\u8fd9\u6837\u64cd\u4f5c\u3002<\/p>\n<h3>\u4e5d\u3001\u5e38\u7528\u547d\u4ee4\u901f\u67e5<\/h3>\n<p><span class=\"token comment\"># \u67e5\u770b\u5f53\u524d\u8bbf\u95ee\u8005<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ss <span class=\"token parameter variable\">-ntp<\/span> <span class=\"token string\">&#039;sport &#061; :6000&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u6355\u83b7\u8fdb\u5165\u7aef\u53e3\u7684\u65b0\u8fde\u63a5<\/span><br \/>\n<span class=\"token function\">sudo<\/span> tcpdump <span class=\"token parameter variable\">-n<\/span> <span class=\"token parameter variable\">-i<\/span> any <span class=\"token string\">&#039;tcp dst port 6000 and tcp[tcpflags] &amp; tcp-syn !&#061; 0&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u8be2 IP \u5927\u81f4\u5f52\u5c5e<\/span><br \/>\n<span class=\"token function\">curl<\/span> <span class=\"token string\">&#034;https:\/\/ipinfo.io\/203.0.113.42\/json&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b UFW \u72b6\u6001\u548c\u89c4\u5219\u7f16\u53f7<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw status numbered<\/p>\n<p><span class=\"token comment\"># \u7981\u6b62\u4e00\u4e2a IP \u8bbf\u95ee\u6307\u5b9a\u7aef\u53e3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw insert <span class=\"token number\">1<\/span> deny from <span class=\"token number\">203.0<\/span>.113.42 to any port <span class=\"token number\">6000<\/span> proto tcp<\/p>\n<p><span class=\"token comment\"># \u89e3\u9664\u7cbe\u786e\u5c01\u7981<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw delete deny from <span class=\"token number\">203.0<\/span>.113.42 to any port <span class=\"token number\">6000<\/span> proto tcp<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u7aef\u53e3\u7684\u516c\u7f51\u5141\u8bb8\u89c4\u5219<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw delete allow <span class=\"token number\">7000<\/span>\/tcp<\/p>\n<h3>\u5341\u3001\u5b89\u5168\u5efa\u8bae<\/h3>\n<li>\u4e0d\u9700\u8981\u516c\u7f51\u5f00\u653e\u7684\u7aef\u53e3\u4e0d\u8981\u4fdd\u7559 ALLOW IN Anywhere\u3002<\/li>\n<li>\u7ba1\u7406\u540e\u53f0\u5c3d\u91cf\u53ea\u5141\u8bb8\u56fa\u5b9a\u53ef\u4fe1 IP \u8bbf\u95ee&#xff0c;\u800c\u4e0d\u662f\u5148\u5168\u90e8\u5f00\u653e\u518d\u9010\u4e2a\u5c01\u7981\u5f02\u5e38 IP\u3002<\/li>\n<li>SSH \u5efa\u8bae\u4f7f\u7528\u5bc6\u94a5\u767b\u5f55&#xff0c;\u5e76\u5173\u95ed\u5bc6\u7801\u767b\u5f55\u548c root \u76f4\u63a5\u767b\u5f55\u3002<\/li>\n<li>\u5b9a\u671f\u68c0\u67e5 UFW\u3001FRP \u548c\u7cfb\u7edf\u65e5\u5fd7&#xff1b;\u5fc5\u8981\u65f6\u4f7f\u7528 Fail2ban \u81ea\u52a8\u9650\u5236\u9ad8\u9891\u6076\u610f\u8bbf\u95ee\u3002<\/li>\n<li>\u4e91\u670d\u52a1\u5668\u8fd8\u5e94\u68c0\u67e5\u4e91\u5382\u5546\u5b89\u5168\u7ec4\u3002\u5b89\u5168\u7ec4\u548c UFW \u662f\u4e24\u5c42\u72ec\u7acb\u63a7\u5236&#xff0c;\u4efb\u610f\u4e00\u5c42\u62d2\u7edd\u90fd\u4f1a\u5bfc\u81f4\u7aef\u53e3\u65e0\u6cd5\u8bbf\u95ee\u3002<\/li>\n<p>\u8fd9\u5957\u65b9\u6cd5\u9002\u5408\u4e34\u65f6\u6392\u67e5\u548c\u5c0f\u89c4\u6a21\u7ef4\u62a4\u3002\u5982\u679c\u670d\u52a1\u957f\u671f\u66b4\u9732\u5728\u516c\u7f51&#xff0c;\u66f4\u7a33\u59a5\u7684\u505a\u6cd5\u662f\u91c7\u7528 IP \u767d\u540d\u5355\u3001VPN \u6216\u96f6\u4fe1\u4efb\u8bbf\u95ee&#xff0c;\u800c\u4e0d\u662f\u53ea\u4f9d\u9760\u9ed1\u540d\u5355\u9010\u4e2a\u5c01\u7981\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd0\u7ef4\u7b14\u8bb0&#xff1a;\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981<br \/>\n\u5728\u4f7f\u7528 FRP \u5c06\u5185\u7f51\u670d\u52a1\u6620\u5c04\u5230\u516c\u7f51\u540e&#xff0c;\u6709\u65f6\u9700\u8981\u786e\u8ba4\u54ea\u4e9b IP \u6b63\u5728\u8bbf\u95ee\u670d\u52a1&#xff0c;\u5e76\u5bf9\u5f02\u5e38 IP \u8fdb\u884c\u9650\u5236\u3002\u8fd9\u7bc7\u7b14\u8bb0\u8bb0\u5f55\u4e00\u5957\u9002\u7528\u4e8e Ubuntu\/Debian\u3001FRPS \u548c UFW \u7684\u5e38\u7528\u6392\u67e5\u65b9\u6cd5\u3002\u4ee5\u4e0b\u547d\u4ee4\u5e94\u5728\u8fd0\u884c \u516c\u7f51\u670d\u52a1\u5668\u4e0a\u6267\u884c\u3002\u6587\u4e2d\u7edf\u4e00\u4f7f\u7528\u6f14\u793a\u7aef\u53e3 6000&#xff0c;\u8bf7\u6309\u5b9e\u9645\u60c5\u51b5\u66ff\u6362\u3002\u4e00\u3001\u67e5\u770b\u5f53\u524d\u6b63\u5728\u8bbf\u95ee\u7aef\u53e3\u7684 IP<br \/>\n\u67e5\u770b 6000 \u7aef\u53e3\u5f53\u524d\u5df2\u7ecf\u5efa\u7acb\u7684 TCP \u8fde\u63a5&#xff1a;<br \/>\nsu<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[78],"topic":[],"class_list":["post-123296","post","type-post","status-publish","format-standard","hentry","category-server","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981 - \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\/123296.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8fd0\u7ef4\u7b14\u8bb0&#xff1a;\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981 \u5728\u4f7f\u7528 FRP \u5c06\u5185\u7f51\u670d\u52a1\u6620\u5c04\u5230\u516c\u7f51\u540e&#xff0c;\u6709\u65f6\u9700\u8981\u786e\u8ba4\u54ea\u4e9b IP \u6b63\u5728\u8bbf\u95ee\u670d\u52a1&#xff0c;\u5e76\u5bf9\u5f02\u5e38 IP \u8fdb\u884c\u9650\u5236\u3002\u8fd9\u7bc7\u7b14\u8bb0\u8bb0\u5f55\u4e00\u5957\u9002\u7528\u4e8e Ubuntu\/Debian\u3001FRPS \u548c UFW \u7684\u5e38\u7528\u6392\u67e5\u65b9\u6cd5\u3002\u4ee5\u4e0b\u547d\u4ee4\u5e94\u5728\u8fd0\u884c \u516c\u7f51\u670d\u52a1\u5668\u4e0a\u6267\u884c\u3002\u6587\u4e2d\u7edf\u4e00\u4f7f\u7528\u6f14\u793a\u7aef\u53e3 6000&#xff0c;\u8bf7\u6309\u5b9e\u9645\u60c5\u51b5\u66ff\u6362\u3002\u4e00\u3001\u67e5\u770b\u5f53\u524d\u6b63\u5728\u8bbf\u95ee\u7aef\u53e3\u7684 IP \u67e5\u770b 6000 \u7aef\u53e3\u5f53\u524d\u5df2\u7ecf\u5efa\u7acb\u7684 TCP \u8fde\u63a5&#xff1a; su\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/123296.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-06T17:16:56+00:00\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123296.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/123296.html\",\"name\":\"\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-06T17:16:56+00:00\",\"dateModified\":\"2026-11-06T17:16:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/123296.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/123296.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123296.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981\"}]},{\"@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":"\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981 - \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\/123296.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8fd0\u7ef4\u7b14\u8bb0&#xff1a;\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981 \u5728\u4f7f\u7528 FRP \u5c06\u5185\u7f51\u670d\u52a1\u6620\u5c04\u5230\u516c\u7f51\u540e&#xff0c;\u6709\u65f6\u9700\u8981\u786e\u8ba4\u54ea\u4e9b IP \u6b63\u5728\u8bbf\u95ee\u670d\u52a1&#xff0c;\u5e76\u5bf9\u5f02\u5e38 IP \u8fdb\u884c\u9650\u5236\u3002\u8fd9\u7bc7\u7b14\u8bb0\u8bb0\u5f55\u4e00\u5957\u9002\u7528\u4e8e Ubuntu\/Debian\u3001FRPS \u548c UFW \u7684\u5e38\u7528\u6392\u67e5\u65b9\u6cd5\u3002\u4ee5\u4e0b\u547d\u4ee4\u5e94\u5728\u8fd0\u884c \u516c\u7f51\u670d\u52a1\u5668\u4e0a\u6267\u884c\u3002\u6587\u4e2d\u7edf\u4e00\u4f7f\u7528\u6f14\u793a\u7aef\u53e3 6000&#xff0c;\u8bf7\u6309\u5b9e\u9645\u60c5\u51b5\u66ff\u6362\u3002\u4e00\u3001\u67e5\u770b\u5f53\u524d\u6b63\u5728\u8bbf\u95ee\u7aef\u53e3\u7684 IP \u67e5\u770b 6000 \u7aef\u53e3\u5f53\u524d\u5df2\u7ecf\u5efa\u7acb\u7684 TCP \u8fde\u63a5&#xff1a; su","og_url":"https:\/\/www.wsisp.com\/helps\/123296.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-06T17:16:56+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/123296.html","url":"https:\/\/www.wsisp.com\/helps\/123296.html","name":"\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-06T17:16:56+00:00","dateModified":"2026-11-06T17:16:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/123296.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/123296.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/123296.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u8bbf\u95ee IP \u6392\u67e5\u3001\u5b9a\u4f4d\u4e0e\u5c01\u7981"}]},{"@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\/123296","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=123296"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123296\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=123296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=123296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=123296"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=123296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}