{"id":10991,"date":"2022-10-12T14:01:56","date_gmt":"2022-10-12T21:01:56","guid":{"rendered":"https:\/\/www.xh86.me\/?p=10991"},"modified":"2022-10-12T14:01:56","modified_gmt":"2022-10-12T21:01:56","slug":"dn42-%e5%ae%9e%e9%aa%8c%e7%bd%91%e7%bb%9c%e4%bb%8b%e7%bb%8d%e5%8f%8a%e6%b3%a8%e5%86%8c%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=10991","title":{"rendered":"DN42 \u5b9e\u9a8c\u7f51\u7edc\u4ecb\u7ecd\u53ca\u6ce8\u518c\u6559\u7a0b"},"content":{"rendered":"<p>DN42 \u5168\u79f0 Decentralized Network 42\uff0842 \u53f7\u53bb\u4e2d\u5fc3\u7f51\u7edc\uff09\uff0c\u662f\u4e00\u4e2a\u5927\u578b\u3001\u53bb\u4e2d\u5fc3\u5316\u7684 VPN \u7f51\u7edc\u3002\u4f46\u662f\u4e0e\u5176\u5b83\u4f20\u7edf VPN \u4e0d\u540c\u7684\u662f\uff0cDN42 \u672c\u8eab\u4e0d\u63d0\u4f9b VPN \u51fa\u53e3\u670d\u52a1\uff0c\u5373\u4e0d\u63d0\u4f9b\u89c4\u907f\u7f51\u7edc\u5ba1\u67e5\u3001\u6d41\u5a92\u4f53\u89e3\u9501\u7b49\u7c7b\u4f3c\u670d\u52a1\u3002\u76f8\u53cd\uff0cDN42 \u7684\u76ee\u7684\u662f\u6a21\u62df\u4e00\u4e2a\u4e92\u8054\u7f51\u3002\u5b83\u4f7f\u7528\u4e86\u5927\u91cf\u5728\u76ee\u524d\u4e92\u8054\u7f51\u9aa8\u5e72\u4e0a\u5e94\u7528\u7684\u6280\u672f\uff08\u4f8b\u5982 BGP \u548c\u9012\u5f52 DNS\uff09\uff0c\u53ef\u4ee5\u5f88\u597d\u5730\u6a21\u62df\u4e00\u4e2a\u771f\u5b9e\u7684\u7f51\u7edc\u73af\u5883\u3002<\/p>\n<p>\u7b80\u800c\u8a00\u4e4b\uff0cDN42\uff1a<\/p>\n<ul>\n<li>\u4e0d\u9002\u5408\u5355\u7eaf\u60f3\u8981\u4fdd\u62a4\u9690\u79c1\u3001\u89c4\u907f\u7f51\u7edc\u5ba1\u67e5\u7684\u7528\u6237<\/li>\n<li>\u4e0d\u9002\u5408\u5728\u7f51\u5185\u6d88\u8017\u5927\u91cf\u6d41\u91cf\uff0c\u4f8b\u5982\u7528\u4e8e\u89e3\u9501\u6d41\u5a92\u4f53\u670d\u52a1\u7684\u7528\u6237<\/li>\n<li>\u9002\u5408\u60f3\u8981\u7814\u7a76\u7f51\u7edc\u6280\u672f\uff0c\u7ec3\u4e60\u670d\u52a1\u5668\u3001\u8def\u7531\u5668\u7b49\u7f51\u7edc\u8bbe\u5907\u914d\u7f6e\uff0c\u751a\u81f3\u540e\u7eed\u5728\u771f\u5b9e\u4e92\u8054\u7f51\u5efa\u7acb AS \u7684\u7528\u6237<\/li>\n<li>\u9002\u5408\u62e5\u6709\u771f\u5b9e AS\uff0c\u4f46\u62c5\u5fc3\u81ea\u5df1<a href=\"https:\/\/blog.cloudflare.com\/how-verizon-and-a-bgp-optimizer-knocked-large-parts-of-the-internet-offline-today\/\" target=\"_blank\" rel=\"noopener\">\u914d\u7f6e\u9519\u8bef\u5e7f\u64ad\u51fa\u9519\u8bef\u8def\u7531\u3001\u5e72\u6389\u534a\u4e2a\u4e92\u8054\u7f51<\/a>\uff0c\u5e0c\u671b\u6709\u4e2a\u5730\u65b9\u6d4b\u8bd5\u7684\u7528\u6237\u3002<\/li>\n<\/ul>\n<p>\u6b63\u56e0\u4e3a\u6b64\uff0c\u4f7f\u7528 DN42 \u7684\u95e8\u69db\u6bd4\u8f83\u9ad8\u3002\u5c31\u50cf\u5728\u771f\u5b9e\u4e92\u8054\u7f51\u4e2d\u4e00\u6837\uff0c\u4f60\u8981\u626e\u6f14\u4e00\u4e2a ISP\uff08\u4e92\u8054\u7f51\u670d\u52a1\u63d0\u4f9b\u5546\uff09\uff0c\u6ce8\u518c\u81ea\u5df1\u7684\u4e2a\u4eba\u4fe1\u606f\uff0cASN \u53f7\u7801\uff0cIPv4 \u548c IPv6 \u7684\u5730\u5740\u6c60\uff0c\u5e76\u4e14\u4f7f\u7528 BGP \u5728\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a\u5e7f\u64ad\u5b83\u4eec\u3002\u4f60\u8fd8\u8981\u548c\u5176\u5b83\u7684\u7528\u6237\u8054\u7cfb\uff0c\u548c\u4ed6\u4eec\u505a Peering\uff08\u5bf9\u63a5\uff09\uff0c\u4e00\u6b65\u6b65\u8fdb\u5165\u5b8c\u6574\u7684 DN42 \u7f51\u7edc\u3002<\/p>\n<p>DN42 \u5728 172.20.0.0\/14 \u548c fd00::\/8 \u4e0a\u8fd0\u884c\uff0c\u800c\u8fd9\u4e24\u4e2a IP \u6bb5\u90fd\u662f\u5206\u914d\u7ed9\u5185\u7f51\u4f7f\u7528\u7684\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u4f60\u5728 DN42 \u4e0a\u600e\u4e48\u6298\u817e\uff0c\u90fd\u4e0d\u4f1a\u5f71\u54cd\u5230\u670d\u52a1\u5668\u5176\u5b83\u7684\u4e92\u8054\u7f51\u8fde\u63a5\u3002<\/p>\n<h2 id=\"\u672c\u6587\u66f4\u65b0\u65e5\u5fd7\">\u672c\u6587\u66f4\u65b0\u65e5\u5fd7<\/h2>\n<ul>\n<li>2022-06\uff1a\u66f4\u65b0\u6700\u65b0\u7684\u6ce8\u518c\u6d41\u7a0b\u3002<\/li>\n<li>2022-02\uff1a\u66f4\u65b0\u00a0<code>rp_filter<\/code>\u00a0\u76f8\u5173\u5185\u5bb9\uff0c\u4e0d\u8981\u4f7f\u7528\u00a0<code>rp_filter=2<\/code>\uff01<\/li>\n<li>2021-06\uff1a\u63d0\u5347\u4e00\u4e9b\u914d\u7f6e\u6587\u4ef6\u7684\u6613\u8bfb\u6027\uff0c\u533a\u5206\u00a0<code>contact<\/code>\u00a0\u548c\u00a0<code>e-mail<\/code>\u3002<\/li>\n<li>2021-05\uff1a\u6dfb\u52a0\u300a\u80fd\u529b\u9700\u6c42\u300b\u4e00\u8282\uff1b\u6dfb\u52a0 iptables \u9632\u706b\u5899\u914d\u7f6e\u3002<\/li>\n<li>2020-12\uff1a\u4fee\u6b63 BIRDv2 Peer \u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/li>\n<li>2020-10\uff1a\u4e0d\u518d\u63a8\u8350\u6dfb\u52a0 Debian Unstable \u8f6f\u4ef6\u6e90\u5b89\u88c5 WireGuard\uff08\u6709\u66f4\u597d\u7684\u65b9\u6cd5\u4e86\uff09\uff1b\u63a8\u8350\u5728 Windows \u4e0a\u4f7f\u7528 WSL \u5b8c\u6210\u64cd\u4f5c\u3002<\/li>\n<li>2020-09\uff1a\u66f4\u65b0\u6700\u65b0\u7684\u6ce8\u518c\u6d41\u7a0b\u3002<\/li>\n<li>2020-08\uff1a\u7531\u4e8e Burble \u4fee\u6539\u4e86\u4ed6\u7684 Peer \u6807\u51c6\uff0c\u4e0d\u518d\u5411\u65b0\u7528\u6237\u63a8\u8350\u4e0e\u4ed6 Peer\u3002<\/li>\n<li>2020-07\uff1aDN42 Git \u670d\u52a1\u5668\u5730\u5740\u4ece\u00a0<code>git.dn42.us<\/code>\u00a0\u66f4\u6362\u6210\u00a0<code>git.dn42.dev<\/code>\u3002<\/li>\n<li>2020-05\uff1a\u66f4\u65b0\u00a0<code>rp_filter<\/code>\u00a0\u76f8\u5173\u5185\u5bb9\uff0c\u6dfb\u52a0\u300c\u5173\u95ed UFW\u300d\u7684\u5efa\u8bae\u3002<\/li>\n<li>2020-04\uff1a\u6dfb\u52a0\u5185\u7f51\u914d\u7f6e\u7684\u5efa\u8bae\uff0c\u300c\u4e0d\u8981\u5360\u7528\u592a\u591a\u8d44\u6e90\u300d\u7684\u8bf7\u6c42\uff1b\u66f4\u8be6\u7ec6\u5730\u89e3\u91ca\u4e00\u4e9b\u914d\u7f6e\u9009\u9879\u3002<\/li>\n<li>2020-03\uff1a\u89e3\u91ca\u81ea\u9009 IPv6 ULA \u5730\u5740\u7684\u98ce\u9669\uff1b\u6dfb\u52a0\u300a\u975e\u5e38\u91cd\u8981\u7684\u7cfb\u7edf\u914d\u7f6e\u300b\u4e00\u8282\uff1b\u6dfb\u52a0\u751f\u6210 GPG \u5bc6\u94a5\uff0c\u7b7e\u540d Git Commit \u7684\u76f8\u5173\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<h2 id=\"\u80fd\u529b\u9700\u6c42\">\u80fd\u529b\u9700\u6c42<\/h2>\n<p>\u672c\u6587\u5047\u5b9a\u4f60\u5df2\u7ecf\u5b66\u4f1a\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<ol>\n<li>\u4f60\u6709\u4e00\u4e2a Linux \u73af\u5883\uff08\u53cc\u7cfb\u7edf \/ \u865a\u62df\u673a \/ VPS \u90fd\u53ef\u4ee5\uff09\u3002<\/li>\n<li>\u4f60\u77e5\u9053\u5982\u4f55\u4f7f\u7528\u5e38\u89c1\u7684 Linux \u547d\u4ee4\uff08\u4f8b\u5982\u00a0<code>cd<\/code>\uff0c<code>ls<\/code>\u00a0\u7b49\uff09\uff0c\u77e5\u9053\u5728\u4f60\u7684 Linux \u4e0a\u5b89\u88c5\u8f6f\u4ef6\u5305\uff08<code>apt<\/code>\uff0c<code>yum<\/code>\u00a0\u7b49\uff09\uff0c\u4ee5\u53ca\u4f1a\u4f7f\u7528\u81f3\u5c11\u4e00\u4e2a\u7f16\u8f91\u5668\uff08\u56fe\u5f62\u5316\u7684\u00a0<code>gedit<\/code>\u3001<code>vscode<\/code>\uff0c\u6216\u8005\u547d\u4ee4\u884c\u7684\u00a0<code>vim<\/code>\u3001<code>nano<\/code>\u00a0\u90fd\u53ef\u4ee5\uff09\u3002\u5982\u679c\u4f60\u4e0d\u4f1a\uff0c\u5efa\u8bae\u5148\u9605\u8bfb<a href=\"https:\/\/www.runoob.com\/linux\/linux-tutorial.html\" target=\"_blank\" rel=\"noopener\">\u8fd9\u4efd\u6559\u7a0b<\/a>\u3002<\/li>\n<li>\u4f60\u77e5\u9053 Git \u7248\u672c\u7ba1\u7406\u5de5\u5177\u7684\u57fa\u672c\u547d\u4ee4\uff0c\u4f8b\u5982 push\/pull\/commit\u3002\u5982\u679c\u4f60\u4e0d\u4f1a\uff0c\u5efa\u8bae\u5148\u9605\u8bfb<a href=\"https:\/\/www.liaoxuefeng.com\/wiki\/896043488029600\" target=\"_blank\" rel=\"noopener\">\u8fd9\u4efd\u6559\u7a0b<\/a>\u3002<\/li>\n<li>\u4f60\u6709\u4e00\u5b9a\u7a0b\u5ea6\u7684\u7f51\u7edc\u77e5\u8bc6\uff0c\u77e5\u9053 IP\u3001MAC \u5730\u5740\u662f\u4ec0\u4e48\uff0c\u77e5\u9053\u4ea4\u6362\u673a\u3001\u8def\u7531\u5668\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4f1a\u5728 Linux \u4e0b\u8fdb\u884c\u57fa\u672c\u7684\u7f51\u7edc\u8c03\u8bd5\uff08<code>ping<\/code>\uff0c<code>traceroute<\/code>\u00a0\u7b49\uff09\uff0c\u542c\u8bf4\u8fc7 BGP\/OSPF \u7b49\u52a8\u6001\u8def\u7531\u534f\u8bae\u3002\u5982\u679c\u4f60\u4e0d\u4f1a\uff0c\u5efa\u8bae\u5148\u9605\u8bfb<a href=\"https:\/\/www.cnblogs.com\/whenyd\/p\/8440843.html\" target=\"_blank\" rel=\"noopener\">\u8fd9\u4efd\u5927\u7eb2<\/a>\uff0c\u5e76\u641c\u7d22\u5927\u7eb2\u4e2d\u63d0\u5230\u7684\u5173\u952e\u8bcd\u5b66\u4e60\u76f8\u5173\u77e5\u8bc6\u3002<\/li>\n<li>\u4f60\u6709\u57fa\u672c\u7684\u82f1\u8bed\u9605\u8bfb\u80fd\u529b\uff08\u7528\u7ffb\u8bd1\u8f6f\u4ef6\u4e5f\u53ef\u4ee5\uff09\u3002<\/li>\n<\/ol>\n<p>\u5982\u679c\u4f60\u4e0d\u5177\u5907\u8fd9\u4e9b\u77e5\u8bc6\uff0c\u4f60\u5f88\u6709\u53ef\u80fd\u65e0\u6cd5\u7406\u89e3\u6559\u7a0b\u4e2d\u7684\u91cd\u8981\u5185\u5bb9\uff0c\u4ece\u800c\u5728\u914d\u7f6e\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef\uff0c\u7ed9 DN42 \u5185\u7684\u5176\u4ed6\u7528\u6237\u9020\u6210\u9ebb\u70e6\u3002<\/p>\n<h2 id=\"\u6ce8\u518c\u8fc7\u7a0b\">\u6ce8\u518c\u8fc7\u7a0b<\/h2>\n<ul>\n<li>\u8fd9\u91cc\u7684\u6ce8\u518c\u6d41\u7a0b\u968f\u65f6\u53ef\u80fd\u56e0 DN42 \u7684\u6d41\u7a0b\u53d8\u52a8\u800c\u8fc7\u65f6\u3002\u8bf7\u4f18\u5148\u53c2\u7167 DN42 \u7684\u5b98\u65b9\u6ce8\u518c\u6d41\u7a0b\uff0c\u5e76\u5c06\u4ee5\u4e0b\u6d41\u7a0b\u5f53\u4f5c\u53c2\u8003\u3002<\/li>\n<li><a href=\"https:\/\/dn42.dev\/howto\/Getting-Started\" target=\"_blank\" rel=\"noopener\">DN42 \u5b98\u65b9 Wiki \u7684\u6ce8\u518c\u6d41\u7a0b<\/a><\/li>\n<li><a href=\"https:\/\/git.dn42.dev\/dn42\/registry\/src\/branch\/master\/README.md\" target=\"_blank\" rel=\"noopener\">DN42 \u5b98\u65b9 Wiki \u7684 Git \u64cd\u4f5c\u6d41\u7a0b\uff08\u521b\u5efa Pull Request\uff09<\/a><\/li>\n<\/ul>\n<p>\u53e6\u5916\uff0c\u7531\u4e8e\u6ce8\u518c\u6d41\u7a0b\u4e2d\u9700\u8981\u7528\u5230\u5927\u91cf\u7684 UNIX \u5de5\u5177\uff0c\u4f8b\u5982 Git\u3001GnuPG \u7b49\uff1a<\/p>\n<ul>\n<li>\u6700\u597d\u4f7f\u7528 Linux \u6216 macOS \u5b8c\u6210\u6574\u4e2a\u6d41\u7a0b\u3002<\/li>\n<li>\u5982\u679c\u4f60\u4f7f\u7528 Windows\uff0c\u5efa\u8bae\u4f7f\u7528\u00a0<a href=\"https:\/\/docs.microsoft.com\/zh-cn\/windows\/wsl\/install-win10\" target=\"_blank\" rel=\"noopener\">Windows \u7684 Linux \u5b50\u7cfb\u7edf\uff08WSL\uff09<\/a>\u3002<\/li>\n<\/ul>\n<p>\u5927\u81f4\u6ce8\u518c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u9996\u5148\u53bb\u00a0<a href=\"https:\/\/git.dn42.dev\/\" target=\"_blank\" rel=\"noopener\">https:\/\/git.dn42.dev<\/a>\u00a0\u6ce8\u518c\u4e00\u4e2a\u8d26\u6237\uff0c\u8fd9\u76f8\u5f53\u4e8e DN42 \u5185\u7684 GitHub\uff0c\u8d26\u6237\u4fe1\u606f\u5c31\u5b58\u653e\u5728\u5176\u4e2d\u7684\u4e00\u4e2a\u4ed3\u5e93\u91cc\u3002<\/li>\n<li>\u6253\u5f00\u00a0<a href=\"https:\/\/git.dn42.dev\/dn42\/registry\" target=\"_blank\" rel=\"noopener\">dn42\/registry<\/a>\u00a0\u8fd9\u4e2a\u8d26\u6237\u4fe1\u606f\u4ed3\u5e93\uff0c\u70b9\u53f3\u4e0a\u89d2\u7684 Fork\uff0c\u628a\u4ed3\u5e93\u590d\u5236\u4e00\u4efd\u5230\u4f60\u81ea\u5df1\u7684\u8d26\u6237\u3002\n<ul>\n<li>\u4ee5\u524d\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728\u8fd9\u4e2a\u4ed3\u5e93\u91cc\u76f4\u63a5\u5efa\u4e00\u4e2a\u5206\u652f\uff0c\u4f46\u73b0\u5728\u4f60\u9700\u8981\u628a\u4ed3\u5e93 Fork \u4e00\u4efd\uff0c\u5c31\u50cf\u5728 GitHub \u7b49\u7f51\u7ad9\u4e0a\u63d0\u4ea4\u53d8\u66f4\u4e00\u6837\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6b64\u65f6\u4f60\u5e94\u8be5\u5df2\u7ecf\u8fdb\u5165\u4e86\u4f60\u81ea\u5df1\u8d26\u6237\u91cc\u7684\u90a3\u4efd\u590d\u5236\uff0c\u628a\u5b83 Clone \u4e0b\u6765\u3002<\/li>\n<li>\u5728 Clone \u4e0b\u7684\u4ed3\u5e93\u91cc\u521b\u5efa\u4e00\u7cfb\u5217\u7684\u6587\u4ef6\uff0c\u5305\u62ec\uff1a\n<ol>\n<li>\u5728\u00a0<code>data\/mntner<\/code>\u00a0\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u00a0<code>[\u6635\u79f0]-MNT<\/code>\u00a0\u7684\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u4ee3\u8868\u4f60\u7684\u8d26\u6237\uff0c\u7528\u6765\u8ba4\u8bc1\u4f60\u4ee5\u540e\u7684\u64cd\u4f5c\u3002\u4f8b\u5982\u6211\u7684 mntner \u6587\u4ef6\u5982\u4e0b\uff08\u4e5f\u53ef\u4ee5\u5728\u00a0<code>data\/mntner\/LANTIAN-MNT<\/code>\u00a0\u770b\u5230\uff09\uff1a\n<div id=\"lti-g4590287\" class=\"btn-group-vertical btn-group\" role=\"group\"><input id=\"lti-4590287-7115872\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g4590287\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-4590287-7115872\">\u4ee5\u4e0b\u4ee3\u7801\u662f\u6211\u7684\u6ce8\u518c\u4fe1\u606f\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/label><input id=\"lti-4590287-5833534\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g4590287\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-4590287-5833534\">\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u6587\u6863\uff0c\u5e76\u5c06\u4ee3\u7801\u4e2d\u7684\u5168\u90e8\u4fe1\u606f\u66ff\u6362\u6210\u4f60\u7684\u4fe1\u606f\u3002<\/label><input id=\"lti-4590287-6784469\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g4590287\" type=\"radio\" data-lti-tag=\"code1\" \/><label class=\"btn btn-outline-primary\" for=\"lti-4590287-6784469\">\u6211\u786e\u8ba4\u6211\u5df2\u9605\u8bfb\u4ee5\u4e0a\u5185\u5bb9\uff0c\u67e5\u770b\u4ee3\u7801\u3002<\/label><\/div>\n<ul>\n<li>\u5176\u4e2d\u5404\u9879\u7684\u542b\u4e49\u5982\u4e0b\uff1a\n<ul>\n<li><code>mntner<\/code>\uff1a\u5373\u00a0<code>maintainer\uff08\u7ef4\u62a4\u8005\uff09<\/code>\uff0c\u8bf4\u660e\u8fd9\u4e2a\u8d26\u6237\u7684\u540d\u79f0\uff0c\u4e0e\u6587\u4ef6\u540d\u76f8\u540c\u3002<\/li>\n<li><code>admin-c<\/code>\uff1a\u5373\u00a0<code>admin contact\uff08\u7ba1\u7406\u5458\u8054\u7cfb\u4fe1\u606f\uff09<\/code>\uff0c\u9700\u8981\u6307\u5411\u540e\u7eed\u521b\u5efa\u7684 person \u6587\u4ef6\uff0c\u4e00\u822c\u4e3a\u00a0<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>tech-c<\/code>\uff1a\u5373\u00a0<code>tech contact\uff08\u6280\u672f\u5458\u8054\u7cfb\u4fe1\u606f\uff09<\/code>\uff0c\u9700\u8981\u6307\u5411\u540e\u7eed\u521b\u5efa\u7684 person \u6587\u4ef6\uff0c\u4e00\u822c\u4e5f\u4e3a\u00a0<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>mnt-by<\/code>\uff1a\u5373\u00a0<code>maintain by\uff08\u7531\u8c01\u7ef4\u62a4\uff09<\/code>\uff0c\u6307\u5411\u8fd9\u4e2a\u8d26\u6237\u672c\u8eab\uff0c\u4e00\u822c\u4e3a\u00a0<code>[\u6635\u79f0]-MNT<\/code>\u3002<\/li>\n<li><code>source<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>DN42<\/code>\u3002<\/li>\n<li><code>auth<\/code>\uff1a\u4f60\u7684\u4e2a\u4eba\u8ba4\u8bc1\u4fe1\u606f\u3002\u4e00\u822c\u63a5\u53d7\u4e24\u79cd\u7c7b\u578b\uff1aGPG \u516c\u94a5\u548c SSH \u516c\u94a5\u3002\n<ul>\n<li>\u4f60<strong>\u5fc5\u987b<\/strong>\u5728 GPG \u516c\u94a5\u548c SSH \u516c\u94a5\u4e2d\u6dfb\u52a0\u81f3\u5c11\u4e00\u79cd\u3002<\/li>\n<li>\u5982\u679c\u4f60\u51c6\u5907\u6dfb\u52a0 GPG \u516c\u94a5\uff0c\u9996\u5148\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\uff08\u5982\u679c\u4f60\u4e4b\u524d\u6ca1\u6709\u7684\u8bdd\uff09\uff0c\u4f8b\u5982\u53c2\u7167\u00a0<a href=\"https:\/\/docs.github.com\/cn\/free-pro-team@latest\/github\/authenticating-to-github\/generating-a-new-gpg-key\" target=\"_blank\" rel=\"noopener\">GitHub \u7684\u8fd9\u4efd\u6559\u7a0b<\/a>\u64cd\u4f5c\u3002\u540e\u7eed\u63d0\u4ea4\u8fc7\u7a0b\u4e5f\u4f1a\u7528\u5230\u8fd9\u4e2a\u516c\u94a5\u3002\n<ul>\n<li>\u4f60\u8fd8\u9700\u8981\u5c06\u4f60\u7684 GPG \u516c\u94a5\u4e0a\u4f20\u5230\u516c\u5171\u67e5\u8be2\u670d\u52a1\u5668\uff0c\u79f0\u4e3a Keyserver\u3002<\/li>\n<li>\u4e0a\u4f20\u6b65\u9aa4\u8bf7\u53c2\u8003<a href=\"https:\/\/www.ruanyifeng.com\/blog\/2013\/07\/gpg.html\" target=\"_blank\" rel=\"noopener\">\u962e\u4e00\u5cf0\u7684\u8fd9\u4efd\u6559\u7a0b<\/a>\uff0c\u5e76\u5c06\u00a0<code>keyserver<\/code>\u00a0\u53c2\u6570\u66ff\u6362\u6210\u00a0<code>hkp:\/\/keyserver.ubuntu.com<\/code>\uff0c\u4f8b\u5982\uff1a\n<ul>\n<li><code>gpg --keyserver hkp:\/\/keyserver.ubuntu.com --send-key [\u5bc6\u94a5ID]<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u7136\u540e\u5c06\u5bc6\u94a5 ID \u586b\u5199\u5230\u00a0<code>auth<\/code>\u00a0\u9879\u4e2d\uff0c\u683c\u5f0f\u5982\u00a0<code>pgp-fingerprint [\u5bc6\u94a5 ID]<\/code>\uff0c\u4f8b\u5982\u4e0a\u9762\u4f8b\u5b50\u4e2d\u7684\u00a0<code>pgp-fingerprint<\/code>\u00a0\u9879\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u51c6\u5907\u6dfb\u52a0 SSH \u516c\u94a5\uff0c\u9996\u5148\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\uff08\u5982\u679c\u4f60\u4e4b\u524d\u6ca1\u6709\u7684\u8bdd\uff09\u3002\n<ul>\n<li>Mac \u548c Linux \u4e00\u822c\u8fd0\u884c\u00a0<code>ssh-keygen -t ed25519<\/code>\u00a0\u5373\u53ef\uff0c\u4f46\u5982\u679c\u4f60\u7684 SSH \u7248\u672c\u7279\u522b\u8001\u4e0d\u652f\u6301 ED25519 \u5bc6\u94a5\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528 RSA\uff0c<code>ssh-keygen -t rsa<\/code>\u3002<\/li>\n<li>Windows \u53ef\u4ee5<a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" rel=\"noopener\">\u4e0b\u8f7d PuTTY<\/a>\uff0c\u4f7f\u7528\u5176\u4e2d\u7684 puttygen \u5de5\u5177\u751f\u6210\u3002<\/li>\n<li>\u751f\u6210\u5b8c\u6210\u540e\uff0c\u5c06\u516c\u94a5\uff08Mac \u548c Linux \u4e00\u822c\u5728\u00a0<code>~\/.ssh<\/code>\u00a0\u76ee\u5f55\u4e0b\uff0c\u540d\u4e3a\u00a0<code>id_ed25519.pub<\/code>\u00a0\u6216\u8005\u00a0<code>id_rsa.pub<\/code>\uff1bWindows \u4e0b puttygen \u4f1a\u76f4\u63a5\u5728\u7a97\u53e3\u4e0a\u663e\u793a\u516c\u94a5\uff09\u4ee5\u00a0<code>ssh-ed25519 [\u516c\u94a5]<\/code>\u00a0\u6216\u8005\u00a0<code>ssh-rsa [\u516c\u94a5]<\/code>\u00a0\u683c\u5f0f\u6dfb\u52a0\u5230\u00a0<code>auth<\/code>\u00a0\u9879\u4e2d\u3002<\/li>\n<li>\u6b64\u5916\uff0cDN42 \u4e0a\u6709\u4e9b\u670d\u52a1\u4f1a\u4ee5\u6b64\u5904\u7684 SSH \u516c\u94a5\u6765\u9a8c\u8bc1\u4f60\u7684\u8eab\u4efd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u53ef\u4ee5\u9605\u8bfb DN42 \u5b98\u65b9\u7684<a href=\"https:\/\/dn42.dev\/howto\/Registry-Authentication\" target=\"_blank\" rel=\"noopener\">\u8eab\u4efd\u8ba4\u8bc1 Wiki \u9875\u9762<\/a>\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<li><code>remarks<\/code>\uff1a\u5907\u6ce8\u4fe1\u606f\uff0c\u968f\u4fbf\u586b\u5199\uff0c\u4e5f\u53ef\u4ee5\u6ca1\u6709\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u6ce8\u610f\uff1a\u5404\u4e2a\u9879\u76ee\u7684\u540d\u79f0\u548c\u503c\u4e4b\u95f4\u6709\u4e00\u957f\u4e32\u7a7a\u683c\u3002\u8fd9\u6bb5\u7a7a\u683c\u7684\u957f\u5ea6\u4e0d\u662f\u81ea\u5df1\u53ef\u4ee5\u968f\u610f\u4fee\u6539\u7684\uff0c\u4e5f\u4e0d\u80fd\u66ff\u6362\u6210 Tab<\/strong>\u3002\u540d\u79f0 + \u5192\u53f7 + \u7a7a\u683c\u7684\u957f\u5ea6<strong>\u5fc5\u987b\u662f 20 \u4e2a\u5b57\u7b26<\/strong>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5728\u00a0<code>data\/person<\/code>\u00a0\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u4e00\u4e2a\u00a0<code>[\u6635\u79f0]-DN42<\/code>\u00a0\u7684\u6587\u4ef6\uff0c\u4ee3\u8868\u4f60\u7684\u4e2a\u4eba\u4fe1\u606f\u3002\u8bf4\u662f\u4e2a\u4eba\u4fe1\u606f\uff0c\u4f46\u5176\u5b9e\u53ea\u9700\u8981\u4e00\u4e2a\u90ae\u7bb1\u3002\u4f8b\u5982\u6211\u7684 person \u6587\u4ef6\u5982\u4e0b\uff08<code>data\/person\/LANTIAN-DN42<\/code>\uff09\uff1a\n<div id=\"lti-g9568132\" class=\"btn-group-vertical btn-group\" role=\"group\"><input id=\"lti-9568132-9679345\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9568132\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9568132-9679345\">\u4ee5\u4e0b\u4ee3\u7801\u662f\u6211\u7684\u6ce8\u518c\u4fe1\u606f\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/label><input id=\"lti-9568132-9967114\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9568132\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9568132-9967114\">\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u6587\u6863\uff0c\u5e76\u5c06\u4ee3\u7801\u4e2d\u7684\u5168\u90e8\u4fe1\u606f\u66ff\u6362\u6210\u4f60\u7684\u4fe1\u606f\u3002<\/label><input id=\"lti-9568132-6958926\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9568132\" type=\"radio\" data-lti-tag=\"code2\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9568132-6958926\">\u6211\u786e\u8ba4\u6211\u5df2\u9605\u8bfb\u4ee5\u4e0a\u5185\u5bb9\uff0c\u67e5\u770b\u4ee3\u7801\u3002<\/label><\/div>\n<ul>\n<li>\u5404\u9879\u542b\u4e49\u5982\u4e0b\uff1a\n<ul>\n<li><code>person<\/code>\uff1a\u4f60\u7684\u6635\u79f0\u3002<\/li>\n<li><code>e-mail<\/code>\uff1a\u4f60\u7684\u90ae\u7bb1\u3002<\/li>\n<li><code>contact<\/code>\uff1a\u53ef\u9009\uff0c\u4f60\u7684\u5176\u5b83\u8054\u7cfb\u65b9\u5f0f\uff0c\u4f8b\u5982 IRC\u3001Telegram \u7b49\u3002<\/li>\n<li><code>nic-hdl<\/code>\uff1a<code>NIC handle<\/code>\uff0c\u6307\u5411\u6587\u4ef6\u672c\u8eab\uff0c\u4e0e\u6587\u4ef6\u540d\u76f8\u540c\uff0c<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>mnt-by<\/code>\uff1a<code>maintain by\uff08\u7531\u8c01\u7ef4\u62a4\uff09<\/code>\uff0c\u7531\u8c01\u7ef4\u62a4\uff0c\u6307\u5411\u4f60\u4e4b\u524d\u7684 mntner \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-MNT<\/code>\u3002<\/li>\n<li><code>source<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>DN42<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u63a5\u4e0b\u6765\u4f60\u8981\u7ed9\u81ea\u5df1\u9009\u62e9\u4e00\u4e2a AS \u7f16\u53f7\uff0c\u5373 ASN\u3002\u5728\u56fd\u9645\u4e92\u8054\u7f51\u4e0a\uff0cASN \u8303\u56f4 4200000000 &#8211; 4294967294 \u662f\u88ab\u4fdd\u7559\u4f5c\u79c1\u4e0b\u4f7f\u7528\uff08private use\uff09\u7684\uff0cDN42 \u5360\u7528\u7684\u5c31\u662f\u5176\u4e2d\u7684\u4e00\u5757\uff0c424242<strong>0000<\/strong>\u00a0&#8211; 424242<strong>3999<\/strong>\u3002<strong>\uff08\u6ce8\u610f\u8303\u56f4\u662f 4000 \u4e2a\uff0c\u4e0d\u662f 10000 \u4e2a\uff0c\u5269\u4e0b 6000 \u4e2a\u6682\u672a\u5f00\u653e\u6ce8\u518c\uff09<\/strong>\u00a0\u5728\u8fd9 4000 \u4e2a\u53f7\u7801\u4e2d\u6311\u9009\u4e00\u4e2a\u4f60\u559c\u6b22\u7684\uff0c\u5e76\u4e14\u6ca1\u6709\u88ab\u5360\u7528\u7684\uff0c\u7136\u540e\u8fdb\u5165\u00a0<code>data\/aut-num<\/code>\u00a0\u6587\u4ef6\u5939\uff0c\u521b\u5efa\u6587\u4ef6\u3002\u4f8b\u5982\u6211\u662f AS4242422547, \u6587\u4ef6\u5c31\u662f\u00a0<code>data\/aut-num\/AS4242422547<\/code>\uff1a\n<div id=\"lti-g7559945\" class=\"btn-group-vertical btn-group\" role=\"group\"><input id=\"lti-7559945-440300\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g7559945\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-7559945-440300\">\u4ee5\u4e0b\u4ee3\u7801\u662f\u6211\u7684\u6ce8\u518c\u4fe1\u606f\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/label><input id=\"lti-7559945-1900743\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g7559945\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-7559945-1900743\">\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u6587\u6863\uff0c\u5e76\u5c06\u4ee3\u7801\u4e2d\u7684\u5168\u90e8\u4fe1\u606f\u66ff\u6362\u6210\u4f60\u7684\u4fe1\u606f\u3002<\/label><input id=\"lti-7559945-8296374\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g7559945\" type=\"radio\" data-lti-tag=\"code3\" \/><label class=\"btn btn-outline-primary\" for=\"lti-7559945-8296374\">\u6211\u786e\u8ba4\u6211\u5df2\u9605\u8bfb\u4ee5\u4e0a\u5185\u5bb9\uff0c\u67e5\u770b\u4ee3\u7801\u3002<\/label><\/div>\n<ul>\n<li>\u5404\u9879\u542b\u4e49\u5982\u4e0b\uff1a\n<ul>\n<li><code>aut-num<\/code>\uff1aAS \u53f7\u3002<\/li>\n<li><code>as-name<\/code>\uff1aAS \u7684\u540d\u79f0\uff0c\u4e00\u822c\u53ea\u5728 DN42 \u7684\u4e00\u4e9b\u7f51\u7edc\u7ed3\u6784\u793a\u610f\u56fe\u4e2d\u770b\u5230\u3002\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u00a0<code>[\u6635\u79f0]-AS<\/code>\u3002<\/li>\n<li><code>descr<\/code>\uff1aAS \u7b80\u4ecb\uff0c\u4e00\u822c\u53ea\u5728\u7ed3\u6784\u56fe\u4e2d\u770b\u5230\uff0c\u968f\u610f\u586b\u5199\u3002<\/li>\n<li><code>admin-c<\/code>\uff1a<code>admin contact\uff08\u7ba1\u7406\u5458\u8054\u7cfb\u4fe1\u606f\uff09<\/code>\uff0c\u6307\u5411\u4f60\u7684 person \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>tech-c<\/code>\uff1a<code>tech contact\uff08\u6280\u672f\u5458\u8054\u7cfb\u4fe1\u606f\uff09<\/code>\uff0c\u6307\u5411\u4f60\u7684 person \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>mnt-by<\/code>\uff1a<code>maintain by\uff08\u7531\u8c01\u7ef4\u62a4\uff09<\/code>\uff0c\u7531\u8c01\u7ef4\u62a4\uff0c\u6307\u5411\u4f60\u4e4b\u524d\u7684 mntner \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-MNT<\/code>\u3002<\/li>\n<li><code>source<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>DN42<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u5728\u771f\u5b9e\u4e92\u8054\u7f51\u62e5\u6709\u81ea\u5df1\u7684 ASN\uff1a\n<ul>\n<li>\u9996\u5148\u5927\u4f6c\u53d7\u6211\u4e00\u62dc\uff1b<\/li>\n<li>\u7136\u540e\u4f60<strong>\u53ef\u4ee5\u9009\u62e9\u5728 DN42 \u5185\u4f7f\u7528\u81ea\u5df1\u7684\u771f\u5b9e ASN<\/strong>\uff0c\u586b\u5165\u4f60\u81ea\u5df1\u7684 ASN \u5373\u53ef\u3002<\/li>\n<li>\u5982\u679c\u4f60\u8fd9\u6837\u505a\uff0c\u4f60\u53ef\u80fd\u4f1a\u5728\u4e0e\u5176\u5b83\u4eba Peer \u7684\u65f6\u5019\u9047\u5230\u4e00\u70b9\u5c0f\u9ebb\u70e6\uff1a\n<ul>\n<li>\u5728\u5efa\u7acb VPN \u96a7\u9053\u65f6\uff0cDN42 \u4e2d\u5f88\u591a\u4eba\u4f1a\u4f7f\u7528 ASN \u7684\u540e\u4e94\u4f4d\u4f5c\u4e3a\u7aef\u53e3\u53f7\u3002\u4f60\u7684\u516c\u7f51 ASN \u5c31\u6709\u53ef\u80fd\u548c DN42 \u7684\u5185\u90e8 ASN \u4ea7\u751f\u7aef\u53e3\u51b2\u7a81\u3002<\/li>\n<li>\u6b64\u65f6\u4f60\u5c31\u9700\u8981\u548c\u5bf9\u65b9\u534f\u5546\u6362\u4e2a\u7aef\u53e3\u4e86\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u540c\u65f6\u6ce8\u518c\u65f6\u53ef\u80fd\u4f1a\u68c0\u67e5 AS \u90ae\u7bb1\u662f\u5426\u4e00\u81f4\u7b49\u3002\n<ul>\n<li>\u6211\u6ca1\u7ecf\u5386\u8fc7\u8fd9\u4e2a\u8fc7\u7a0b\uff0c\u4e0a\u8ff0\u662f\u6211\u7684\u731c\u6d4b\u3002\u53ef\u80fd\u8fd8\u9700\u8981\u66f4\u9ebb\u70e6\u7684\u9a8c\u8bc1\u6d41\u7a0b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u56e0\u6b64\u6211\u4e00\u822c\u5efa\u8bae<strong>\u518d\u5728 DN42 \u6ce8\u518c\u4e00\u4e2a ASN \u7b97\u4e86<\/strong>\uff0c\u51cf\u5c11\u9ebb\u70e6\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u63a5\u4e0b\u6765\u5c31\u8fdb\u5165 IP \u9009\u62e9\u73af\u8282\u4e86\u3002\u8fdb\u5165\u00a0<code>data\/inetnum<\/code>\u00a0\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u662f\u6240\u6709\u5df2\u88ab\u6ce8\u518c\u7684 IPv4 \u5730\u5740\u5757\u4fe1\u606f\u3002\u4f60\u9700\u8981\u5728\u5176\u4e2d\u6311\u9009\u4e00\u5757\u7a7a\u95f2\u7684\u5730\u5740\u5757\u5360\u4e3a\u5df1\u7528\u3002\n<ul>\n<li>DN42 \u7684 IPv4 \u5730\u5740\u5728\u00a0<code>172.20.0.0\/14<\/code>\u00a0\u8303\u56f4\uff0c\u5373\u00a0<code>172.20.0.0 - 172.23.255.255<\/code>\u3002<\/li>\n<li>\u4f60\u5728 DN42 \u5185\u80fd\u7533\u8bf7\u7684\u6700\u5c0f\u5730\u5740\u5757\u662f\u00a0<code>\/29<\/code>\uff0c\u5373 8 \u4e2a IP\uff0c\u5176\u4e2d\u9664\u53bb\u7b2c\u4e00\u4e2a IP \u6807\u8bb0\u5730\u5740\u5757\uff0c\u6700\u540e\u4e00\u4e2a IP \u4f5c\u4e3a\u5730\u5740\u5757\u5185\u5e7f\u64ad\uff08broadcast\uff09\u4e0d\u53ef\u7528\u4ee5\u5916\uff0c\u53ef\u4ee5\u5206\u7ed9 6 \u4e2a\u670d\u52a1\u5668\u548c\u8bbe\u5907\u3002\n<ul>\n<li>\u5bf9\u4e8e\u300c\u53ea\u60f3\u7b80\u5355\u73a9\u73a9\u300d\u7684\u7528\u6237\uff0c<code>\/29<\/code>\u00a0\u5df2\u7ecf\u591f\u4e86\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u6ee1\u8db3\u4e0b\u5217\u4e00\u9879\uff0c\u90a3\u4e48\u00a0<code>\/29<\/code>\u00a0\u4e0d\u591f\u4f60\u7528\uff0c\u9700\u8981\u7533\u8bf7\u66f4\u5927\u7684\u5730\u5740\u5757\uff1a\n<ul>\n<li>\u670d\u52a1\u5668\u3001\u8bbe\u5907\u591a\uff0c\u8d85\u8fc7\u4e86 6 \u4e2a<\/li>\n<li>\u4f60\u51c6\u5907\u81ea\u5df1\u914d\u7f6e\u4e9b Anycast \u4e4b\u7c7b\u7684\uff0c\u9700\u8981\u5360\u7528\u66f4\u591a\u7684 IP<\/li>\n<li>\u4f60\u4f7f\u7528\u7684\u4e00\u4e9b\u8bbe\u5907\uff08\u4f8b\u5982 Mikrotik \u8def\u7531\u5668\uff09\uff0c\u5728 Peering\uff08\u5bf9\u63a5\uff09\u9636\u6bb5\u5efa\u7acb\u96a7\u9053\u65f6\uff0c\u53ea\u80fd\u4f7f\u7528\u00a0<code>\/30<\/code>\u00a0\u5730\u5740\u5757\u3002\n<ul>\n<li>\u5728\u540e\u7eed Peering\uff08\u5bf9\u63a5\uff09\u9636\u6bb5\uff0cLinux \u670d\u52a1\u5668\u53ef\u4ee5\u914d\u7f6e\u5355\u4e2a IP \u5230\u5355\u4e2a IP \u7684\u96a7\u9053\uff0c\u4f8b\u5982\u00a0<code>172.22.76.185\/32<\/code>\u00a0\u5230\u00a0<code>172.21.2.3\/32<\/code>\u3002\u540c\u65f6\uff0c\u6211\u8fd9\u7aef\u7684\u5730\u5740\u00a0<code>172.22.76.185\/32<\/code>\u00a0\u53ef\u4ee5\u540c\u65f6\u7528\u5728\u591a\u4e2a\u96a7\u9053\u4e2d\uff0c\u610f\u5473\u7740\u6211\u53ef\u4ee5\u540c\u65f6\u8bbe\u7f6e\u00a0<code>172.22.76.185\/32<\/code>\u00a0\u5230\u00a0<code>172.21.2.3\/32<\/code>\u00a0\u7684\u96a7\u9053\uff0c\u4ee5\u53ca\u00a0<code>172.22.76.185\/32<\/code>\u00a0\u5230\u00a0<code>172.22.3.4\/32<\/code>\u00a0\u7684\u96a7\u9053\uff0c\u4ee5\u53ca\u4efb\u610f\u591a\u7684\u96a7\u9053\uff0c\u4e0e\u4efb\u610f\u591a\u7684\u4eba Peer\uff0c\u800c\u4e0d\u9700\u8981\u989d\u5916\u7684 IP\u3002<\/li>\n<li>\u4f46\u5982\u679c\u4f60\u7684\u8bbe\u5907\u8981\u6c42\u4f7f\u7528\u00a0<code>\/30<\/code>\u00a0\u5730\u5740\uff0c\u610f\u5473\u7740\u4e00\u4e2a\u96a7\u9053\u5c31\u9700\u8981\u5360\u7528 4 \u4e2a IP \u5730\u5740\uff0c\u5e76\u4e14\u4f60\u8fd9\u7aef\u7684\u5730\u5740\u65e0\u6cd5\u91cd\u590d\u4f7f\u7528\uff0c\u6bd4\u8f83\u6d6a\u8d39\u3002<\/li>\n<li>\u6b64\u65f6\u4f60\u9700\u8981\u9884\u7559\u8f83\u591a\u7684\u5730\u5740\uff0c\u56e0\u4e3a DN42 \u5185\u7269\u7406\u8def\u7531\u5668\u8f83\u5c11\u89c1\uff0c\u4e0e\u4f60\u5bf9\u63a5\u7684\u53e6\u4e00\u4f4d\u4e00\u822c\u4e5f\u6ca1\u6709\u9884\u7559\u8fd9\u4e48\u591a\u5730\u5740\uff0c\u8fd9\u4e2a\u00a0<code>\/30<\/code>\u00a0\u5730\u5740\u5757\u9700\u8981\u7531\u4f60\u51fa\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>DN42 \u4e00\u822c\u5efa\u8bae\u7533\u8bf7\u00a0<code>\/27<\/code>\uff0c\u4f60\u80fd\u76f4\u63a5\u7533\u8bf7\u7684\u6700\u5927\u5730\u5740\u5757\u662f\u00a0<code>\/26<\/code>\u3002<\/li>\n<li>\u5982\u679c\u4f60\u7684\u670d\u52a1\u5668<strong>\u975e\u5e38\u591a\uff08\u6307\u8d85\u8fc7 62 \u53f0\uff09<\/strong>\uff0c\u8fde\u00a0<code>\/26<\/code>\u00a0\u90fd\u4e0d\u591f\u7528\uff0c\u90a3\u4e48\uff1a\n<ul>\n<li>\u9996\u5148\u5927\u4f6c\u53d7\u6211\u4e00\u62dc\uff1b<\/li>\n<li>\u7136\u540e\u4f60\u7684\u6ce8\u518c\u7533\u8bf7\u4e0d\u4f1a\u7acb\u5373\u88ab\u540c\u610f\u3002\u6b64\u65f6\u4f60\u9700\u8981\u53bb\u4ee5\u4e0b\u4efb\u4f55\u4e00\u4e2a\u5730\u65b9\uff0c\u544a\u8bc9\u5927\u5bb6\u4f60\u9700\u8981\u66f4\u5927\u5730\u5740\u5757\u7684\u7406\u7531\uff0c\u8bf7\u6c42\u5927\u5bb6\u6295\u7968\u540c\u610f\uff1a\n<ul>\n<li>DN42 \u7684 IRC \u9891\u9053\uff08\u670d\u52a1\u5668\u5730\u5740\u5728<a href=\"https:\/\/wiki.dn42.us\/services\/IRC\" target=\"_blank\" rel=\"noopener\">\u8fd9\u4e2a\u9875\u9762<\/a>\u53ef\u4ee5\u770b\u5230\uff0c\u5176\u4e2d\u7684 public internet \u9879\uff09<\/li>\n<li>DN42 \u7684\u90ae\u4ef6\u5217\u8868\uff08\u5730\u5740\u5728<a href=\"https:\/\/wiki.dn42.us\/contact#contact_mailing-list\" target=\"_blank\" rel=\"noopener\">\u8fd9\u4e2a\u9875\u9762<\/a>\u7684 Mailing list \u9879\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u5343\u4e07\u4e0d\u8981\u4e00\u4e0a\u6765\u5c31\u7533\u8bf7\u00a0<code>\/24<\/code>\u00a0\u7b49\u5de8\u5927\u7684\u5730\u5740\u5757\uff01<\/strong><\/li>\n<li><strong>\u5343\u4e07\u4e0d\u8981\u4e00\u4e0a\u6765\u5c31\u7533\u8bf7\u00a0<code>\/24<\/code>\u00a0\u7b49\u5de8\u5927\u7684\u5730\u5740\u5757\uff01<\/strong><\/li>\n<li><strong>\u5343\u4e07\u4e0d\u8981\u4e00\u4e0a\u6765\u5c31\u7533\u8bf7\u00a0<code>\/24<\/code>\u00a0\u7b49\u5de8\u5927\u7684\u5730\u5740\u5757\uff01<\/strong>\n<ul>\n<li>\u53ef\u4ee5\u5148\u627e\u4e00\u5757\u7a7a\u95f2\u7684\u00a0<code>\/24<\/code>\u00a0\u7b49\u8f83\u5927\u7684\u5730\u5740\u5757\uff0c\u7136\u540e\u53d6\u5176\u4e2d\u7684\u00a0<code>\/27<\/code>\u00a0\u4e00\u5c0f\u5757\u3002\u540e\u7eed\u6709\u9700\u8981\u65f6\u518d\u5c06\u5730\u5740\u5757\u6269\u5927\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u5c24\u5176\u662f\u5343\u4e07\u4e0d\u8981\u5360\u7740\u00a0<code>\/24<\/code>\u00a0\u4e0d\u7528\uff01<\/strong><\/li>\n<li><strong>\u5c24\u5176\u662f\u5343\u4e07\u4e0d\u8981\u5360\u7740\u00a0<code>\/24<\/code>\u00a0\u4e0d\u7528\uff01<\/strong><\/li>\n<li><strong>\u5c24\u5176\u662f\u5343\u4e07\u4e0d\u8981\u5360\u7740\u00a0<code>\/24<\/code>\u00a0\u4e0d\u7528\uff01<\/strong>\n<ul>\n<li>DN42 \u5185\u7684 IPv4 \u5730\u5740\u4e0e\u516c\u7f51\u7684 IPv4 \u5730\u5740\u540c\u6837\u73cd\u8d35\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u9009\u597d\u5730\u5740\u5757\u4e4b\u540e\uff0c\u5728\u00a0<code>data\/inetnum<\/code>\u00a0\u6587\u4ef6\u5939\u521b\u5efa IPv4 \u5730\u5740\u5bf9\u5e94\u7684\u6587\u4ef6\u3002\u4f8b\u5982\u6211\u7684\u5176\u4e2d\u4e00\u4e2a\u5730\u5740\u5757\u662f\u00a0<code>172.22.76.184\/29<\/code>\uff0c\u5bf9\u5e94\u7684\u6587\u4ef6\u5c31\u662f\u00a0<code>data\/inetnum\/172.22.76.184_29<\/code>\uff1a\n<div id=\"lti-g9351853\" class=\"btn-group-vertical btn-group\" role=\"group\"><input id=\"lti-9351853-3150491\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9351853\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9351853-3150491\">\u4ee5\u4e0b\u4ee3\u7801\u662f\u6211\u7684\u6ce8\u518c\u4fe1\u606f\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/label><input id=\"lti-9351853-3962706\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9351853\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9351853-3962706\">\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u6587\u6863\uff0c\u5e76\u5c06\u4ee3\u7801\u4e2d\u7684\u5168\u90e8\u4fe1\u606f\u66ff\u6362\u6210\u4f60\u7684\u4fe1\u606f\u3002<\/label><input id=\"lti-9351853-9332032\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9351853\" type=\"radio\" data-lti-tag=\"code4\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9351853-9332032\">\u6211\u786e\u8ba4\u6211\u5df2\u9605\u8bfb\u4ee5\u4e0a\u5185\u5bb9\uff0c\u67e5\u770b\u4ee3\u7801\u3002<\/label><\/div>\n<\/li>\n<li>\u5404\u9879\u542b\u4e49\u5982\u4e0b\uff1a\n<ul>\n<li><code>inetnum<\/code>\uff1a\u4f60\u7684\u8fd9\u4e2a\u5730\u5740\u5757\u7684\u8303\u56f4\uff0c\u5982\u679c\u4f60\u4e0d\u4f1a\u7b97\uff0c\u90a3\u4e48\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u5730\u5740\u5757\u524d\u540e\u7684\u7528\u6237\u63a8\u51fa\uff0c\u6216\u8005\u76f4\u63a5\u7528\u00a0<a href=\"https:\/\/ipjisuanqi.com\/\" target=\"_blank\" rel=\"noopener\">IP \u5730\u5740\u8ba1\u7b97\u5668<\/a>\u3002<\/li>\n<li><code>netname<\/code>\uff1a\u4f60\u7684\u8fd9\u4e2a\u5730\u5740\u5757\u7684\u540d\u79f0\uff0c\u6ca1\u4ec0\u4e48\u7528\uff0c\u968f\u4fbf\u53d6\uff08\u4f46\u4e00\u822c\u5efa\u8bae\u4fdd\u6301\u00a0<code>[\u6635\u79f0]-IPV4<\/code>\u00a0\u683c\u5f0f\uff09\u3002<\/li>\n<li><code>remarks<\/code>\uff1a\u7b80\u4ecb\uff0c\u968f\u610f\u586b\u5199\u3002<\/li>\n<li><code>descr<\/code>\uff1a\u7b80\u4ecb\uff0c\u968f\u610f\u586b\u5199\u3002<\/li>\n<li><code>country<\/code>\uff1a\u4f60\u7684\u56fd\u5bb6\u4ee3\u53f7\uff0c\u586b CN \u4ee3\u8868\u4e2d\u56fd\u5927\u9646\u3002<\/li>\n<li><code>admin-c<\/code>\uff1a<code>admin contact\uff08\u7ba1\u7406\u5458\u8054\u7cfb\u4fe1\u606f\uff09<\/code>\uff0c\u6307\u5411\u4f60\u7684 person \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>tech-c<\/code>\uff1a<code>tech contact\uff08\u6280\u672f\u5458\u8054\u7cfb\u4fe1\u606f\uff09<\/code>\uff0c\u6307\u5411\u4f60\u7684 person \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>mnt-by<\/code>\uff1a<code>maintain by\uff08\u7531\u8c01\u7ef4\u62a4\uff09<\/code>\uff0c\u7531\u8c01\u7ef4\u62a4\uff0c\u6307\u5411\u4f60\u4e4b\u524d\u7684 mntner \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-MNT<\/code>\u3002<\/li>\n<li><code>nserver<\/code>\uff1aIP \u5730\u5740\u53cd\u5411\u89e3\u6790\u7684 DNS \u670d\u52a1\u5668\u3002\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u8fd9\u4e2a\u662f\u4ec0\u4e48\uff0c\u6216\u8005\u4e0d\u9700\u8981\u8fd9\u4e2a\uff0c\u53ef\u4ee5\u53bb\u6389\u3002<\/li>\n<li><code>status<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>ASSIGNED<\/code>\u3002<\/li>\n<li><code>cidr<\/code>\uff1a\u4f60\u7684\u5730\u5740\u5757\u7684\u8303\u56f4\uff0c\u4e0e\u00a0<code>inetnum<\/code>\u00a0\u76f8\u540c\uff0c\u53ea\u662f\u4ee5 CIDR \u65b9\u5f0f\u8868\u793a\u3002<\/li>\n<li><code>source<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>DN42<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u6ce8\u518c IP \u7684\u8fc7\u7a0b\u8fd8\u6ca1\u7ed3\u675f\uff0c\u4f60\u8fd8\u9700\u8981\u521b\u5efa\u4e00\u4e2a route \u5bf9\u8c61\uff0c\u6388\u6743\u67d0\u4e2a AS \u4f7f\u7528\u8fd9\u4e2a\u5730\u5740\u3002\u5728\u00a0<code>data\/route<\/code>\u00a0\u6587\u4ef6\u5939\u521b\u5efa\u5bf9\u5e94\u6587\u4ef6\uff0c\u4f8b\u5982\u6211\u7684\u662f\u00a0<code>data\/route\/172.22.76.184_29<\/code>\uff1a\n<div id=\"lti-g4595627\" class=\"btn-group-vertical btn-group\" role=\"group\"><input id=\"lti-4595627-3154077\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g4595627\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-4595627-3154077\">\u4ee5\u4e0b\u4ee3\u7801\u662f\u6211\u7684\u6ce8\u518c\u4fe1\u606f\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/label><input id=\"lti-4595627-1023596\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g4595627\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-4595627-1023596\">\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u6587\u6863\uff0c\u5e76\u5c06\u4ee3\u7801\u4e2d\u7684\u5168\u90e8\u4fe1\u606f\u66ff\u6362\u6210\u4f60\u7684\u4fe1\u606f\u3002<\/label><input id=\"lti-4595627-4253177\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g4595627\" type=\"radio\" data-lti-tag=\"code5\" \/><label class=\"btn btn-outline-primary\" for=\"lti-4595627-4253177\">\u6211\u786e\u8ba4\u6211\u5df2\u9605\u8bfb\u4ee5\u4e0a\u5185\u5bb9\uff0c\u67e5\u770b\u4ee3\u7801\u3002<\/label><\/div>\n<ul>\n<li>\u5404\u9879\u542b\u4e49\u5982\u4e0b\uff1a\n<ul>\n<li><code>route<\/code>\uff1a\u4f60\u7684\u8fd9\u4e2a\u5730\u5740\u5757\u7684\u8303\u56f4\u3002<\/li>\n<li><code>descr<\/code>\uff1a\u7b80\u4ecb\uff0c\u968f\u610f\u586b\u5199\u3002<\/li>\n<li><code>origin<\/code>\uff1a\u4f60\u6388\u6743\u54ea\u4e2a AS \u4f7f\u7528\u8fd9\u4e2a\u5730\u5740\u5757\uff0c\u586b\u5199\u4f60\u7684 AS \u7f16\u53f7\u3002<\/li>\n<li><code>mnt-by<\/code>\uff1a<code>maintain by\uff08\u7531\u8c01\u7ef4\u62a4\uff09<\/code>\uff0c\u7531\u8c01\u7ef4\u62a4\uff0c\u6307\u5411\u4f60\u4e4b\u524d\u7684 mntner \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-MNT<\/code>\u3002<\/li>\n<li><code>source<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>DN42<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u9274\u4e8e\u4eca\u5e74\u662f 2020 \u5e74\uff0c\u4f60\u6700\u597d\u518d\u6ce8\u518c\u4e00\u4e2a IPv6 \u7684\u5730\u5740\u5757\uff0c\u5728\u00a0<code>data\/inet6num<\/code>\u00a0\u4e2d\u521b\u5efa\u6587\u4ef6\u3002\n<ul>\n<li>DN42 \u7684 IPv6 \u5730\u5740\u5728\u00a0<code>fd00::\/8<\/code>\u00a0\u8303\u56f4\uff0c\u4f4d\u4e8e\u79c1\u6709 IPv6 \u5730\u5740\u6bb5\u3002<\/li>\n<li>DN42 \u5185 IPv6 \u5730\u5740\u5757\u4e00\u822c\u53ea\u4ee5\u00a0<code>\/48<\/code>\u00a0\u7684\u5927\u5c0f\u5b58\u5728\uff0c\u8db3\u591f\u4efb\u4f55\u4eba\u4f7f\u7528\u3002\n<ul>\n<li>\u5373\u4f7f\u4f60\u7684\u8def\u7531\u5668\u8981\u6c42 IPv6 \u96a7\u9053\u4ee5\u00a0<code>\/64<\/code>\u00a0\u7684\u5355\u4f4d\u5b58\u5728\uff0c\u4e00\u4e2a\u00a0<code>\/48<\/code>\u00a0\u5185\u8fd8\u53ef\u4ee5\u5212\u51fa\u00a0<span class=\"math math-inline\"><span class=\"katex\"><span class=\"katex-mathml\">2^{16} = 65536<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\">2<span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\"><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">16<\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mrel\">=<\/span><\/span><span class=\"base\"><span class=\"mord\">65536<\/span><\/span><\/span><\/span><\/span>\u00a0\u4e2a\u00a0<code>\/64<\/code>\uff0c\u8db3\u591f\u4f60\u5bf9\u63a5\u5b8c DN42 \u5185\u7684\u6240\u6709\u4eba\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4f60\u53ef\u80fd\u60f3\u81ea\u5b9a\u4e49\u4f60\u7684\u5730\u5740\u5757\u7684\u524d\u7f00\uff0c\u5199\u4e00\u4e9b 19260817 \u4e4b\u7c7b\u7684\u5185\u5bb9\u8fdb\u53bb\u3002\n<ul>\n<li>\u9996\u5148\u660e\u786e\uff1a\u6211<strong>\u975e\u5e38\u4e0d\u63a8\u8350\u4f60\u8fd9\u6837\u505a<\/strong>\uff01<\/li>\n<li>\u9996\u5148\u660e\u786e\uff1a\u6211<strong>\u975e\u5e38\u4e0d\u63a8\u8350\u4f60\u8fd9\u6837\u505a<\/strong>\uff01<\/li>\n<li>\u9996\u5148\u660e\u786e\uff1a\u6211<strong>\u975e\u5e38\u4e0d\u63a8\u8350\u4f60\u8fd9\u6837\u505a<\/strong>\uff01\n<ul>\n<li>\u4e0e\u5176\u627e\u4e00\u4e2a\u597d\u8bb0\u7684 IPv6 \u5730\u5740\uff0c\u4e0d\u5982<a href=\"https:\/\/lantian.pub\/article\/modify-website\/register-own-domain-in-dn42.lantian\/#%E5%9C%A8-dn42-%E6%B3%A8%E5%86%8C%E5%9F%9F%E5%90%8D\">\u5728 DN42 \u4e2d\u6ce8\u518c\u4e00\u4e2a\u597d\u8bb0\u7684\u57df\u540d<\/a>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>RFC4193 \u89c4\u5b9a\uff0cIPv6 ULA \u5730\u5740\u539f\u5219\u4e0a\u5e94\u8be5\u5168\u90e8\u968f\u673a\u751f\u6210\uff0c\u4ee5\u505a\u5230<strong>\u5168\u7403\u552f\u4e00<\/strong>\u3002\n<ul>\n<li>\u5047\u5982\u4f60\u81ea\u5b9a\u4e49\u4e86\u5730\u5740\u5757\uff0c\u53e6\u4e00\u540d\u7528\u6237\u5728\u52a0\u5165 DN42 \u65f6\u5c31\u53ef\u80fd\u4f1a\u4ea7\u751f\u5730\u5740\u5757\u51b2\u7a81\uff0c\u7ed9\u53cc\u65b9\u90fd\u589e\u52a0\u9ebb\u70e6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6b64\u5916\uff0cDN42 \u4e0e\u4e00\u4e9b\u6027\u8d28\u7c7b\u4f3c\u7684\u7f51\u7edc\u5f62\u6210\u4e86\u76f8\u4e92 Peer\uff08\u5bf9\u63a5\uff09\u7684\u5173\u7cfb\uff0c\u4e0e\u5b83\u4eec\u516c\u7528 IPv6 ULA \u7684\u5730\u5740\u6bb5\u3002\n<ul>\n<li>\u7531\u4e8e DN42\u00a0<strong>\u62ff\u4e0d\u5230\u5176\u5b83\u7f51\u7edc\u7684\u5b8c\u6574\u5730\u5740\u5206\u914d\u4fe1\u606f<\/strong>\uff0c\u5373\u4f7f\u4f60\u627e\u7684 IPv6 \u5730\u5740\u5757\u5728 DN42 Registry \u4e2d\u8fd8\u672a\u88ab\u6ce8\u518c\uff0c\u4ecd\u7136\u53ef\u80fd\u4e0e\u5176\u5b83\u7f51\u7edc\u4ea7\u751f\u51b2\u7a81\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6ce8\u610f\u4e00\u65e6\u4ea7\u751f\u51b2\u7a81\uff0c<strong>\u4f60\u6709\u53ef\u80fd\u9700\u8981\u4fee\u6539\u6574\u4e2a\u7f51\u7edc\u7684 IPv6 \u5730\u5740<\/strong>\u3002<\/li>\n<li>\u6b64\u5916\uff0cDN42 \u5404\u4e2a\u7ba1\u7406\u5458\u5bf9\u81ea\u5b9a\u4e49 IPv6 \u5730\u5740\u5757\u7684\u6001\u5ea6\u4e0d\u4e00\u3002\u6709\u4e9b\u4eba\u6210\u529f\u6ce8\u518c\u4e86\u81ea\u5b9a\u4e49\u7684\u5730\u5740\u5757\uff0c\u4f46\u6709\u4e9b\u4eba\u88ab\u62d2\u7edd\u4e86\u3002\n<ul>\n<li>\u6240\u4ee5\u5982\u679c\u4f60\u81ea\u5b9a\u4e49\u4e86\u5730\u5740\u5757\uff0c\u7136\u540e\u7533\u8bf7\u88ab\u62d2\u7edd\u4e86\uff0c<strong>\u4e0d\u8981\u592a\u60ca\u8bb6\uff0c\u4e56\u4e56\u6539\u597d<\/strong>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5f53\u4f60<strong>\u975e\u5e38 \u4e00\u5b9a \u80af\u5b9a \u786e\u5b9a<\/strong>\u4f60\u8981\u81ea\u5b9a\u4e49\u5730\u5740\u800c\u975e\u968f\u673a\u751f\u6210\uff0c\u63d0\u4ea4\u65f6 DN42 \u7684\u7ba1\u7406\u5458\u4f1a\u56de\u590d\u7c7b\u4f3c\u8fd9\u6837\u7684\u4e00\u6761\u4fe1\u606f\uff1a<\/li>\n<li>\n<blockquote><p>Your inet6num violates RFC4193 section 3.2. Are you fully aware of the consequences and do you really want to continue? Being forced to renumber your whole network really isn&#8217;t fun.<\/p>\n<p>\u4f60\u7684 IPv6 \u5730\u5740\u8fdd\u53cd\u4e86 RFC4193 \u89c4\u8303\u7684\u7b2c 3.2 \u6761\u3002\u4f60\u662f\u5426\u7406\u89e3\u8fd9\u6837\u505a\u7684\u540e\u679c\uff0c\u5e76\u4e14\u771f\u7684\u60f3\u8981\u7ee7\u7eed\uff1f\u88ab\u8feb\u7ed9\u6574\u4e2a\u7f51\u7edc\u91cd\u65b0\u7f16\u6392\u5730\u5740\u771f\u7684\u4e0d\u597d\u73a9\u3002<\/p><\/blockquote>\n<\/li>\n<li>\u5982\u679c\u4f60<strong>\u975e\u5e38 \u4e00\u5b9a \u80af\u5b9a \u786e\u5b9a<\/strong>\u4f60\u60f3\u8fd9\u6837\u505a\uff0c\u90a3\u5c31\u56de\u590d\u00a0<code>Yes, I'm sure<\/code>\u3002<\/li>\n<li>\u4f46\u6ce8\u610f\uff0c\u6211\u4e2a\u4eba\u4ee5\u53ca DN42 \u7684\u4e00\u4e9b\u7ba1\u7406\u5458<strong>\u6bd4\u8f83\u53cd\u611f\u8fd9\u79cd\u884c\u4e3a<\/strong>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6700\u597d\u7684\u9009\u62e9\u662f\u968f\u673a\u751f\u6210\u4e00\u4e2a\u5730\u5740\u5757\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b<a href=\"https:\/\/simpledns.plus\/private-ipv6\" target=\"_blank\" rel=\"noopener\">\u968f\u673a\u751f\u6210\u524d\u7f00\u7684\u5de5\u5177<\/a>\u3002<\/li>\n<li>\u751f\u6210\u5b8c\u5730\u5740\u5757\u540e\uff0c\u7c7b\u4f3c\u7684\u5728\u00a0<code>data\/inet6num<\/code>\u00a0\u4e2d\u521b\u5efa\u6587\u4ef6\uff0c\u4f8b\u5982\u6211\u7684\u5730\u5740\u5757\u662f\u00a0<code>fdbc:f9dc:67ad::\/48<\/code>\uff0c\u6587\u4ef6\u540d\u5c31\u662f\u00a0<code>data\/inet6num\/fdbc:f9dc:67ad::_48<\/code>\uff1a\n<div id=\"lti-g9394176\" class=\"btn-group-vertical btn-group\" role=\"group\"><input id=\"lti-9394176-1509244\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9394176\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9394176-1509244\">\u4ee5\u4e0b\u4ee3\u7801\u662f\u6211\u7684\u6ce8\u518c\u4fe1\u606f\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/label><input id=\"lti-9394176-7240691\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9394176\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9394176-7240691\">\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u6587\u6863\uff0c\u5e76\u5c06\u4ee3\u7801\u4e2d\u7684\u5168\u90e8\u4fe1\u606f\u66ff\u6362\u6210\u4f60\u7684\u4fe1\u606f\u3002<\/label><input id=\"lti-9394176-3286086\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g9394176\" type=\"radio\" data-lti-tag=\"code6\" \/><label class=\"btn btn-outline-primary\" for=\"lti-9394176-3286086\">\u6211\u786e\u8ba4\u6211\u5df2\u9605\u8bfb\u4ee5\u4e0a\u5185\u5bb9\uff0c\u67e5\u770b\u4ee3\u7801\u3002<\/label><\/div>\n<\/li>\n<li>\u5404\u9879\u542b\u4e49\u5982\u4e0b\uff1a\n<ul>\n<li><code>inet6num<\/code>\uff1a\u4f60\u7684\u8fd9\u4e2a\u5730\u5740\u5757\u7684\u8303\u56f4\u3002IPv6 \u7684\u8303\u56f4\u7b97\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u4ece\u5168 0 \u5230\u5168 f\u3002<\/li>\n<li><code>netname<\/code>\uff1a\u4f60\u7684\u8fd9\u4e2a\u5730\u5740\u5757\u7684\u540d\u79f0\uff0c\u6ca1\u4ec0\u4e48\u7528\uff0c\u968f\u4fbf\u53d6\uff08\u4f46\u4e00\u822c\u5efa\u8bae\u4fdd\u6301\u00a0<code>[\u6635\u79f0]-IPV6<\/code>\u00a0\u683c\u5f0f\uff09\u3002<\/li>\n<li><code>remarks<\/code>\uff1a\u7b80\u4ecb\uff0c\u968f\u610f\u586b\u5199\u3002<\/li>\n<li><code>descr<\/code>\uff1a\u7b80\u4ecb\uff0c\u968f\u610f\u586b\u5199\u3002<\/li>\n<li><code>country<\/code>\uff1a\u4f60\u7684\u56fd\u5bb6\u4ee3\u53f7\uff0c\u586b CN \u4ee3\u8868\u4e2d\u56fd\u5927\u9646\u3002<\/li>\n<li><code>admin-c<\/code>\uff1a<code>admin contact\uff08\u7ba1\u7406\u5458\u8054\u7cfb\u4fe1\u606f\uff09<\/code>\uff0c\u6307\u5411\u4f60\u7684 person \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>tech-c<\/code>\uff1a<code>tech contact\uff08\u6280\u672f\u5458\u8054\u7cfb\u4fe1\u606f\uff09<\/code>\uff0c\u6307\u5411\u4f60\u7684 person \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-DN42<\/code>\u3002<\/li>\n<li><code>mnt-by<\/code>\uff1a<code>maintain by\uff08\u7531\u8c01\u7ef4\u62a4\uff09<\/code>\uff0c\u7531\u8c01\u7ef4\u62a4\uff0c\u6307\u5411\u4f60\u4e4b\u524d\u7684 mntner \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-MNT<\/code>\u3002<\/li>\n<li><code>nserver<\/code>\uff1aIP \u5730\u5740\u53cd\u5411\u89e3\u6790\u7684 DNS \u670d\u52a1\u5668\u3002\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u8fd9\u4e2a\u662f\u4ec0\u4e48\uff0c\u6216\u8005\u4e0d\u9700\u8981\u8fd9\u4e2a\uff0c\u53ef\u4ee5\u53bb\u6389\u3002<\/li>\n<li><code>status<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>ASSIGNED<\/code>\u3002<\/li>\n<li><code>cidr<\/code>\uff1a\u4f60\u7684\u5730\u5740\u5757\u7684\u8303\u56f4\uff0c\u4e0e\u00a0<code>inetnum<\/code>\u00a0\u76f8\u540c\uff0c\u53ea\u662f\u4ee5 CIDR \u65b9\u5f0f\u8868\u793a\u3002<\/li>\n<li><code>source<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>DN42<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7136\u540e\u5728\u00a0<code>data\/route6<\/code>\u00a0\u521b\u5efa\u4e00\u4e2a route6 \u5bf9\u8c61\uff0c\u6388\u6743\u4f60\u81ea\u5df1\u7684 AS \u4f7f\u7528\u8fd9\u4e2a IP \u6bb5\uff0c\u4f8b\u5982\u6211\u7684\u662f\u00a0<code>data\/route6\/fdbc:f9dc:67ad::_48<\/code>\uff1a\n<div id=\"lti-g44079\" class=\"btn-group-vertical btn-group\" role=\"group\"><input id=\"lti-44079-4298620\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g44079\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-44079-4298620\">\u4ee5\u4e0b\u4ee3\u7801\u662f\u6211\u7684\u6ce8\u518c\u4fe1\u606f\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/label><input id=\"lti-44079-5522966\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g44079\" type=\"radio\" data-lti-tag=\"noop\" \/><label class=\"btn btn-outline-primary\" for=\"lti-44079-5522966\">\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u6587\u6863\uff0c\u5e76\u5c06\u4ee3\u7801\u4e2d\u7684\u5168\u90e8\u4fe1\u606f\u66ff\u6362\u6210\u4f60\u7684\u4fe1\u606f\u3002<\/label><input id=\"lti-44079-3420489\" class=\"btn-check lti-option\" autocomplete=\"off\" name=\"lti-g44079\" type=\"radio\" data-lti-tag=\"code7\" \/><label class=\"btn btn-outline-primary\" for=\"lti-44079-3420489\">\u6211\u786e\u8ba4\u6211\u5df2\u9605\u8bfb\u4ee5\u4e0a\u5185\u5bb9\uff0c\u67e5\u770b\u4ee3\u7801\u3002<\/label><\/div>\n<ul>\n<li>\u5404\u9879\u542b\u4e49\u5982\u4e0b\uff1a\n<ul>\n<li><code>route6<\/code>\uff1a\u4f60\u7684\u8fd9\u4e2a\u5730\u5740\u5757\u7684\u8303\u56f4\u3002<\/li>\n<li><code>descr<\/code>\uff1a\u7b80\u4ecb\uff0c\u968f\u610f\u586b\u5199\u3002<\/li>\n<li><code>origin<\/code>\uff1a\u4f60\u6388\u6743\u54ea\u4e2a AS \u4f7f\u7528\u8fd9\u4e2a\u5730\u5740\u5757\uff0c\u586b\u5199\u4f60\u7684 AS \u7f16\u53f7\u3002<\/li>\n<li><code>mnt-by<\/code>\uff1a<code>maintain by\uff08\u7531\u8c01\u7ef4\u62a4\uff09<\/code>\uff0c\u7531\u8c01\u7ef4\u62a4\uff0c\u6307\u5411\u4f60\u4e4b\u524d\u7684 mntner \u6587\u4ef6\uff0c<code>[\u6635\u79f0]-MNT<\/code>\u3002<\/li>\n<li><code>source<\/code>\uff1a\u56fa\u5b9a\u4e3a\u00a0<code>DN42<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u606d\u559c\u4f60\u521b\u5efa\u5b8c\u4e86\u6240\u6709\u9700\u8981\u7684\u6587\u4ef6\uff0c\u63a5\u4e0b\u6765\u00a0<code>cd<\/code>\u00a0\u5230 Git \u4ed3\u5e93\u7684\u6839\u76ee\u5f55\uff0c\u6267\u884c\u4e00\u6b21\u00a0<code>git add .<\/code>\uff0c\u7136\u540e\u6267\u884c\u00a0<code>git commit -S<\/code>\uff0c\u4f7f\u7528\u4f60\u5148\u524d\u521b\u5efa\u7684 GPG \u5bc6\u94a5\uff0c\u521b\u5efa\u4e00\u4efd<strong>\u5e26 GPG \u7b7e\u540d\u7684 commit<\/strong>\u3002\n<ul>\n<li>\u5982\u679c\u4f60\u64cd\u4f5c\u5feb\u5df2\u7ecf commit \u5b8c\u4e86\uff0c\u4f60\u53ef\u4ee5\u6267\u884c\u00a0<code>git commit --amend -S<\/code>\u00a0\u4fee\u6539\u4e4b\u524d\u7684 commit\uff0c\u5c06\u5176\u7b7e\u540d\u3002\n<ul>\n<li>\u5982\u679c\u4f60\u6ca1\u6709 GPG \u5bc6\u94a5\uff0c\u628a -S \u53c2\u6570\u5220\u6389\uff0c\u6b64\u65f6\u4f60\u9700\u8981\u4f7f\u7528 SSH \u516c\u94a5\u9a8c\u8bc1\uff0c\u89c1\u540e\u7eed\u6b65\u9aa4\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6839\u636e\u53cd\u9988\uff0c\u5728 Windows \u4e0b\u4f7f\u7528 Git Bash \u65f6\uff0c\u6b64\u5904 GPG \u7b7e\u540d\u65f6\u4f1a\u51fa\u95ee\u9898\u3002\n<ul>\n<li>\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u00a0<a href=\"https:\/\/docs.microsoft.com\/zh-cn\/windows\/wsl\/install-win10\" target=\"_blank\" rel=\"noopener\">Windows \u7684 Linux \u5b50\u7cfb\u7edf\uff08WSL\uff09<\/a>\u3002<\/li>\n<li>\u4f60\u4e5f\u53ef\u4ee5\u5c1d\u8bd5\u8bc4\u8bba\u533a\u63d0\u4f9b\u7684\u65b9\u6cd5\u3002\u8fd0\u884c\u8fd9\u6761\u547d\u4ee4\uff0c\u7136\u540e\u91cd\u8bd5\uff1a\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-built_in\">export<\/span> GPG_TTY=$(<span class=\"hljs-built_in\">tty<\/span>)\r\n<\/code><\/pre>\n<\/li>\n<li>\u4f60\u4e5f\u53ef\u4ee5\u9009\u62e9\u4e0d\u7528 GPG\uff0c\u800c\u7528 SSH \u516c\u94a5\u9a8c\u8bc1\u4f60\u7684\u8eab\u4efd\u3002\u89c1\u540e\u7eed\u6b65\u9aa4\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u5148\u524d commit \u4e86\u591a\u6b21\uff0c\u4f60\u9700\u8981\u628a\u6240\u6709\u53d8\u66f4\u5408\u5e76\u5230\u4e00\u6b21 commit \u91cc\uff0c\u76f4\u63a5\u8fd0\u884c Registry \u6839\u76ee\u5f55\u4e0b\u7684\u00a0<code>.\/squash-my-commits<\/code>\u00a0\u811a\u672c\u5373\u53ef\u3002<\/li>\n<li>\u7531\u4e8e\u4f60\u64cd\u4f5c\u671f\u95f4 Registry \u53ef\u80fd\u6709\u6765\u81ea\u5176\u4ed6\u4eba\u7684\u53d8\u66f4\uff0c\u4f60\u9700\u8981\u83b7\u53d6\u4e00\u4e0b Registry \u7684\u66f4\u65b0\uff1a\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-comment\"># \u83b7\u53d6\u66f4\u65b0<\/span>\r\ngit fetch origin master\r\n<span class=\"hljs-comment\"># \u5207\u6362\u5230\u4f60\u81ea\u5df1\u7684\u5206\u652f<\/span>\r\ngit checkout lantian-20200901\/register\r\n<span class=\"hljs-comment\"># Rebase \u4f60\u7684\u5206\u652f\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u5c06\u4f60\u7684\u4fee\u6539\u5728\u6700\u65b0\u7684 Registry \u4e0a\u91cd\u65b0\u5e94\u7528\u4e00\u904d<\/span>\r\n<span class=\"hljs-comment\"># \u8f93\u5165\u8fd9\u884c\u547d\u4ee4\u540e\u4f1a\u51fa\u73b0\u4e00\u4e2a\u7f16\u8f91\u5668\uff0c\u4f60\u9700\u8981\u4fdd\u7559\u7b2c\u4e00\u884c\u7684 pick\uff0c<\/span>\r\n<span class=\"hljs-comment\"># \u5e76\u5c06\u7b2c\u4e8c\u884c\u5f00\u59cb\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\u7684 pick \u5168\u90e8\u6539\u6210 squash\uff0c\u7136\u540e\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91\u5668\u5c31\u53ef\u4ee5\u4e86<\/span>\r\n<span class=\"hljs-comment\">#<\/span>\r\n<span class=\"hljs-comment\"># \u5982\u679c\u4f60\u6ca1\u6709 GPG \u5bc6\u94a5\uff0c\u628a -S \u53c2\u6570\u5220\u6389<\/span>\r\ngit rebase -i -S origin\/master\r\n<\/code><\/pre>\n<\/li>\n<li>\u6267\u884c\u00a0<code>git push -f<\/code>\u00a0\u5c06\u4fee\u6539\u4e0a\u4f20\u5230 Git \u670d\u52a1\u5668\u3002<\/li>\n<li>\u56de\u5230\u00a0<a href=\"https:\/\/git.dn42.dev\/dn42\/registry\" target=\"_blank\" rel=\"noopener\">dn42\/registry<\/a>\uff0c\u53d1\u8d77 Pull Request\uff0c\u7b49\u5f85\u4f60\u7684\u4fe1\u606f\u88ab\u5408\u5e76\u3002\n<ul>\n<li>\u5982\u679c\u4f60\u4f7f\u7528 SSH \u516c\u94a5\u6765\u9a8c\u8bc1\uff0c\u9996\u5148\u00a0<code>git log<\/code>\u00a0\u67e5\u770b\u4f60\u7684 commit \u7684 hash\uff0c\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u628a\u7ed3\u679c\u9644\u5728 Pull Request \u91cc\uff1a\n<ul>\n<li><code>echo [commit hash] | ssh-keygen -Y sign -f ~\/.ssh\/id_ed25519 -n dn42<\/code><\/li>\n<li>\u6ce8\u610f\u66ff\u6362\u4f60\u7684 commit hash \u548c\u79c1\u94a5\u4f4d\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u7684\u64cd\u4f5c\u6216\u8005\u586b\u5199\u7684\u5185\u5bb9\u6709\u95ee\u9898\uff0c\u7ba1\u7406\u5458\u4f1a\u56de\u590d\u4f60\u7684 Pull Request\uff0c\u6839\u636e\u4ed6\u4eec\u7684\u8981\u6c42\u4fee\u6539\u5373\u53ef\u3002<\/li>\n<li>\u4f46\u6ce8\u610f\uff0c\u6309\u7167\u8981\u6c42\u4fee\u6539\u5b8c\u6210\u540e\uff0c** \u4e0d\u7528\u5173\u95ed\u539f\u5148\u7684 Pull Request \u518d\u91cd\u65b0\u5f00\u4e00\u4e2a\u3002** \u4f60\u53ea\u9700\u8981\u7167\u5e38\u00a0<code>git commit<\/code>\u00a0\u548c\u00a0<code>git push<\/code>\uff0c\u4f60\u540e\u7eed\u7684\u53d8\u66f4\u4f1a\u88ab\u81ea\u52a8\u6dfb\u52a0\u5230\u539f\u5148\u8fd9\u4e2a Pull Request \u91cc\u3002\n<ul>\n<li>\u4e00\u6b21\u6ce8\u518c \/ \u4fee\u6539\u4fe1\u606f\u884c\u4e3a\u53ea\u9700\u8981\u53d1\u4e00\u4e2a Pull Request \u5c31\u591f\u4e86\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u53d1 Pull Request\u00a0<strong>\u8bf7\u7528\u82f1\u6587\uff01<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u5728\u4f60\u7684\u4fe1\u606f\u88ab\u5408\u5e76\u4e4b\u540e\uff0c\u4f60\u5c31\u6b63\u5f0f\u83b7\u5f97\u4e86\u81ea\u5df1\u7684\u5730\u5740\u5757\uff0c\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u5f00\u59cb\u627e\u4eba Peer \u4e86\u3002<\/p>\n<h2 id=\"\u5bfb\u627e-peer-\u7684\u8282\u70b9\">\u5bfb\u627e Peer \u7684\u8282\u70b9<\/h2>\n<p>\u7531\u4e8e DN42 \u662f\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u7684\u7f51\u7edc\uff0c\u5e76\u6ca1\u6709\u4e00\u4e2a\u5b98\u65b9\u670d\u52a1\u5668\u4f9b\u4f60\u76f4\u63a5\u63a5\u5165\u3002\u4f60\u9700\u8981\u53bb\u8054\u7cfb\u5176\u5b83\u548c\u4f60\u4e00\u6837\u5728 DN42 \u6ce8\u518c\u7684\u7528\u6237\uff0c\u5efa\u7acb\u96a7\u9053\u8fde\u63a5\u548c BGP \u4f1a\u8bdd\uff0c\u4ece\u800c\u5efa\u7acb Peering\u3002<\/p>\n<p>\u4ee5\u4e0b\u63a8\u8350\u51e0\u4e2a\u627e\u5230\u5176\u5b83\u7528\u6237\u7684\u65b9\u6cd5\uff1a<\/p>\n<ol>\n<li>\u4f7f\u7528\u00a0<a href=\"https:\/\/dn42.us\/peers\" target=\"_blank\" rel=\"noopener\">DN42 PingFinder<\/a>\u3002\u5728\u8fd9\u91cc\u63d0\u4ea4\u4f60\u7684 IP \u5730\u5740\uff0c\u5176\u5b83\u5728 PingFinder \u4e0a\u6ce8\u518c\u7684\u7528\u6237\u7684\u670d\u52a1\u5668\u4f1a\u6d4b\u8bd5\u4e0e\u4f60\u7684\u5ef6\u8fdf\u3002\u8fd9\u4e9b\u7528\u6237\u4e5f\u4f1a\u7559\u4e0b\u81ea\u5df1\u7684\u90ae\u7bb1\uff0c\u6216\u8005\u81ea\u5df1\u7684 DN42 AS \u4fe1\u606f\u7684\u4ecb\u7ecd\u9875\u9762\uff0c\u540e\u7eed\u53ef\u4ee5\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\u53bb\u8054\u7cfb\u4ed6\u4eec\u3002<\/li>\n<li>\u53bb DN42 \u7684\u00a0<a href=\"https:\/\/wiki.dn42.us\/services\/IRC\" target=\"_blank\" rel=\"noopener\">IRC \u9891\u9053<\/a><\/li>\n<li>\u53bb\u8fd9\u4e2a<a href=\"https:\/\/t.me\/Dn42Chat\" target=\"_blank\" rel=\"noopener\">\u975e\u5b98\u65b9 Telegram \u7fa4\u7ec4<\/a>\u627e\u4eba Peer\u3002<\/li>\n<li><del>\u76f4\u63a5\u53bb\u627e Burble\u3002Burble \u662f DN42 \u7f51\u7edc\u4e2d\u4e00\u4e2a\u975e\u5e38\u6d3b\u8dc3\u7684\u7528\u6237\uff0c\u540c\u65f6\u5728\u5168\u7403\u5404\u5730\u90fd\u6709\u8282\u70b9\u3002\u6253\u5f00<a href=\"https:\/\/dn42.burble.com\/peering\" target=\"_blank\" rel=\"noopener\">\u4ed6\u7684 Peering \u4fe1\u606f\u9875\u9762<\/a>\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u4ed6\u7684\u670d\u52a1\u5668\u4fe1\u606f\u548c\u8054\u7cfb\u65b9\u5f0f\u3002<\/del>\n<ul>\n<li>\u4e3a\u4e86\u964d\u4f4e\u7f51\u7edc\u4e2d\u5fc3\u5ea6\u3001\u907f\u514d\u5355\u70b9\u6545\u969c\uff0cBurble \u76ee\u524d\u53ea\u63a5\u53d7\u5df2\u6709\u81f3\u5c11\u4e24\u4e2a Peer \u7684\u7528\u6237\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u76f4\u63a5\u627e\u6211\u3002\u70b9\u51fb<a href=\"https:\/\/lantian.pub\/page\/dn42\/index.html\">\u8fd9\u4e2a\u5730\u65b9<\/a>\u6216\u8005\u70b9\u51fb\u9876\u90e8\u5bfc\u822a\u680f\u7684 DN42 \u9879\u76ee\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u6211\u7684\u670d\u52a1\u5668\u4fe1\u606f\u548c\u8054\u7cfb\u65b9\u5f0f\u3002<\/li>\n<\/ol>\n<p>\u6ce8\u610f\u4f60\u53ef\u4ee5\u540c\u65f6\u627e\u5f88\u591a\u4e2a\u4eba Peer\uff0c\u8fd9\u53ef\u4ee5\u589e\u52a0\u4f60\u7f51\u7edc\u7684\u7a33\u5b9a\u6027\uff0c\u907f\u514d\u67d0\u4e2a\u8282\u70b9\u4e34\u65f6\u6545\u969c\u5bfc\u81f4\u4f60\u548c DN42 \u5b8c\u5168\u5931\u8054\u3002<\/p>\n<p>\u9009\u62e9\u51e0\u4e2a\u79bb\u4f60\u7684\u670d\u52a1\u5668\u8fd1\u3001\u5ef6\u8fdf\u4f4e\u7684\u8282\u70b9\uff0c\u7136\u540e\u7ee7\u7eed\u5f80\u4e0b\u770b\u3002<\/p>\n<h1 id=\"\u975e\u5e38\u91cd\u8981\u7684\u7cfb\u7edf\u914d\u7f6e\">\u975e\u5e38\u91cd\u8981\u7684\u7cfb\u7edf\u914d\u7f6e<\/h1>\n<ul>\n<li>\u9996\u5148\uff0c<strong>\u5343\u4e07 \u4e00\u5b9a \u7edd\u5bf9<\/strong>\u00a0\u8981\u6253\u5f00 Linux \u5185\u6838\u7684\u6570\u636e\u5305\u8f6c\u53d1\u529f\u80fd\uff0c\u5373\u00a0<code>ip_forwarding<\/code>\u3002\n<ul>\n<li>\u5728 DN42 \u5185\uff0c\u6ca1\u6709\u7edd\u5bf9\u610f\u4e49\u4e0a\u7684\u5ba2\u6237\u7aef\uff0c\u6bcf\u4e2a\u4eba\u7684\u670d\u52a1\u5668\u90fd\u662f\u5176\u5b83\u4eba\u7684\u8def\u7531\u5668\uff0c\u90fd\u53ef\u80fd\u9700\u8981\u8f6c\u53d1\u6570\u636e\u5305\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"net.ipv4.ip_forward=1\"<\/span> &gt;&gt; \/etc\/sysctl.conf\r\n<span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"net.ipv6.conf.default.forwarding=1\"<\/span> &gt;&gt; \/etc\/sysctl.conf\r\n<span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"net.ipv6.conf.all.forwarding=1\"<\/span> &gt;&gt; \/etc\/sysctl.conf\r\nsysctl -p\r\n<\/code><\/pre>\n<\/li>\n<li>\u540c\u65f6\uff0c\u5982\u679c\u4f60\u914d\u7f6e\u8fc7\u00a0<code>iptables<\/code>\u00a0\u7b49\u9632\u706b\u5899\u8f6f\u4ef6\uff0c\u8bf7\u68c0\u67e5\u76f8\u5173\u914d\u7f6e\uff0c\u786e\u4fdd\u653e\u884c\u6570\u636e\u5305\u7684\u8f6c\u53d1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u7136\u540e\uff0c<strong>\u5343\u4e07 \u4e00\u5b9a \u7edd\u5bf9<\/strong>\u00a0\u8981\u5173\u95ed Linux \u5185\u6838\u00a0<code>rp_filter<\/code>\u00a0\u7684\u4e25\u683c\u6a21\u5f0f\uff0c\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"net.ipv4.conf.default.rp_filter=0\"<\/span> &gt;&gt; \/etc\/sysctl.conf\r\n<span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"net.ipv4.conf.all.rp_filter=0\"<\/span> &gt;&gt; \/etc\/sysctl.conf\r\nsysctl -p\r\n<\/code><\/pre>\n<ul>\n<li><code>rp_filter<\/code>\u00a0\u662f Linux \u5185\u6838\u9488\u5bf9\u7f51\u7edc\u7684\u4e00\u9879\u7f51\u7edc\u5b89\u5168\u4fdd\u62a4\u529f\u80fd\uff0c\u5bf9\u4e8e\u6570\u636e\u5305\u7684\u6765\u6e90\u5730\u5740\u548c\u6765\u6e90\u7f51\u7edc\u754c\u9762\uff08\u7f51\u5361\uff09\u8fdb\u884c\u68c0\u67e5\uff1a\n<ul>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a 0\uff08\u5373\u7981\u7528\uff09\uff0c\u653e\u884c\u6240\u6709\u6570\u636e\u5305\u3002\n<ul>\n<li>\u4f46\u662f\u6709\u4e9b\u65e0\u6cd5\u6b63\u5e38\u56de\u590d\uff08\u8def\u7531\u8868\u5185\u6ca1\u6709\u5bf9\u5e94\u9879\u76ee\uff09\u7684\u6570\u636e\u5305\u4e5f\u4f1a\u88ab\u53d1\u7ed9\u5e94\u7528\u7a0b\u5e8f\u5904\u7406\uff0c\u6d88\u8017\u989d\u5916\u7684\u7cfb\u7edf\u8d44\u6e90\u3002<\/li>\n<li>\u4e0d\u8fc7\u989d\u5916\u6d88\u8017\u5e94\u8be5\u5f88\u5c0f\uff0c\u56e0\u6b64\u4e0a\u8ff0\u4e24\u9879\u8bbe\u7f6e\u4e3a 0 \u4e5f\u6ca1\u95ee\u9898\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a 1\uff08\u4e25\u683c\u6a21\u5f0f\uff09\uff0c\u5982\u679c\u6570\u636e\u5305\u6765\u6e90\u7f51\u5361\u4e0d\u662f\u53d1\u9001\u8fd9\u4e2a\u6570\u636e\u5305\u7684\u6700\u4f18\u7f51\u5361\uff08\u4e5f\u5c31\u662f\u5982\u679c\u4f60\u672c\u673a\u8981\u56de\u590d\u8fd9\u4e2a\u5730\u5740\u7684\u8bdd\uff0c\u4f1a\u9009\u62e9\u4e00\u5f20\u4e0d\u540c\u7684\u7f51\u5361\uff09\uff0c\u5c31\u628a\u8fd9\u4e2a\u6570\u636e\u5305<strong>\u4e22\u6389<\/strong>\u3002\n<ul>\n<li>\u6765\u6e90\u548c\u56de\u590d\u5728\u4e0d\u540c\u7f51\u5361\u662f DN42 \u5185<strong>\u975e\u5e38\u5e38\u89c1\u7684\u60c5\u51b5<\/strong>\uff0c\u56e0\u6b64\u00a0<strong>\u5343\u4e07 \u4e00\u5b9a \u7edd\u5bf9<\/strong>\u00a0\u4e0d\u80fd\u628a\u00a0<code>rp_filter<\/code>\u00a0\u8bbe\u7f6e\u6210 1\uff01<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e3a 2\uff08\u5bbd\u677e\u6a21\u5f0f\uff09\uff0c<strong>\u4ece\u7406\u8bba\u4e0a\u6765\u8bf4<\/strong>\uff0c\u5982\u679c\u6570\u636e\u5305\u6765\u6e90\u5730\u5740\u4e0d\u5728\u8def\u7531\u8868\u5185\uff08\u4e5f\u5c31\u662f\u672c\u673a\u4e0d\u77e5\u9053\u8981\u600e\u4e48\u56de\u590d\u8fd9\u4e2a\u5730\u5740\uff09\uff0c\u5c31\u628a\u8fd9\u4e2a\u6570\u636e\u5305\u4e22\u6389\u3002\n<ul>\n<li>\u4f46\u662f\u7406\u8bba\u5f52\u7406\u8bba\uff0c\u5728\u65b0\u7248\u672c\uff085.0+\uff09\u7684\u5185\u6838\u4e2d\uff0c\u5b9e\u9645\u4f7f\u7528\u4e2d\u4f9d\u7136\u4f1a\u6709\u5927\u91cf\u6765\u6e90\u5730\u5740\u6b63\u786e\u7684\u6b63\u5e38\u6570\u636e\u5305\u88ab\u4e22\u5f03\u3002\u56e0\u6b64\u4e0d\u8981\u4f7f\u7528\u8fd9\u4e2a\u6a21\u5f0f\uff0c\u8bf7\u7edf\u4e00\u4f7f\u7528 0\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7136\u540e\uff0c<strong>\u5343\u4e07 \u4e00\u5b9a \u7edd\u5bf9<\/strong>\u00a0\u5173\u6389\u4f60\u7684 UFW \u7b49\u5e2e\u4f60\u7b80\u5355\u914d\u7f6e iptables \u9632\u706b\u5899\u7684\u5de5\u5177\u3002\n<ul>\n<li>\u8fd9\u4e9b\u7b80\u5355\u914d\u7f6e\u9632\u706b\u5899\u7684\u5de5\u5177\u53ef\u80fd\u4f1a\u4f7f\u7528\u4e00\u4e9b\u9002\u5408\u4e2a\u4eba\u7528\u6237\uff0c\u4f46\u662f\u4e0d\u9002\u5408 DN42 \u573a\u666f\u7684\u529f\u80fd\uff0c\u6bd4\u5982 Conntrack\u3002\n<ul>\n<li>Conntrack \u4f1a\u8fc7\u6ee4\u6389\u5b83\u6ca1\u89c1\u8fc7\u7684\u94fe\u63a5\u7684\u6570\u636e\u5305\uff0c\u9020\u6210\u548c\u5f00\u4e86\u00a0<code>rp_filter<\/code>\u00a0\u4e25\u683c\u6a21\u5f0f\u4e00\u6837\u7684\u6548\u679c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6211\u4e2a\u4eba\u5efa\u8bae\u4f60\u624b\u52a8\u914d\u7f6e iptables\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"\u9009\u62e9\u4f60\u7684\u96a7\u9053\u8f6f\u4ef6\">\u9009\u62e9\u4f60\u7684\u96a7\u9053\u8f6f\u4ef6<\/h2>\n<p>DN42 \u4e2d\u51e0\u4e4e\u6bcf\u4e2a Peering \u90fd\u662f\u5efa\u7acb\u5728\u96a7\u9053\u8f6f\u4ef6\uff08\u5373 VPN\uff09\u4e4b\u4e0a\u7684\uff0c\u539f\u56e0\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>DN42 \u5404\u4e2a\u7528\u6237\u7684\u8282\u70b9\u5206\u5e03\u5728\u4e16\u754c\u5404\u5730\uff0c\u96a7\u9053\u8f6f\u4ef6\u53ef\u4ee5\u5bf9\u6570\u636e\u8fdb\u884c\u57fa\u672c\u7684\u52a0\u5bc6\u548c\u4fdd\u62a4\uff1b<\/li>\n<li>DN42 \u4f7f\u7528\u7684\u662f\u79c1\u6709\u5730\u5740\uff0c\u5982\u679c\u76f4\u63a5\u5728\u4e92\u8054\u7f51\u4e0a\u4f20\u8f93\uff0c\u4f1a\u88ab\u9632\u706b\u5899\u76f4\u63a5\u4e22\u5f03\uff0c\u751a\u81f3\u53ef\u80fd\u4f1a\u88ab\u4e3b\u673a\u5546\u8ba4\u4e3a\u4f60\u5728\u00a0<code>IP Spoofing<\/code>\uff08\u4f2a\u9020\u6765\u6e90 IP \u5730\u5740\uff09\uff0c\u8fdd\u53cd\u670d\u52a1\u6761\u6b3e\uff0c\u9020\u6210\u4e25\u91cd\u540e\u679c\u3002<\/li>\n<\/ul>\n<p>\u4f46\u6709\u4e00\u90e8\u5206\u4f8b\u5916\u60c5\u51b5\u5b58\u5728\uff0c\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li>\u4e24\u4e2a\u8282\u70b9\u5904\u5728\u540c\u4e00\u4e2a\u5185\u7f51\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5185\u7f51\u8054\u901a\u3002\n<ul>\n<li>\u5178\u578b\u4f8b\u5b50\u662f\u7ecf\u5178\u7f51\u7edc\u7684\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff0c\u6216\u8005\u4e00\u4e9b NAT VPS\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u96a7\u9053\u8f6f\u4ef6\u7684\u63a8\u8350\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5982\u679c\u4f60\u7528\u7684\u662f Linux \u7cfb\u7edf\u7684 VPS \u6216\u72ec\u7acb\u670d\u52a1\u5668\uff0c\u5e76\u4e14\u4f60\u7684 VPS \u4e0d\u662f OpenVZ \u6216\u8005 LXC \u865a\u62df\u5316\u7684\uff0c\u90a3\u4e48\u63a8\u8350\u4f7f\u7528 WireGuard\u3002\n<ul>\n<li>WireGuard \u7684\u4f18\u70b9\u5728\u4e8e\uff1a\n<ul>\n<li>\u914d\u7f6e\u6781\u5176\u7b80\u5355<\/li>\n<li>\u5360\u7528\u8d44\u6e90\u5c11<\/li>\n<li>\u5b89\u5168\u6027\u4e0d\u9519<\/li>\n<\/ul>\n<\/li>\n<li>WireGuard \u7684\u7f3a\u70b9\uff1a\n<ul>\n<li>\u529f\u80fd\u5c11\uff0c\u53ea\u80fd\u70b9\u5bf9\u70b9\u8fde\u63a5<\/li>\n<li>\u9700\u8981\u5185\u6838\u9a71\u52a8\u652f\u6301<\/li>\n<li>\u662f L3 \u5c42\u96a7\u9053\uff0c\u96be\u4ee5\u8fdb\u884c\u6865\u63a5\u7b49\u64cd\u4f5c<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u7528\u7684\u662f OpenVZ \u6216\u8005 LXC \u7684 VPS\uff0c\u4e0d\u5efa\u8bae\u4f7f\u7528\u00a0<code>wireguard-go<\/code>\u00a0\u4ee3\u66ff\u5185\u6838\u9a71\u52a8\uff0c\u8be5\u8f6f\u4ef6\u66f4\u65b0\u8f83\u6162\u4e14\u636e\u5176\u5b83\u7528\u6237\u79f0\u6709\u7a33\u5b9a\u6027\u95ee\u9898\u3002<\/li>\n<li>\u5b89\u88c5\u65b9\u5f0f\uff0c\u4ee5 Debian 10 (Buster) \u4e3a\u4f8b\uff1a\n<ul>\n<li>\u9996\u5148\u52a0\u5165 Debian Backports \u8f6f\u4ef6\u6e90\uff1a\n<ul>\n<li>\u7f16\u8f91\u00a0<code>\/etc\/apt\/sources.list<\/code>\uff0c\u6dfb\u52a0\uff1a\n<pre><code class=\"hljs language-bash\">deb http:\/\/deb.debian.org\/debian buster-backports main\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7136\u540e\u4f7f\u7528 DKMS \u5b89\u88c5 WireGuard \u7684\u5185\u6838\u9a71\u52a8\u548c\u7ba1\u7406\u5de5\u5177\uff1a\n<ul>\n<li><code>sudo apt update<\/code><\/li>\n<li><code>sudo apt install wireguard-tools wireguard-dkms<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u7528\u7684\u662f OpenVZ \u6216\u8005 LXC \u7684 VPS\uff0c\u63a8\u8350\u4f7f\u7528 OpenVPN\u3002\n<ul>\n<li>OpenVPN \u7684\u4f18\u70b9\uff1a\n<ul>\n<li>\u6781\u5176\u5e7f\u6cdb\u7684\u4f7f\u7528<\/li>\n<li>\u914d\u7f6e\u6559\u7a0b\u4e00\u5927\u5806<\/li>\n<li>\u65e0\u9700\u5185\u6838\u9a71\u52a8\u652f\u6301<\/li>\n<li>L2\u3001L3 \u5c42\u53ef\u9009<\/li>\n<\/ul>\n<\/li>\n<li>OpenVPN \u7684\u7f3a\u70b9\uff1a\n<ul>\n<li>\u914d\u7f6e\u6709\u70b9\u590d\u6742<\/li>\n<li>\u5b89\u5168\u6027\u4e0d\u5982 WireGuard<\/li>\n<\/ul>\n<\/li>\n<li>\u5b89\u88c5\u65b9\u5f0f\uff1a<code>sudo apt install openvpn supervisor<\/code><\/li>\n<li>\u6b64\u5904 Supervisor \u7528\u4e8e\u8fdb\u7a0b\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u7528\u7684\u662f Cisco\u3001Mikrotik \u7b49\u516c\u53f8\u7684\u786c\u4ef6\u8def\u7531\u5668\uff0c\u4f60\u4e00\u822c\u53ea\u80fd\u4f7f\u7528 GRE\/IPSec\uff1a\n<ul>\n<li>GRE\/IPSec \u7684\u4f18\u70b9\uff1a\n<ul>\n<li>\u5728\u786c\u4ef6\u8def\u7531\u5668\u4e0a\u4f7f\u7528\u5e7f\u6cdb<\/li>\n<\/ul>\n<\/li>\n<li>GRE\/IPSec \u7684\u7f3a\u70b9\uff1a\n<ul>\n<li>\u914d\u7f6e\u590d\u6742\uff0c\u5f80\u5f80\u9700\u8981\u53cc\u65b9\u53cd\u590d\u4ea4\u6d41\u624d\u80fd\u914d\u7f6e\u5b8c\u6210<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u6216\u8005\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7eaf GRE\uff1a\n<ul>\n<li>GRE \u7684\u4f18\u70b9\uff1a\n<ul>\n<li>\u786c\u4ef6\u8def\u7531\u5668\u4e0a\u53ef\u7528<\/li>\n<li>\u914d\u7f6e\u76f8\u5bf9\u7b80\u4fbf<\/li>\n<\/ul>\n<\/li>\n<li>GRE \u7684\u7f3a\u70b9\uff1a\n<ul>\n<li><strong>\u5b8c\u5168\u6ca1\u6709\u52a0\u5bc6\uff01\u6570\u636e\u660e\u6587\u53ef\u8bfb\uff01<\/strong><\/li>\n<li><strong>\u5b8c\u5168\u6ca1\u6709\u52a0\u5bc6\uff01\u6570\u636e\u660e\u6587\u53ef\u8bfb\uff01<\/strong><\/li>\n<li><strong>\u5b8c\u5168\u6ca1\u6709\u52a0\u5bc6\uff01\u6570\u636e\u660e\u6587\u53ef\u8bfb\uff01<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u679c\u4f60\u7528\u7684\u662f Linux \u670d\u52a1\u5668\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9 ZeroTier One\uff0c\u7528\u4e8e\u4f60\u81ea\u5df1\u7684 AS \u5185\u90e8\u7684\u4e92\u8054\uff0c\u6216\u8005\u7528\u4e8e\u4e0e\u4ed6\u4eba Peer\u3002\n<ul>\n<li>ZeroTier One \u7684\u4f18\u70b9\uff1a\n<ul>\n<li>\u76f4\u89c2\u7684\u7f51\u9875\u7ba1\u7406\u9762\u677f<\/li>\n<li>\u5168\u81ea\u52a8\u7684 IP \u5730\u5740\u5206\u914d<\/li>\n<\/ul>\n<\/li>\n<li>ZeroTier One \u7684\u7f3a\u70b9\uff1a\n<ul>\n<li>\u6709\u65f6\u4f1a\u5360\u7528\u5927\u91cf CPU \u548c\u5185\u5b58<\/li>\n<li>DN42 \u5185\u63a5\u53d7\u7a0b\u5ea6\u4e0d\u9ad8<\/li>\n<\/ul>\n<\/li>\n<li>\u5b89\u88c5\u65b9\u5f0f\uff1a<code>curl -s https:\/\/install.zerotier.com | sudo bash<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"\u9009\u62e9\u4f60\u7684-bgp-\u8f6f\u4ef6\">\u9009\u62e9\u4f60\u7684 BGP \u8f6f\u4ef6<\/h2>\n<p>DN42 \u4e2d\u7684\u7528\u6237\u4e4b\u95f4\u4f7f\u7528 BGP \u534f\u8bae\u6765\u4ea4\u6362\u8def\u7531\u4fe1\u606f\u3002\u4ee5\u4e0b\u662f\u5e38\u7528\u7684\u3001\u652f\u6301 BGP \u534f\u8bae\u7684\u8def\u7531\u8f6f\u4ef6\uff1a<\/p>\n<ol>\n<li>BIRD Internet Routing Daemon\u00a0<strong>(v2)<\/strong>\n<ul>\n<li>\u652f\u6301 BGP\u3001OSPF\u3001RIP \u7b49\u591a\u79cd\u8def\u7531\u534f\u8bae<\/li>\n<li>\u540c\u65f6\u652f\u6301 IPv4 \u548c IPv6<\/li>\n<li>\u914d\u7f6e\u6e05\u6670\u660e\u4e86\uff0c\u529f\u80fd\u5f3a\u5927<\/li>\n<li>\u6ce8\u610f\uff1a\u6b64\u5904\u6307 BIRD2\uff0c\u5373\u7b2c\u4e8c\u7248\u672c\uff1b\u4e0e\u7b2c\u4e00\u7248\u672c\u4e0d\u517c\u5bb9\u3002<\/li>\n<li>\u7531\u4e8e BIRD \u914d\u7f6e\u8f83\u590d\u6742\uff0c\u8bf7\u76f4\u63a5\u53c2\u89c1\u00a0<a href=\"https:\/\/wiki.dn42.us\/howto\/Bird2\" target=\"_blank\" rel=\"noopener\">DN42 Wiki \u4e0a\u7684 Bird2 \u914d\u7f6e\u6559\u7a0b<\/a>\uff0c\u6709\u73b0\u6210\u7684\u914d\u7f6e\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u7c98\u8d34\u3002<\/li>\n<li>\u5728 Debian \u4e2d\u53ef\u4ee5\u6dfb\u52a0 BIRD \u5b98\u65b9\u8f6f\u4ef6\u6e90\u5b89\u88c5\uff1a\n<pre><code class=\"hljs language-bash\">wget -O - http:\/\/bird.network.cz\/debian\/apt.key | apt-key add -\r\napt-get install lsb-release\r\n<span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"deb http:\/\/bird.network.cz\/debian\/ <span class=\"hljs-subst\">$(lsb_release -sc)<\/span> main\"<\/span> &gt; \/etc\/apt\/sources.list.d\/bird.list\r\napt-get update\r\napt-get install bird2\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u53c2\u8003\u00a0<a href=\"https:\/\/bird.network.cz\/?download&amp;tdir=debian\/\" target=\"_blank\" rel=\"noopener\">BIRD \u7684\u4e0b\u8f7d\u9875\u9762<\/a>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>BIRD Internet Routing Daemon\u00a0<strong>(v1)<\/strong>\n<ul>\n<li>\u76f8\u6bd4 v2\uff0c\u5c06 IPv4 \u4e0e IPv6 \u5206\u5230\u4e86\u4e24\u4e2a\u8fdb\u7a0b<\/li>\n<li>\u540c\u65f6\u7f3a\u5c11\u4e00\u4e9b\u529f\u80fd\uff0c\u5305\u62ec Multiprotocol BGP\uff08\u591a\u534f\u8bae BGP\uff0c\u5728\u4e00\u4e2a BGP \u8fde\u63a5\u4e0a\u540c\u65f6\u4f20\u8f93 IPv4 \u548c IPv6 \u7684\u8def\u7531\u4fe1\u606f\uff09\uff0cOSPFv3 \u7b49\n<ul>\n<li>\u4f46\u4e0d\u5f71\u54cd\u57fa\u7840\u7684 Peering \u7b49\u64cd\u4f5c<\/li>\n<\/ul>\n<\/li>\n<li>\u53c2\u89c1\u00a0<a href=\"https:\/\/wiki.dn42.us\/howto\/Bird\" target=\"_blank\" rel=\"noopener\">DN42 Wiki \u4e0a\u7684 Bird1 \u914d\u7f6e\u6559\u7a0b<\/a>\uff0c\u6709\u73b0\u6210\u7684\u914d\u7f6e\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u7c98\u8d34\u3002<\/li>\n<li>\u5728 Debian \u4e2d\u53ef\u4ee5\u6dfb\u52a0 BIRD \u5b98\u65b9\u8f6f\u4ef6\u6e90\u5b89\u88c5\uff1a\n<pre><code class=\"hljs language-bash\">wget -O - http:\/\/bird.network.cz\/debian\/apt.key | apt-key add -\r\napt-get install lsb-release\r\n<span class=\"hljs-built_in\">echo<\/span> <span class=\"hljs-string\">\"deb http:\/\/bird.network.cz\/debian\/ <span class=\"hljs-subst\">$(lsb_release -sc)<\/span> main\"<\/span> &gt; \/etc\/apt\/sources.list.d\/bird.list\r\napt-get update\r\napt-get install bird\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u53c2\u8003\u00a0<a href=\"https:\/\/bird.network.cz\/?download&amp;tdir=debian\/\" target=\"_blank\" rel=\"noopener\">BIRD \u7684\u4e0b\u8f7d\u9875\u9762<\/a>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>Quagga \/ FRRouting\n<ul>\n<li>\u914d\u7f6e\u8bed\u6cd5\u63a5\u8fd1 Cisco \u8def\u7531\u5668\uff0c\u5982\u679c\u4f60\u7528\u8fc7\u786c\u4ef6\u8def\u7531\u5668\u53ef\u80fd\u4f1a\u559c\u6b22<\/li>\n<li>\u67d0\u4e9b\u8f6f\u8def\u7531\u7cfb\u7edf\uff08\u4f8b\u5982 pfSense\uff09\u53ea\u6709 FRRouting \u53ef\u9009<\/li>\n<li>\u53c2\u89c1\u00a0<a href=\"https:\/\/wiki.dn42.us\/howto\/Quagga\" target=\"_blank\" rel=\"noopener\">DN42 Wiki \u4e0a\u7684 Quagga \u914d\u7f6e\u6559\u7a0b<\/a><\/li>\n<\/ul>\n<\/li>\n<li>\u786c\u4ef6\u8def\u7531\u5668\u81ea\u5e26\u7684 BGP \u529f\u80fd\n<ul>\n<li>\u7531\u8def\u7531\u5668\u5382\u5546\u63d0\u4f9b\u6280\u672f\u652f\u6301\uff0c\u4e00\u822c\u975e\u5e38\u7a33\u5b9a<\/li>\n<li>\u4f46\u662f BGP \u7684\u4e00\u4e9b\u6269\u5c55\u529f\u80fd\u53ef\u80fd\u53d7\u5230\u5382\u5546\u9650\u5236<\/li>\n<li>\u540c\u65f6\u6bcf\u53f0\u8def\u7531\u5668\u7684\u914d\u7f6e\u65b9\u5f0f\u90fd\u4e0d\u540c\uff0c\u4f60\u5f88\u53ef\u80fd\u5f97\u81ea\u5df1\u7814\u7a76\u4e86<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"\u642d\u5efa\u4f60\u81ea\u5df1\u7684\u5185\u7f51\">\u642d\u5efa\u4f60\u81ea\u5df1\u7684\u5185\u7f51<\/h2>\n<blockquote><p>\u300c\u6253\u626b\u5e72\u51c0\u5c4b\u5b50\u518d\u8bf7\u5ba2\u3002\u300d<\/p>\n<p>\u2014\u2014 \u6bdb\u6cfd\u4e1c<\/p><\/blockquote>\n<p>\u5982\u679c\u4f60\u6709\u591a\u53f0\u670d\u52a1\u5668\u540c\u65f6\u52a0\u5165 DN42\uff0c\u4f60\u9700\u8981\u5148\u914d\u7f6e\u597d\u81ea\u5df1\u7684\u5185\u7f51\u3002\u5185\u7f51\u9700\u8981\u6ee1\u8db3\u4ee5\u4e0b\u6761\u4ef6\u624d\u80fd\u4fdd\u8bc1\u6b63\u5e38\u5de5\u4f5c\uff1a<\/p>\n<ol>\n<li>\u4efb\u4f55\u4e24\u53f0\u670d\u52a1\u5668\u90fd\u53ef\u4ee5\u4e92\u76f8\u6c9f\u901a\uff0c\u5373\u53ef\u4ee5 Ping \u901a\u3002\n<ul>\n<li>\u8fd9\u6837\u505a\u7684\u539f\u56e0\u662f\u4f60\u7684 AS \u5916\u90e8\u7684\u8def\u7531\u53ea\u8d1f\u8d23\u628a\u6570\u636e\u5305\u53d1\u9001\u8fdb\u4f60\u7684 AS\uff0c\u6570\u636e\u5305\u53ef\u80fd\u4ece\u4efb\u4f55\u4e00\u4e2a\u8282\u70b9\u8fdb\u5165\u3002\u4f60\u81ea\u5df1\u7684\u8282\u70b9\u9700\u8981\u8d1f\u8d23\u5728\u5185\u90e8\u5c06\u6570\u636e\u5305\u8f6c\u53d1\u7ed9\u76ee\u6807\u8282\u70b9\u3002<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6848\uff1a\n<ol>\n<li>\u4f7f\u7528 Tinc\uff0cZeroTier One \u4e4b\u7c7b\u7684\u8f6f\u4ef6\u5efa\u7acb Full-Mesh VPN\uff0c\u4f7f\u5f97\u6bcf\u4e24\u53f0\u670d\u52a1\u5668\u4e4b\u95f4\u90fd\u80fd\u76f4\u63a5\u8fde\u901a\u3002<\/li>\n<li>\u4f7f\u7528 OpenVPN\uff0cWireGuard \u7b49\u8f6f\u4ef6\u5efa\u7acb\u00a0<span class=\"math math-inline\"><span class=\"katex\"><span class=\"katex-mathml\">\\frac{n (n-1)}{2}<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\"><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\"><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\">n<\/span><span class=\"mopen mtight\">(<\/span><span class=\"mord mathnormal mtight\">n<\/span><span class=\"mbin mtight\">\u2212<\/span>1<span class=\"mclose mtight\">)<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u00a0\u6761\u70b9\u5bf9\u70b9\u96a7\u9053\u8fde\u63a5\uff0c\u4f7f\u5f97\u6bcf\u4e24\u53f0\u670d\u52a1\u5668\u4e4b\u95f4\u90fd\u80fd\u76f4\u63a5\u8fde\u901a\u3002<\/li>\n<li><strong>\uff08\u76f8\u5bf9\u5371\u9669\uff09<\/strong>\u00a0\u4f7f\u7528 OpenVPN\uff0cWireGuard \u7b49\u5efa\u7acb\u5c11\u4e8e\u00a0<span class=\"math math-inline\"><span class=\"katex\"><span class=\"katex-mathml\">\\frac{n (n-1)}{2}<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\"><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\"><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\">n<\/span><span class=\"mopen mtight\">(<\/span><span class=\"mord mathnormal mtight\">n<\/span><span class=\"mbin mtight\">\u2212<\/span>1<span class=\"mclose mtight\">)<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u00a0\u6761\u70b9\u5bf9\u70b9\u96a7\u9053\u8fde\u63a5\uff0c\u4f46\u9700\u8981\u4fdd\u8bc1\u6bcf\u4e24\u53f0\u670d\u52a1\u5668\u4e4b\u95f4\u80fd\u8fde\u901a\uff08\u53ef\u4ee5\u95f4\u63a5\u8fde\u901a\uff09\uff0c\u7136\u540e\u4f7f\u7528 Babel\u3001OSPF\u3001RIP \u7b49\u534f\u8bae\u5728\u5185\u90e8\u5bfb\u8def\u3002<\/li>\n<\/ol>\n<ul>\n<li>\u8fd9\u79cd\u65b9\u6848\u5f88\u5bb9\u6613\u914d\u7f6e\u51fa\u9519\uff0c\u5e76\u9020\u6210\u4e25\u91cd\u540e\u679c\u3002\n<ul>\n<li>\u4e00\u4e9b\u5b9e\u4f8b\u8be6\u89c1\u300a<a href=\"https:\/\/lantian.pub\/article\/modify-website\/how-to-kill-the-dn42-network.lantian\/\">\u5982\u4f55\u5f15\u7206 DN42 \u7f51\u7edc<\/a>\u300b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>Babel\u3001OSPF\u3001RIP \u7b49\u8def\u7531\u534f\u8bae\u53ef\u4ee5\u81ea\u52a8\u8bc6\u522b\u6574\u4e2a\u7f51\u7edc\u7684\u62d3\u6251\u7ed3\u6784\uff0c\u5e76\u8bbe\u7f6e\u597d\u76f8\u5e94\u7684\u8def\u7531\u3002<\/li>\n<li>\u4f46\u6ce8\u610f\uff0cBabel\u3001OSPF\u3001RIP \u7b49\u53ea\u5e94\u8be5\u5904\u7406\u4f60\u5185\u90e8\u7684\u8def\u7531\uff0c<strong>\u4e0d\u80fd\u7528\u4e8e\u8f6c\u53d1\u7531 BGP \u4ece\u5916\u90e8\u6536\u5230\u7684\u8def\u7531\uff01<\/strong>\n<ul>\n<li>\u5f53 BGP \u8def\u7531\u4fe1\u606f\u88ab Babel\u3001OSPF\u3001RIP \u7b49\u8f6c\u53d1\u65f6\uff0c\u5305\u62ec\u6765\u6e90\u3001\u8def\u5f84\u957f\u5ea6\u3001Community \u7b49\u4fe1\u606f\u90fd\u4f1a\u4e22\u5931\u3002<\/li>\n<li>\u56e0\u6b64\u5176\u5b83\u8282\u70b9\u4ece Babel\u3001OSPF\u3001RIP \u6536\u5230\u8def\u7531\u65f6\uff0c\u4f1a<strong>\u8ba4\u4e3a\u5b83\u4eec\u6765\u81ea\u4f60\u7684\u7f51\u7edc<\/strong>\uff0c\u5e76\u5c06\u4f60\u7684 AS \u4f5c\u4e3a\u6e90\u5934\uff0c\u5411\u5916\u518d\u6b21\u5e7f\u64ad\u8def\u7531\u4fe1\u606f\u3002<\/li>\n<li>\u7b80\u5355\u7684\u8bf4\uff1a\u4f60\u4f1a<strong>\u52ab\u6301\u6574\u4e2a DN42 \u7684\u8def\u7531<\/strong>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>Babel\u3001OSPF\u3001RIP \u7b49\u5e94\u88ab\u4e25\u683c\u9650\u5236\uff0c\u5b83\u4eec\u53ea\u5e94\u5904\u7406\u4f60\u81ea\u5df1\u62e5\u6709\u7684 IP \u6bb5\u5185\uff0c\u5404\u4e2a IP \u4e4b\u95f4\u7684\u8fde\u63a5\u5173\u7cfb\u3002<strong>\u6765\u81ea\u5916\u90e8\u7684\u8def\u7531\u5fc5\u987b\u4e14\u53ea\u80fd\u7531 BGP \u5904\u7406<\/strong>\u3002<\/li>\n<li>\u5982\u679c\u6709\u95ee\u9898\uff0c\u8bf7\u53bb<a href=\"https:\/\/t.me\/Dn42Chat\" target=\"_blank\" rel=\"noopener\">\u975e\u5b98\u65b9 Telegram \u7fa4\u7ec4<\/a>\u5bfb\u6c42\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>BGP \u914d\u7f6e\u6ee1\u8db3\u4e0b\u5217\u6761\u4ef6\u4e4b\u4e00\uff1a\n<ol>\n<li>\u670d\u52a1\u5668\u4e24\u4e24\u4e4b\u95f4\u5efa\u7acb\u4e86 BGP \u8fde\u63a5\u3002\n<ul>\n<li>\u7531\u4e8e BGP \u7684\u7279\u6027\uff0c\u5728\u540c\u4e00\u4e2a AS \u5185\uff0c\u4e00\u4e2a BGP \u8282\u70b9\u53ea\u4f1a\u5411\u5176\u5b83\u8282\u70b9\u5e7f\u64ad<strong>\u81ea\u5df1\u6536\u5230\u7684\u8def\u7531\u4fe1\u606f<\/strong>\uff0c\u800c<strong>\u4e0d\u4f1a\u8f6c\u53d1<\/strong>\u4ece AS \u5185\u5176\u5b83\u8282\u70b9\u6536\u5230\u7684\u8def\u7531\u4fe1\u606f\uff0c\u8fd9\u6837\u505a\u662f\u4e3a\u4e86\u9632\u6b62\u4ea7\u751f\u73af\u8def\u3002\u56e0\u6b64\uff0c\u6bcf\u53f0\u670d\u52a1\u5668\u90fd\u8981\u4e0e\u5176\u5b83\u6240\u6709\u670d\u52a1\u5668\u5efa\u7acb BGP\uff0c\u4ee5\u4fdd\u8bc1\u81ea\u5df1\u6536\u5230\u5b8c\u6574\u7684\u8def\u7531\u8868\u3002<\/li>\n<li>\u5982\u679c\u4f60\u670d\u52a1\u5668\u591a\uff0c\u624b\u52a8\u914d\u7f6e\u4f1a\u975e\u5e38\u9ebb\u70e6\u3002\u6b64\u65f6\u4f60\u53ef\u4ee5\u8003\u8651\u5199\u4e2a\u811a\u672c\uff0c\u6216\u8005\u91c7\u53d6\u4e0b\u9762\u7684\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5c06\u4e00\u53f0\u670d\u52a1\u5668\u8bbe\u7f6e\u4e3a\u00a0<code>BGP Route Reflector<\/code>\uff0c\u5176\u5b83\u670d\u52a1\u5668\u5747\u4e0e\u5b83\u5efa\u7acb BGP \u8fde\u63a5\u3002\n<ul>\n<li>Route Reflector \u670d\u52a1\u5668\u5c06\u7ba1\u7406\u5e76\u4e0b\u53d1 AS \u5185\u6240\u6709\u7684\u8def\u7531\u4fe1\u606f\u3002<\/li>\n<li>\u76f8\u5bf9\u4e8e\u4e0a\u4e00\u79cd\u65b9\u6848\uff0c\u4f18\u70b9\u662f\u914d\u7f6e\u91cf\u5927\u5927\u51cf\u5c11\uff0c\u800c\u7f3a\u70b9\u662f\u4e00\u65e6 Route Reflector \u670d\u52a1\u5668\u51fa\u73b0\u6545\u969c\uff0c\u6574\u4e2a\u7f51\u7edc\u90fd\u4f1a\u6302\u6389\u3002<\/li>\n<li>\u6ce8\u610f\u6211\u6ca1\u6709\u5c1d\u8bd5\u8fc7\u8fd9\u79cd\u914d\u7f6e\uff0c\u56e0\u6b64\u65e0\u6cd5\u4e3a\u6b64\u63d0\u4f9b\u4efb\u4f55\u6280\u672f\u652f\u6301\u3002\u4f46<a href=\"https:\/\/t.me\/Dn42Chat\" target=\"_blank\" rel=\"noopener\">\u975e\u5b98\u65b9 Telegram \u7fa4\u7ec4<\/a>\u5185\u6709\u4eba\u4f7f\u7528\u8fd9\u79cd\u65b9\u6848\uff0c\u4f60\u53ef\u4ee5\u5728\u90a3\u91cc\u5bfb\u6c42\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5728\u6bcf\u4e2a\u8282\u70b9\u914d\u7f6e\u4e00\u4e2a\u4e0d\u540c\u7684\u79c1\u6709 ASN\uff0c\u5e76\u8bbe\u7f6e Confederation\u3002\n<ul>\n<li>ASN \u9700\u8981\u5728 4200000000 &#8211; 4294967294 \u7684\u79c1\u6709 ASN \u8303\u56f4\u5185\u9009\u62e9\uff0c\u4f46\u4e0d\u8981\u9009\u62e9 4242420000 &#8211; 4242429999 \u8fd9\u4e2a\u8303\u56f4\uff0c\u4ee5\u9632\u6b62\u4e0e\u5176\u5b83 DN42 \u7528\u6237\u91cd\u590d\u3002<\/li>\n<li>Confederation \u4f7f\u5f97\u591a\u4e2a\u670d\u52a1\u5668\u300c\u62b1\u56e2\u300d\uff0c\u5bf9\u5916\u5c55\u793a\u4e3a\u540c\u4e00\u4e2a AS\u3002<\/li>\n<li>\u8fd9\u79cd\u914d\u7f6e\u65b9\u6cd5\u8be6\u89c1\u300a<a href=\"https:\/\/lantian.pub\/article\/modify-website\/bird-confederation.lantian\">Bird \u914d\u7f6e BGP Confederation\uff0c\u53ca\u6a21\u62df Confederation<\/a>\u300b\u3002<\/li>\n<li>\u53e6\u5916<a href=\"https:\/\/t.me\/Dn42Chat\" target=\"_blank\" rel=\"noopener\">\u975e\u5b98\u65b9 Telegram \u7fa4\u7ec4<\/a>\u5185\u4e5f\u6709\u4eba\u4f7f\u7528\u8fd9\u79cd\u65b9\u6848\uff0c\u4f60\u53ef\u4ee5\u5728\u90a3\u91cc\u5bfb\u6c42\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u6240\u6709\u670d\u52a1\u5668\u5b8c\u6210\u4e0a\u4e00\u8282\u7684\u300c\u975e\u5e38\u91cd\u8981\u7684\u7cfb\u7edf\u914d\u7f6e\u300d\u3002<\/strong><\/li>\n<\/ol>\n<h2 id=\"1xrtt-peering\u66f4\u5feb\u901f\u7684\u5bf9\u63a5\">\u300c1xRTT Peering\u300d\uff1a\u66f4\u5feb\u901f\u7684\u5bf9\u63a5<\/h2>\n<p>DN42 \u4e2d\u591a\u6570\u7528\u6237\u5904\u5728\u7f8e\u56fd\u6216\u8005\u6b27\u6d32\uff0c\u5f53\u6211\u4eec\u4ece\u4e2d\u56fd\u4e0e\u4ed6\u4eec\u8054\u7cfb\u65f6\uff0c\u53d7\u65f6\u5dee\u5f71\u54cd\u53cc\u65b9\u4e00\u8f6e\u901a\u4fe1\u65f6\u95f4\u53ef\u80fd\u4f1a\u5f88\u957f\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5e94\u6839\u636e\u5bf9\u65b9\u5728\u81ea\u5df1\u7f51\u7ad9\u4e0a\u516c\u5f00\u7684\u4fe1\u606f\u5c3d\u53ef\u80fd\u5b8c\u6574\u5730\u914d\u7f6e\u81ea\u5df1\u4e00\u4fa7\uff0c\u65b9\u4fbf\u5bf9\u65b9\u7684\u8c03\u8bd5\uff0c\u4e5f\u51cf\u5c11\u53cd\u590d\u901a\u4fe1\u7684\u65f6\u95f4\u6d88\u8017\u3002<\/p>\n<p>\u6211\u5728\u6211\u7684\u00a0<a href=\"https:\/\/lantian.pub\/page\/dn42\/index.html\">DN42 \u4fe1\u606f\u9875\u9762<\/a>\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5217\u8868\uff0c\u5305\u62ec\u4e86\u6211\u5728\u914d\u7f6e\u4e0e\u4f60\u7684\u96a7\u9053\u548c BGP \u4f1a\u8bdd\u65f6\uff0c\u4f60\u5e94\u8be5\u6267\u884c\u54ea\u4e9b\u6b65\u9aa4\uff0c\u6211\u9700\u8981\u54ea\u4e9b\u4fe1\u606f\u3002<\/p>\n<p>\u6211\u7684\u914d\u7f6e\u6ca1\u6709\u4ec0\u4e48\u7279\u5f02\u4e4b\u5904\uff0c\u5f53\u4f60\u4e0e\u5176\u4ed6\u7528\u6237\u5efa\u7acb\u96a7\u9053\u4e0e BGP \u65f6\uff0c\u5176\u4ed6\u7528\u6237\u4e5f\u9700\u8981\u540c\u6837\u7684\u4fe1\u606f\u3002\u56e0\u6b64\uff0c\u6211\u5efa\u8bae\u4f60\u5b8c\u6574\u5730\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff0c\u63d0\u4f9b\u5b8c\u6574\u7684\u4fe1\u606f\u3002<\/p>\n<p>\u5728\u6b64\uff0c\u6211\u5c06\u6b65\u9aa4\u5217\u8868\u590d\u5236\u4e00\u904d\uff0c\u4ee5\u4f9b\u53c2\u8003\uff1a<\/p>\n<ol>\n<li>\u4ece\u4e0b\u9762\u7684\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u670d\u52a1\u5668\u3002\u4e00\u822c\u4f60\u5e94\u8be5\u9009\u62e9\u5230\u4f60\u90a3\u8fb9\u5ef6\u8fdf\uff08Ping\uff09\u6700\u4f4e\u7684\u670d\u52a1\u5668\u3002\n<ul>\n<li>\u5982\u679c\u4f60\u6709\u591a\u53f0\u670d\u52a1\u5668\u52a0\u5165 DN42\uff0c\u5e76\u4e14\u613f\u610f\u7684\u8bdd\uff0c\u6211\u53ef\u4ee5\u540c\u65f6\u5efa\u7acb\u591a\u4e2a Peering\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u9009\u62e9\u4e00\u79cd VPN \u5efa\u7acb\u96a7\u9053\u3002\n<ul>\n<li>\u6211\u504f\u597d\u4f7f\u7528 WireGuard \u548c OpenVPN\uff0c\u4f46\u660e\u6587 GRE \u548c ZeroTier One \u4e5f\u53ef\u4ee5\u3002\n<ul>\n<li>\u7531\u4e8e GRE\/IPSec \u914d\u7f6e\u975e\u5e38\u590d\u6742\uff0c\u800c\u4e14\u4e0d\u540c\u7684 IPSec \u5b9e\u73b0\u4e4b\u95f4\u5e38\u5e38\u6709\u4e25\u91cd\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u9700\u8981\u8017\u8d39\u51e0\u5929\u751a\u81f3\u51e0\u5468\u6765\u8c03\u8bd5\uff0c<strong>\u6211\u4e0d\u518d\u63a5\u53d7 GRE\/IPSec \u96a7\u9053<\/strong>\uff0c\u5df2\u6709\u96a7\u9053\u4e5f\u53ef\u80fd\u968f\u65f6\u4e2d\u65ad\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u6ce8\u610f\uff1a\u6211\u4e0d<\/strong>\u4e0e\u4e2d\u56fd\u5927\u9646\u7684\u670d\u52a1\u5668 Peer\uff0c\u4ee5\u907f\u514d\u53ef\u80fd\u7684\u6cd5\u5f8b\u95ee\u9898\u3002<\/li>\n<li>\u6211\u4e5f\u613f\u610f\u5c1d\u8bd5\u5176\u5b83\u79cd\u7c7b\u7684 VPN\uff0c\u53ea\u8981\u4f60\u8be2\u95ee\u5c31\u53ef\u4ee5\u4e86\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5728\u4f60\u90a3\u8fb9\u914d\u7f6e\u597d VPN \u96a7\u9053\u548c BGP \u5ba2\u6237\u7aef\u3002\u4f60\u53ef\u4ee5\u5047\u8bbe\u6211\u4f1a\u4f7f\u7528\u4ee5\u4e0b\u7684\u914d\u7f6e\uff1a\n<ul>\n<li>\u57fa\u7840\u4fe1\u606f\uff1a\n<ul>\n<li>ASN\uff1a<strong>4242422547<\/strong><\/li>\n<li>\u516c\u7f51 IP\uff1a\u89c1\u4ee5\u4e0b\u5217\u8868<\/li>\n<li>DN42 IPv4\uff08\u96a7\u9053\u6211\u8fd9\u7aef\u7684\u5730\u5740\uff09\uff1a\u89c1\u4ee5\u4e0b\u5217\u8868\n<ul>\n<li>\u5982\u679c\u4f60\u9700\u8981\u4e3a\u96a7\u9053\u8bbe\u7f6e\u4e00\u4e2a\u5730\u5740\u5757\uff08\u4f8b\u5982 \/30\uff09\uff0c\u8fd9\u4e2a\u5730\u5740\u5757\u5c06\u6765\u81ea\u4f60\u7684\u5730\u5740\u6c60\uff08\u7531\u4f60\u5206\u914d\u7ed9\u6211\uff09\u3002<\/li>\n<li>\u4ee5\u4e0a\u8bbe\u7f6e\u5e38\u89c1\u4e8e Mikrotik \u7b49\u786c\u4ef6\u8def\u7531\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>DN42 IPv6\uff1a<strong>fe80::2547<\/strong>\uff0c\u7528\u4e8e\u672c\u5730\u94fe\u8def\uff08Link-local\uff09\u8fde\u63a5\n<ul>\n<li>\u5982\u679c\u4f60\u9700\u8981\u4e3a\u96a7\u9053\u8bbe\u7f6e\u4e00\u4e2a\u5730\u5740\u5757\uff08\u4f8b\u5982 \/64\uff09\uff0c\u8fd9\u4e2a\u5730\u5740\u5757\u5c06\u6765\u81ea\u4f60\u7684\u5730\u5740\u6c60\uff08\u7531\u4f60\u5206\u914d\u7ed9\u6211\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<li>Multiprotocol BGP\uff08MP-BGP\uff09\uff1a\n<ul>\n<li>\u867d\u7136\u6211\u652f\u6301 MP-BGP\uff0c\u4f46\u6211\u9ed8\u8ba4\u4ecd\u4f1a\u540c\u65f6\u914d\u7f6e v4\u3001v6 \u4e24\u6761 BGP \u4f1a\u8bdd\u3002<\/li>\n<li>\u5982\u679c\u4f60\u4e5f\u652f\u6301 MP-BGP\uff0c\u53ea\u9700\u8981\u4e00\u6761\u4f1a\u8bdd\uff0c\u76f4\u63a5\u544a\u8bc9\u6211\u5c31\u884c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u5efa\u7acb VPN \u96a7\u9053\uff1a\n<ul>\n<li>WireGuard\/OpenVPN \u6211\u8fd9\u7aef\u7684\u7aef\u53e3\u53f7\uff1a<strong>\u4f60\u7684 ASN \u7684\u540e\u4e94\u4f4d<\/strong>\n<ul>\n<li>\u4f8b\u5982 4242420001 \u610f\u5473\u7740\u6211\u4f1a\u4f7f\u7528 20001 \u7aef\u53e3<\/li>\n<\/ul>\n<\/li>\n<li>OpenVPN \u9884\u5171\u4eab\u5bc6\u94a5\uff1a\u4f60\u6765\u751f\u6210\uff0c\u4e4b\u540e\u53d1\u9001\u7ed9\u6211<\/li>\n<li>OpenVPN \u9ed8\u8ba4\u8bbe\u7f6e\uff1a\u89c1\u4e0b\n<ul>\n<li>\u5982\u679c\u4f60\u65e0\u6cd5\u4f7f\u7528\u6211\u7684\u9ed8\u8ba4\u53c2\u6570\uff0c\u8bf7\u8bbe\u7f6e\u597d\u4f60\u53ef\u4ee5\u63a5\u53d7\u7684\u53c2\u6570\uff0c\u7136\u540e\u53d1\u9001\u7ed9\u6211\u3002<\/li>\n<\/ul>\n<\/li>\n<li>ZeroTier One\uff1a\u6211\u4f1a\u7533\u8bf7\u52a0\u5165\u4f60\u7684\u7f51\u7edc\n<ul>\n<li>\u5982\u679c\u53ef\u4ee5\u7684\u8bdd\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u53d1\u9001\u52a0\u5165\u7f51\u7edc\u7684\u9080\u8bf7\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u5c06\u4ee5\u4e0b\u4fe1\u606f\u53d1\u90ae\u4ef6\u7ed9\u00a0<strong>b980120@hotmail.com<\/strong>:\n<ul>\n<li>\u57fa\u7840\u4fe1\u606f\uff1a\n<ul>\n<li>ASN<\/li>\n<li>\u516c\u7f51 IP\n<ul>\n<li>\u6211\u504f\u597d IPv4 \u5730\u5740\uff0c\u56e0\u4e3a\u5728\u6211\u7684\u4e00\u4e9b\u670d\u52a1\u5668\u4e0a\uff0cIPv6 \u662f\u7531\u96a7\u9053\u63d0\u4f9b\u7684\uff08\u5373 HE.NET Tunnelbroker\uff09<\/li>\n<\/ul>\n<\/li>\n<li>DN42 IPv4 and IPv6\uff08\u96a7\u9053\u4f60\u90a3\u7aef\u7684\u5730\u5740\uff09\n<ul>\n<li>\u6216\u8005\u5730\u5740\u5757\uff0c\u5982\u679c\u4f60\u9700\u8981\u7684\u8bdd<\/li>\n<li>\u5bf9\u4e8e IPv6 Peering\uff0c\u9700\u8981\u5305\u62ec\u672c\u5730\u94fe\u8def\uff08Link-local\uff09\u5730\u5740<\/li>\n<\/ul>\n<\/li>\n<li>\u4f60\u60f3\u548c\u54ea\u53f0\u670d\u52a1\u5668\u8fde\u63a5<\/li>\n<\/ul>\n<\/li>\n<li>\u5efa\u7acb VPN \u96a7\u9053\uff1a\n<ul>\n<li>WireGuard\/OpenVPN \u4f60\u90a3\u7aef\u7684\u7aef\u53e3\u53f7\n<ul>\n<li>\u5982\u679c\u4f60\u4e0d\u5199\u660e\uff0c\u6211\u4f1a\u5047\u8bbe\u4f60\u4f7f\u7528 22547 \u7aef\u53e3<\/li>\n<\/ul>\n<\/li>\n<li>OpenVPN \u9884\u5171\u4eab\u5bc6\u94a5\uff1a\u7531\u4f60\u751f\u6210<\/li>\n<li>ZeroTier One\uff1a\u4f60\u7684\u7f51\u7edc ID\uff08\u6211\u4f1a\u7533\u8bf7\u52a0\u5165\uff09<\/li>\n<li>OpenVPN \u8bbe\u7f6e\u53c2\u6570\uff08\u5982\u679c\u4f60\u65e0\u6cd5\u4f7f\u7528\u6211\u7684\u9ed8\u8ba4\u53c2\u6570\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7b49\u6211\u8bbe\u7f6e\u597d VPN \u96a7\u9053\u548c Peering\uff0c\u7136\u540e\u56de\u590d\u90ae\u4ef6\u3002\u4e00\u822c\u8fd9\u65f6 Peering \u5c31\u5df2\u7ecf\u6210\u529f\u4e86\u3002\n<ul>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528<a href=\"https:\/\/lg.lantian.pub\/\" target=\"_blank\" rel=\"noopener\">\u6211\u7684 Looking Glass<\/a>\u00a0\u6765\u8c03\u8bd5\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"\u96a7\u9053\u642d\u5efawireguard\">\u96a7\u9053\u642d\u5efa\uff1aWireGuard<\/h2>\n<p>DN42 Wiki \u6709 WireGuard \u7684\u914d\u7f6e\u6b65\u9aa4\uff0c\u6211\u5728\u6b64\u8fdb\u884c\u5c11\u8bb8\u4fee\u6539\u4ee5\u4f7f\u5176\u7b80\u5355\u660e\u4e86\u3002<\/p>\n<p>\u9996\u5148\u8fd0\u884c\u00a0<code>wg genkey | tee privatekey | wg pubkey &gt; publickey<\/code>\u00a0\u4ea7\u751f\u4e00\u5bf9\u516c\u94a5\u548c\u79c1\u94a5\uff0c\u8fd9\u662f WireGuard \u96a7\u9053\u4e2d\u53cc\u65b9\u7684\u552f\u4e00\u8ba4\u8bc1\u65b9\u5f0f\uff0c\u52a1\u5fc5\u4fdd\u7ba1\u597d\u4e0d\u8981\u6cc4\u6f0f\u3002<\/p>\n<p>\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u00a0<code>[PEER_NAME].conf<\/code>\uff1a<\/p>\n<pre><code class=\"hljs language-bash\">[Interface]\r\n<span class=\"hljs-comment\"># \u4f60\u7684 WireGuard \u79c1\u94a5<\/span>\r\nPrivateKey = ABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFABCDEFA=\r\n<span class=\"hljs-comment\"># \u4f60\u7684\u7aef\u53e3\u53f7<\/span>\r\nListenPort = 22547\r\nTable = off\r\n<span class=\"hljs-comment\"># \u6dfb\u52a0\u4f60\u7684 Link-local IPv6\uff08\u4f8b\u5982 fe80::1234\uff09<\/span>\r\nPostUp = ip addr add fe80::1234\/64 dev %i\r\n<span class=\"hljs-comment\"># \u6dfb\u52a0\u4f60\u7684 DN42 IPv6 \u5730\u5740\uff08\u4f8b\u5982 fd12:3456:7890::1\uff09<\/span>\r\nPostUp = ip addr add fd12:3456:7890::1\/128 dev %i\r\n<span class=\"hljs-comment\"># \u7b2c\u4e00\u4e2a\u662f\u4f60\u7684 DN42 \u5185\u7684 IP\uff0c\u7b2c\u4e8c\u4e2a\u662f\u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09<\/span>\r\nPostUp = ip addr add 172.21.2.3 peer 172.22.76.185 dev %i\r\nPostUp = sysctl -w net.ipv6.conf.%i.autoconf=0\r\n\r\n[Peer]\r\n<span class=\"hljs-comment\"># \u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09\u516c\u94a5<\/span>\r\nPublicKey = zyATu8FW392WFFNAz7ZH6+4TUutEYEooPPirwcoIiXo=\r\n<span class=\"hljs-comment\"># \u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09\u670d\u52a1\u5668\u5730\u5740\u548c\u7aef\u53e3\u53f7\uff0c\u7aef\u53e3\u53f7\u4e00\u822c\u4e3a\u4f60\u7684 ASN \u7684\u540e\u4e94\u4f4d<\/span>\r\nEndpoint = hostdare.lantian.pub:21234\r\nAllowedIPs = 10.0.0.0\/8, 172.20.0.0\/14, 172.31.0.0\/16, fd00::\/8, fe80::\/64\r\n<\/code><\/pre>\n<p>\u7136\u540e\u8fd0\u884c\u00a0<code>wg-quick up [PEER_NAME].conf<\/code>\u00a0\u542f\u52a8\u96a7\u9053\u3002<\/p>\n<h2 id=\"\u96a7\u9053\u642d\u5efaopenvpn\">\u96a7\u9053\u642d\u5efa\uff1aOpenVPN<\/h2>\n<p>DN42 Wiki \u540c\u6837\u63d0\u4f9b\u4e86 OpenVPN \u7684\u914d\u7f6e\u6a21\u677f\uff0c\u6211\u5728\u6b64\u8fdb\u884c\u5c11\u8bb8\u4fee\u6539\u4ee5\u4f7f\u5176\u7b80\u5355\u660e\u4e86\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"hljs language-bash\">proto         udp\r\nmode          p2p\r\n\r\n<span class=\"hljs-comment\"># \u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09\u670d\u52a1\u5668 IP<\/span>\r\nremote        185.186.147.110\r\n<span class=\"hljs-comment\"># \u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09\u96a7\u9053\u7aef\u53e3\uff0c\u4e00\u822c\u662f\u4f60\u7684 ASN \u7684\u540e\u4e94\u4f4d<\/span>\r\nrport         21234\r\n<span class=\"hljs-comment\"># \u4f60\u7684\u670d\u52a1\u5668 IP<\/span>\r\n<span class=\"hljs-built_in\">local<\/span>         12.34.56.78\r\n<span class=\"hljs-comment\"># \u4f60\u7684\u96a7\u9053\u7aef\u53e3\uff0c\u4e00\u822c\u662f 22547\uff08\u6216\u8005\u4f60\u7684 Peer \u7684 ASN \u7684\u540e\u4e94\u4f4d\uff09<\/span>\r\nlport         22547\r\n\r\ndev-type      tun\r\nresolv-retry  infinite\r\ndev           dn42-lantian    <span class=\"hljs-comment\"># \u968f\u610f\u4fee\u6539<\/span>\r\ncomp-lzo\r\npersist-key\r\npersist-tun\r\ntun-ipv6\r\ncipher        aes-256-cbc\r\n<span class=\"hljs-comment\"># \u7b2c\u4e00\u4e2a\u662f\u4f60\u7684 DN42 \u5185\u7684 IP\uff0c\u7b2c\u4e8c\u4e2a\u662f\u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09<\/span>\r\nifconfig      172.21.2.3 172.22.76.185\r\n<span class=\"hljs-comment\"># \u7b2c\u4e00\u4e2a\u662f\u4f60\u7684 Link-local IPv6\uff0c\u7b2c\u4e8c\u4e2a\u662f\u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09<\/span>\r\nifconfig-ipv6 fe80::1234 fe80::2547\r\n\r\n<span class=\"hljs-comment\"># \u96a7\u9053\u542f\u52a8\u540e\u8fd0\u884c\u7684\u811a\u672c\uff1a<\/span>\r\n<span class=\"hljs-comment\"># 1. \u5220\u9664 Stable-privacy IPv6<\/span>\r\n<span class=\"hljs-comment\"># 2. \u8bbe\u7f6e\u4f18\u5148\u4f7f\u7528\u7684\u5bf9\u5916\u8fde\u63a5\u7684 IPv6 \u5730\u5740\uff08\u4f8b\u5982 fd12:3456:7890::1\uff09<\/span>\r\nscript-security 2\r\nup <span class=\"hljs-string\">\"\/bin\/sh -c '\/sbin\/sysctl -w net.ipv6.conf.<span class=\"hljs-variable\">$dev<\/span>.autoconf=0 &amp;&amp; \/sbin\/sysctl -w net.ipv6.conf.<span class=\"hljs-variable\">$dev<\/span>.accept_ra=0 &amp;&amp; \/sbin\/sysctl -w net.ipv6.conf.<span class=\"hljs-variable\">$dev<\/span>.addr_gen_mode=1 &amp;&amp; \/sbin\/ip addr add fd12:3456:7890::1\/128 dev <span class=\"hljs-variable\">$dev<\/span>'\"<\/span>\r\n\r\n<span class=\"hljs-comment\"># \u8bbe\u7f6e\u6210\u6211\u4eec\u7684\u96a7\u9053\u7684\u9759\u6001\u5bc6\u94a5<\/span>\r\n<span class=\"hljs-comment\"># \u53ef\u4ee5\u7528 openvpn --genkey --secret static.key \u751f\u6210<\/span>\r\n&lt;secret&gt;\r\n-----BEGIN OpenVPN Static key V1-----\r\n0123456789abcdef0123456789abcdef\r\n<span class=\"hljs-comment\"># ...<\/span>\r\n<span class=\"hljs-comment\"># \u5bc6\u94a5\u5185\u5bb9<\/span>\r\n<span class=\"hljs-comment\"># ...<\/span>\r\n0123456789abcdef0123456789abcdef\r\n-----END OpenVPN Static key V1-----\r\n&lt;\/secret&gt;\r\n<\/code><\/pre>\n<h2 id=\"\u9650\u5236-dn42-\u76f8\u5173\u7f51\u5361\u4e0a\u7684\u6d41\u91cf\">\u9650\u5236 DN42 \u76f8\u5173\u7f51\u5361\u4e0a\u7684\u6d41\u91cf<\/h2>\n<p>\u4e00\u822c\u800c\u8a00\uff0c\u8fdb\u884c DN42 Peering \u65f6\u53cc\u65b9\u5efa\u7acb\u7684\u96a7\u9053\u53ef\u4ee5\u627f\u8f7d\u4efb\u4f55 IP \u7684\u6d41\u91cf\uff08\u9664\u975e\u4f60\u914d\u7f6e\u4e86 WireGuard \u7684 AllowedIPs\uff09\uff0c\u8fd9\u5c31\u9020\u6210\u4e86\u98ce\u9669\uff1a\u4f60\u7684 Peer \u53ef\u4ee5\u5411\u4f60\u7684\u96a7\u9053\u4f20\u5165\u76ee\u6807\u5730\u5740\u662f\u516c\u7f51 IP \u7684\u6570\u636e\u5305\uff0c\u6b64\u65f6\u4f60\u7684\u8282\u70b9\u4f1a\u628a\u6570\u636e\u5305\u4ee5\u4f60\u7684\u540d\u4e49\u8f6c\u53d1\u5230\u516c\u7f51\u3002\u5982\u679c\u4f60\u7684 Peer \u5229\u7528\u6b64\u8fdb\u884c\u7f51\u7edc\u653b\u51fb\uff0c\u4f60\u5c31\u6709\u5927\u9ebb\u70e6\u4e86\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5efa\u8bae\u4f60\u8bbe\u7f6e iptables \u9632\u706b\u5899\u89c4\u5219\uff0c\u6765\u62d2\u7edd\u8f6c\u53d1 Peer \u5411\u516c\u7f51\u53d1\u9001\u7684\u6570\u636e\u3002<\/p>\n<blockquote><p>\u6ce8\uff1a\u5982\u679c\u4f60\u53ea\u7528 WireGuard \u96a7\u9053\u5c31\u4e0d\u7528\u914d\u7f6e\u8fd9\u4e9b\u4e86\uff0cWireGuard \u81ea\u5e26\u4e86 IP \u9650\u5236\u529f\u80fd\u3002<\/p><\/blockquote>\n<p>\u4e0b\u9762\u7684\u89c4\u5219\u4f1a\u5728\u6240\u6709\u4ee5\u00a0<code>dn42-<\/code>\u00a0\u5f00\u5934\u7684\u7f51\u5361\u4e0a\uff0c\u53ea\u5141\u8bb8\u5df2\u6709\u7684 DN42 IP \u6bb5\u7684\u6d41\u91cf\uff1a<\/p>\n<pre><code class=\"hljs language-bash\">iptables -N DN42_INPUT\r\niptables -A DN42_INPUT -s 172.20.0.0\/14 -j ACCEPT\r\niptables -A DN42_INPUT -s 172.31.0.0\/16 -j ACCEPT\r\niptables -A DN42_INPUT -s 10.0.0.0\/8 -j ACCEPT\r\niptables -A DN42_INPUT -s 224.0.0.0\/4 -j ACCEPT\r\niptables -A DN42_INPUT -j REJECT\r\niptables -A INPUT -i dn42+ -j DN42_INPUT\r\n\r\niptables -N DN42_OUTPUT\r\niptables -A DN42_OUTPUT -d 172.20.0.0\/14 -j ACCEPT\r\niptables -A DN42_OUTPUT -d 172.31.0.0\/16 -j ACCEPT\r\niptables -A DN42_OUTPUT -d 10.0.0.0\/8 -j ACCEPT\r\niptables -A DN42_OUTPUT -d 224.0.0.0\/4 -j ACCEPT\r\niptables -A DN42_OUTPUT -j REJECT\r\niptables -A OUTPUT -o dn42+ -j DN42_OUTPUT\r\n\r\nip6tables -N DN42_INPUT\r\nip6tables -A DN42_INPUT -s fd00::\/8 -j ACCEPT\r\nip6tables -A DN42_INPUT -s fe80::\/10 -j ACCEPT\r\nip6tables -A DN42_INPUT -s ff00::\/8 -j ACCEPT\r\nip6tables -A DN42_INPUT -j REJECT\r\nip6tables -A INPUT -i dn42+ -j DN42_INPUT\r\n\r\nip6tables -N DN42_OUTPUT\r\nip6tables -A DN42_OUTPUT -d fd00::\/8 -j ACCEPT\r\nip6tables -A DN42_OUTPUT -d fe80::\/10 -j ACCEPT\r\nip6tables -A DN42_OUTPUT -d ff00::\/8 -j ACCEPT\r\nip6tables -A DN42_OUTPUT -j REJECT\r\nip6tables -A OUTPUT -o dn42+ -j DN42_OUTPUT\r\n\r\niptables -A FORWARD -i dn42+ -j DN42_INPUT\r\niptables -A FORWARD -o dn42+ -j DN42_OUTPUT\r\n\r\nip6tables -A FORWARD -i dn42+ -j DN42_INPUT\r\nip6tables -A FORWARD -o dn42+ -j DN42_OUTPUT\r\n<\/code><\/pre>\n<h2 id=\"bgp-\u4f1a\u8bdd\u914d\u7f6ebird-v1-\u548c-v2\">BGP \u4f1a\u8bdd\u914d\u7f6e\uff1aBIRD v1 \u548c v2<\/h2>\n<p>\u6211\u8fd9\u91cc\u53ea\u4ecb\u7ecd BIRD v1 \u548c v2 \u7684\u914d\u7f6e\uff0c\u56e0\u4e3a\u5b83\u4eec\u662f\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u3002\u6211\u5047\u8bbe\u4f60\u5df2\u7ecf\u6309\u7167 Wiki \u4e0a\u7684\u6b65\u9aa4\u5b8c\u6210\u4e86\u57fa\u672c\u7684\u914d\u7f6e\uff0c\u53ea\u662f\u8fd8\u6ca1\u63a5\u5165\u4efb\u4f55 Peer\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/wiki.dn42.us\/howto\/Bird2\" target=\"_blank\" rel=\"noopener\">DN42 Wiki \u4e0a\u7684 Bird2 \u914d\u7f6e\u6559\u7a0b<\/a><\/li>\n<li><a href=\"https:\/\/wiki.dn42.us\/howto\/Bird\" target=\"_blank\" rel=\"noopener\">DN42 Wiki \u4e0a\u7684 Bird1 \u914d\u7f6e\u6559\u7a0b<\/a><\/li>\n<\/ul>\n<p>\u5bf9\u4e8e BIRD v1\uff0c\u9700\u8981\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-comment\"># \u5728 \/etc\/bird\/peers4\/dn42_lantian.conf \u4e2d\u586b\u5199\uff1a<\/span>\r\n<span class=\"hljs-comment\"># dn42_lantian \u53ef\u4ee5\u88ab\u6539\u4e3a\u4efb\u610f\u540d\u5b57<\/span>\r\nprotocol bgp dn42_lantian from dnpeers {\r\n    <span class=\"hljs-comment\"># \u8bbe\u7f6e\u6210\u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09DN42 IPv4 \u5730\u5740\u4ee5\u53ca ASN<\/span>\r\n    neighbor 172.22.76.185 as 4242421234;\r\n    direct;\r\n};\r\n\r\n<span class=\"hljs-comment\"># \u5728 \/etc\/bird\/peers6\/dn42_lantian.conf \u4e2d\u586b\u5199\uff1a<\/span>\r\n<span class=\"hljs-comment\"># dn42_lantian \u53ef\u4ee5\u88ab\u6539\u4e3a\u4efb\u610f\u540d\u5b57<\/span>\r\nprotocol bgp dn42_lantian from dnpeers {\r\n    <span class=\"hljs-comment\"># \u8bbe\u7f6e\u6210\u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09Link-local IPv6\uff0c\u96a7\u9053\u540d\u79f0\uff0c\u4ee5\u53ca ASN<\/span>\r\n    neighbor fe80::1234 % <span class=\"hljs-string\">'dn42-lantian'<\/span> as 4242421234;\r\n    direct;\r\n};\r\n<\/code><\/pre>\n<p>\u5bf9\u4e8e BIRD v2\uff0c\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-comment\"># \u5728 \/etc\/bird\/peers\/dn42_lantian.conf \u4e2d\u586b\u5199<\/span>\r\n<span class=\"hljs-comment\"># lantian \u53ef\u4ee5\u88ab\u6539\u4e3a\u4efb\u610f\u540d\u5b57<\/span>\r\nprotocol bgp dn42_lantian_v4 from dnpeers {\r\n    <span class=\"hljs-comment\"># \u8bbe\u7f6e\u6210\u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09DN42 IPv4 \u5730\u5740\u4ee5\u53ca ASN<\/span>\r\n    neighbor 172.22.76.185 as 4242421234;\r\n    direct;\r\n    <span class=\"hljs-comment\"># \u5728 IPv4 BGP \u4e2d\u7981\u7528 IPv6 \u8def\u7531\u4f20\u9012\uff0c\u5f3a\u70c8\u63a8\u8350\u4fdd\u7559<\/span>\r\n    ipv6 {\r\n        import none;\r\n        <span class=\"hljs-built_in\">export<\/span> none;\r\n    };\r\n};\r\n\r\n<span class=\"hljs-comment\"># lantian \u53ef\u4ee5\u88ab\u6539\u4e3a\u4efb\u610f\u540d\u5b57<\/span>\r\nprotocol bgp dn42_lantian_v6 from dnpeers {\r\n    <span class=\"hljs-comment\"># \u8bbe\u7f6e\u6210\u6211\u7684\uff08\u6216\u8005\u4f60\u7684 Peer \u7684\uff09Link-local IPv6\uff0c\u96a7\u9053\u540d\u79f0\uff0c\u4ee5\u53ca ASN<\/span>\r\n    neighbor fe80::1234 % <span class=\"hljs-string\">'dn42-lantian'<\/span> as 4242421234;\r\n    direct;\r\n    <span class=\"hljs-comment\"># \u5728 IPv6 BGP \u4e2d\u7981\u7528 IPv4 \u8def\u7531\u4f20\u9012<\/span>\r\n    <span class=\"hljs-comment\"># \u5982\u679c\u4f60\u60f3\u7528 Multiprotocol BGP\uff08MP-BGP\uff09\uff0c\u53ef\u4ee5\u5220\u9664<\/span>\r\n    ipv4 {\r\n        import none;\r\n        <span class=\"hljs-built_in\">export<\/span> none;\r\n    };\r\n};\r\n<\/code><\/pre>\n<h2 id=\"\u7f51\u7edc\u6d4b\u8bd5\u53ca\u51e0\u4e2a\u52a0\u5206\u9879\">\u7f51\u7edc\u6d4b\u8bd5\u53ca\u51e0\u4e2a\u52a0\u5206\u9879<\/h2>\n<p>\u4e0a\u8ff0\u914d\u7f6e\u5b8c\u540e\uff0c\u4f60\u5c31\u5df2\u7ecf\u6210\u529f\u63a5\u5165\u4e86 DN42 \u7f51\u7edc\u3002\u6b64\u65f6\uff0c\u4f60\u53ef\u4ee5\u8fdb\u884c\u4e00\u4e9b\u6d4b\u8bd5\uff1a<\/p>\n<ul>\n<li><code>ping 172.20.0.53<\/code>\u00a0\u6216\u8005\u00a0<code>ping 172.23.0.53<\/code>\uff0c\u8fd9\u4e2a\u5730\u5740\u662f DN42 \u7f51\u7edc\u5185\u7684 Anycast DNS\u3002<\/li>\n<li><code>ping 172.23.0.80<\/code>\uff0c\u8fd9\u662f DN42 Wiki \u5728\u5185\u90e8\u7684 IP \u5730\u5740\u3002<\/li>\n<li>\u5c1d\u8bd5\u00a0<a href=\"https:\/\/wiki.dn42.us\/internal\/Internal-Services\" target=\"_blank\" rel=\"noopener\">DN42 Wiki \u4e0a\u7684\u5185\u90e8\u670d\u52a1<\/a>\uff0c\u6216\u8005\u00a0<a href=\"https:\/\/dn42.burble.com\/home\/burble-dn42-services\" target=\"_blank\" rel=\"noopener\">Burble \u7684\u670d\u52a1<\/a>\u3002<\/li>\n<\/ul>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u6311\u6218\u81ea\u5df1\uff0c\u7ee7\u7eed\u4fee\u6539\u4f60\u7684\u96a7\u9053\u548c BGP \u914d\u7f6e\uff0c\u6dfb\u52a0\u66f4\u591a\u529f\u80fd\uff0c\u63d0\u9ad8\u6027\u80fd\u548c \/ \u6216\u5b89\u5168\u6027\uff1a<\/p>\n<ul>\n<li>ROA\uff0c\u5373 Route Origin Authorization\uff0c\u6307\u68c0\u67e5\u67d0\u6761\u8def\u7531\u4fe1\u606f\u662f\u5426\u6765\u81ea\u4e8e\u8be5\u6765\u7684 AS\uff0c\u4f8b\u5982\u6211\u7684\u00a0<code>172.22.76.184\/29<\/code>\u00a0\u5c31\u5e94\u5f53\u6765\u81ea\u00a0<code>4242422547<\/code>\uff0c\u5e76\u62d2\u7edd\u4e0d\u7b26\u5408\u7684\u8def\u7531\u4fe1\u606f\u3002\n<ul>\n<li>DN42 Wiki \u4e2d\u6709 BIRD \u7684 ROA \u914d\u7f6e\u6559\u7a0b\uff1a\u89c1\u00a0<a href=\"https:\/\/wiki.dn42.us\/howto\/Bird2\" target=\"_blank\" rel=\"noopener\">Bird2<\/a>\u00a0\u6216\u8005\u00a0<a href=\"https:\/\/wiki.dn42.us\/howto\/Bird\" target=\"_blank\" rel=\"noopener\">Bird1<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Community Filter\uff0c\u5c06 DN42 \u4e2d\u7684\u96a7\u9053\u94fe\u8def\u6309\u5ef6\u8fdf\u3001\u5e26\u5bbd\u3001\u52a0\u5bc6\u5206\u6210\u4e0d\u540c\u7b49\u7ea7\uff0c\u4f18\u5148\u9009\u62e9\u66f4\u5feb\u901f\u7684\u8def\u7531\n<ul>\n<li>Bird1 \u53c2\u89c1\u00a0<a href=\"https:\/\/wiki.dn42.us\/howto\/Bird-communities\" target=\"_blank\" rel=\"noopener\">DN42 Wiki \u7684 Bird Communities \u9875\u9762<\/a>\u3002Bird2 \u9700\u8981\u5bf9\u8fd9\u4e2a\u914d\u7f6e\u505a\u8f83\u5927\u5e45\u5ea6\u7684\u4fee\u6539\uff0c\u53ef\u4ee5\u81ea\u5df1\u5c1d\u8bd5<\/li>\n<\/ul>\n<\/li>\n<li>Anycast\uff0c\u6307\u591a\u53f0\u670d\u52a1\u5668\u540c\u65f6\u5e7f\u64ad\u4e00\u4e2a IP\uff0c\u5916\u754c\u8bbf\u95ee\u4f1a\u88ab\u5bfc\u5230\u6700\u8fd1\u7684\u670d\u52a1\u5668\u4e0a\n<ul>\n<li>\u5728\u771f\u5b9e\u4e92\u8054\u7f51\u4e00\u822c\u7528\u4e8e DNS\u3002\u5728 DN42 \u5185\uff0cWiki\uff08172.23.0.80\uff09\u4e5f\u662f Anycast \u7684\u3002<\/li>\n<li>\u6211\u5728\u53bb\u5e74\u548c\u4eca\u5e74\u5404\u5c31\u6b64\u5199\u8fc7\u4e00\u7bc7\u6587\u7ae0\uff1a\u53c2\u89c1\u300a\u5728 DN42 \u4e2d\u4f7f\u7528 Docker \u5efa\u7acb Anycast DNS \u670d\u52a1\u300b\u548c\u300aDocker \u5bb9\u5668\u5171\u4eab\u7f51\u7edc\u547d\u540d\u7a7a\u95f4\uff0c\u96c6\u6210 Bird \u5b9e\u73b0 Anycast \u9ad8\u53ef\u7528\u300b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5efa\u7acb\u81ea\u5df1\u7684\u9012\u5f52\u548c\u6743\u5a01 DNS \u670d\u52a1\u5668\n<ul>\n<li>\u4f60\u751a\u81f3\u53ef\u4ee5\u7533\u8bf7\u52a0\u5165 DN42 \u7684 DNS Anycast\uff0c\u6210\u4e3a\u5b98\u65b9 DNS \u4e2d\u7684\u4e00\u5206\u5b50\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6216\u8005\u76f4\u63a5\u5728\u771f\u5b9e\u4e92\u8054\u7f51\u4e2d\uff0c\u627e RIPE \u6ce8\u518c\u771f\u5b9e\u7684 AS\uff0c\u79df\u7528\u516c\u7f51\u7684 IPv4 \u548c IPv6 \u5730\u5740\u6c60\uff0c\u5f00\u59cb\u73a9\u771f\u7684\u3002<\/li>\n<\/ul>\n<h2 id=\"\u9700\u8981\u5e2e\u52a9\">\u9700\u8981\u5e2e\u52a9\uff1f<\/h2>\n<p>\u8bb0\u4f4f\uff1aDN42 \u662f\u4e00\u4e2a<strong>\u6d4b\u8bd5\u7f51\u7edc<\/strong>\uff0c\u6240\u6709\u4eba\u90fd\u5728\u5e2e\u52a9\u6240\u6709\u4eba\u3002\u5373\u4f7f\u4f60\u4e0d\u5c0f\u5fc3\u641e\u7838\u4e86\uff0c\u4e5f\u6ca1\u6709\u4eba\u4f1a\u6307\u8d23\u4f60\u3002\u4f60\u53ef\u4ee5\u5728 DN42 \u7684\u00a0<a href=\"https:\/\/wiki.dn42.us\/services\/IRC\" target=\"_blank\" rel=\"noopener\">IRC \u9891\u9053<\/a>\uff0c<a href=\"https:\/\/wiki.dn42.us\/contact#contact_mailing-list\" target=\"_blank\" rel=\"noopener\">\u90ae\u4ef6\u5217\u8868<\/a>\u6216\u8005<a href=\"https:\/\/t.me\/Dn42Chat\" target=\"_blank\" rel=\"noopener\">\u975e\u5b98\u65b9 Telegram \u7fa4\u7ec4<\/a>\u5bfb\u6c42\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DN42 \u5168\u79f0 Decentralized Network 42\uff0842 \u53f7\u53bb\u4e2d\u5fc3\u7f51\u7edc\uff09\uff0c\u662f\u4e00\u4e2a\u5927\u578b\u3001\u53bb\u4e2d\u5fc3\u5316\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2],"tags":[],"class_list":["post-10991","post","type-post","status-publish","format-standard","hentry","category-cisco","category-network"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10991"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10991\/revisions"}],"predecessor-version":[{"id":10992,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/10991\/revisions\/10992"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}