{"id":91455,"date":"2020-05-04T02:20:25","date_gmt":"2020-05-03T18:20:25","guid":{"rendered":"http:\/\/4563.org\/?p=91455"},"modified":"2020-05-04T02:20:25","modified_gmt":"2020-05-03T18:20:25","slug":"%e5%a6%82%e4%bd%95%e5%8f%aa%e7%bb%99%e8%b7%af%e7%94%b1%e5%99%a8%e5%90%8e%e7%9a%84%e6%9f%90%e4%b8%aa%e8%ae%be%e5%a4%87%e5%8d%95%e7%8b%ac%e5%88%86%e9%85%8d-ipv6-%e5%9c%b0%e5%9d%80","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=91455","title":{"rendered":"\u5982\u4f55\u53ea\u7ed9\u8def\u7531\u5668\u540e\u7684\u67d0\u4e2a\u8bbe\u5907\u5355\u72ec\u5206\u914d IPv6 \u5730\u5740"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55\u53ea\u7ed9\u8def\u7531\u5668\u540e\u7684\u67d0\u4e2a\u8bbe\u5907\u5355\u72ec\u5206\u914d IPv6 \u5730\u5740               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <span><i><\/i> 55<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u79fb\u52a8\u5bbd\u5e26\u6ca1\u6709\u516c\u7f51 IPv4\uff0c\u6709 IPv6 \u5730\u5740\uff0c\u5916\u7f51\u53ef\u4ee5\u76f4\u63a5\u5165\u7ad9\u8bbf\u95ee\u5bb6\u91cc\u7684 nas\uff0c\u4f46\u662f IPv6 \u51fa\u7ad9\u8bbf\u95ee\u5916\u7f51\u7684\u7ebf\u8def\u8d28\u91cf\u5c31\u7279\u522b\u5dee\uff0c\u597d\u50cf\u603b\u5171\u51fa\u56fd\u5e26\u5bbd\u53ea\u6709 20G \u3002\u504f\u504f\u7535\u8111\u548c\u624b\u673a\u5728\u83b7\u53d6 IPv6 \u5730\u5740\u540e\u90fd\u4f1a\u4f18\u5148\u4f7f\u7528 IPv6 \u8bbf\u95ee\uff0c\u9020\u6210\u8bbf\u95ee\u6bd4\u5982 V2EX \u901f\u5ea6\u5f88\u6162\u3002<\/p>\n<p>\u4e0d\u60f3\u624b\u52a8\u5728\u6bcf\u4e2a\u8bbe\u5907\u4e0a\u914d\u7f6e IP\uff0c\u6709\u4e9b\u8bbe\u5907\u8fd8\u4e0d\u80fd\u624b\u52a8\u914d\u7f6e\u3002\u8bf7\u95ee\u6709\u6ca1\u6709\u529e\u6cd5\u53ef\u4ee5\u5728\u8def\u7531\u5668\u4e0a\u8bbe\u7f6e\u53ea\u7ed9\u67d0\u4e2a\u8bbe\u5907\u5206\u914d IPv6 \u5730\u5740\u3002\u8def\u7531\u5668\u662f openwrt \u548c padavan      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>37<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1249335\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             openwrt \u88c5\u4e2a Polipo\uff0c\u9700\u8981 IPv6 \u5c31\u63a5\u5230 Polipo \u4ee3\u7406\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249336\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u987a\u4fbf\u628a openwrt \u7684 dhcpv6 \u5173\u6389\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249338\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lns103 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f4\u63a5\u5728\u8def\u7531\u5668\u4e0a\u7528 smartdns\uff0c\u5f00\u542f SOA\uff0c\u5c4f\u853d ipv6 \u7684\u5730\u5740\u89e3\u6790\uff0c\u800c\u4e14\u5916\u90e8 ipv6 \u7684\u8bbf\u95ee\u4e0d\u53d7\u5f71\u54cd\u3002<br \/>ps\uff1a\u7535\u4fe1\u7684 ipv6 \u51fa\u56fd\u66f4\u6076\u5fc3\uff0c\u5927\u90e8\u5206\u90fd\u7ed5\u6b27\u6d32\uff0ccf \u7f8e\u56fd\u53ef\u4ee5\u76f4\u8fde\uff0c\u4f46\u662f\u4e5f\u8fa3\u9e21\u5f97\u4e0d\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249340\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lns103 \u8c22\u8c22\uff0csmartdns \u8fd9\u4e2a\u6211\u4e5f\u60f3\u5230\u4e86\uff0c\u4f46\u8fd9\u4e0d\u662f\u5b8c\u7f8e\u7684\u65b9\u6848\uff0cnas \u4e0a\u6211\u8fd8\u662f\u9700\u8981\u6b63\u5e38\u89e3\u6790 IPv6 \u7684 dns\uff0c\u5305\u62ec\u5176\u4ed6\u8bbe\u5907\uff0c\u6709\u65f6\u9700\u8981 dig nslookup \u8c03\u8bd5\u4e9b\u4e1c\u897f<\/p>\n<p>@zro \u8c22\u8c22\uff0c\u8def\u7531\u5668\u4e0a\u7aef\u53e3\u8f6c\u53d1\u5230\u5185\u7f51\u6211\u4e5f\u60f3\u5230\u4e86\uff0c\u6211\u7528\u7684 socat\uff0c\u5b9e\u9645\u6d4b\u8bd5\u6027\u80fd\u6709\u635f\u5931\u3002\u76f4\u63a5\u8bbf\u95ee nas \u7684 IPv6 \u5730\u5740 15-20MB\/s \u8dd1\u6ee1\u5bbd\u5e26\uff0csocat \u7aef\u53e3\u8f6c\u53d1\u5230 nas \u7684\u5185\u7f51 IP \u53ea\u6709 10MB\/s \u3002\u800c\u4e14\u6211\u8fd8\u60f3 nas \u80fd\u51fa\u7ad9\u8bbf\u95ee\u5916\u7f51\u7684 IPv6 \u5730\u5740                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249342\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg #4 \u597d\u4e45\u597d\u4e45\u4e4b\u524d\uff0cGoogle \u89c1\u8fc7\u5c06 PPPoE \u7684 v4\/v6 \u5206\u79bb\u7684\uff0c\u628a v6 \u6570\u636e\u5305 drop \u6389\u7ed9\u5176\u4ed6\u8bbe\u5907\uff0c\u597d\u50cf\u662f\u8fd9\u6837\u5b50\uff0c\u5177\u4f53\u8bb0\u4e0d\u592a\u6e05\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249344\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : updateing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u8003\u8651\u5173\u6389 SLAAC \u53ea\u7528 DHCPv6\uff0c\u7136\u540e\u7981\u6b62 DHCPv6 \u52a8\u6001\u5206\u914d\uff08\u53ea\u5141\u8bb8\u624b\u52a8\u6dfb\u52a0\u7684 static lease \uff09\uff0c\u518d\u628a NAS \u52a0\u5230 static lease.<\/p>\n<p>\u6211\u8bb0\u5f97 OpenWrt \u4e0a\u8fd9\u4e48\u505a\u597d\u50cf\u5f97\u9b54\u6539 odhcpd\uff0c\u6216\u8bb8\u7528 dnsmasq \u505a DHCPv6 \u670d\u52a1\u5668\u4f1a\u66f4\u53ef\u884c\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249346\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qingxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u4e48\u4f60\u7ed9 nas \u5355\u72ec\u8bbe\u7f6e DNS\uff0c\u5176\u4ed6\u5185\u7f51                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249348\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qingxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @qingxi \u5176\u4ed6\u5185\u7f51 DNS \u5c4f\u853d ipv4 \u89e3\u6790                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249350\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @updateing \u8c22\u8c22\uff0c\u6ca1\u627e\u5230\u7981\u7528\u52a8\u6001 DHCPv6 \u7684\u5730\u65b9\u3002\u6211\u7684\u601d\u8def\u662f\u60f3\u5728\u9632\u706b\u5899\u628a\u5185\u7f51\u7684 DHCPv6 \u6d41\u91cf\u5168\u90e8 reject\uff0c\u518d\u5355\u72ec\u5141\u8bb8 nas \u7684 DHCPv6\uff0c\u4f46\u5f04\u4e86\u534a\u5929 reject \u89c4\u5219\u4e0d\u8d77\u4f5c\u7528\uff0cDHCPv6 \u8fd8\u662f\u5728\u6240\u6709\u5185\u7f51\u8bbe\u5907\u4e0a\u90fd\u80fd\u5de5\u4f5c\u3002dnsmasq \u6211\u660e\u5929\u7814\u7a76\u7814\u7a76                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249352\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @qingxi \u5355\u72ec dns \u8fd9\u4e2a\u662f\u4e2a\u4e0d\u9519\u7684\u66f2\u7ebf\u5907\u9009\u65b9\u6848\uff0c\u4f46\u6211\u8fd8\u662f\u60f3\u5f04\u4e2a\u5b8c\u7f8e\u7684\u89e3\u51b3\u529e\u6cd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249354\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jim9606 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u5b9e\u8df5\u8fc7\u7684\u65b9\u6848<\/p>\n<p>openwrt \u4e3a\u53ea\u4f7f\u7528 V4 \u8bbe\u5907\u5355\u72ec\u5f00\u4e00\u4e2a\u63a5\u53e3\u548c\u9632\u706b\u5899\u533a\u57df<\/p>\n<p>\u4ea4\u6362\u673a\u9875\u9762\u4e3a\u63a5\u5165 LANV4 \u7684\u7f51\u53e3\u5212\u5206\u72ec\u7acb VLAN \uff08\u4f8b\u5982 VLAN3: eth0-tagged, LAN4-untagged\uff0c\u5176\u4f59\u4e3a off\uff0c\u4ea7\u751f\u4ea4\u6362\u673a eth0.3\uff0c\u5982\u679c\u63a5 eth1 \u5c31\u662f eth1.3 \uff09<\/p>\n<p>\u9632\u706b\u5899\u521b\u5efa LANV4 \u533a\u57df\uff0c\u63a5\u53e3\u521b\u5efa\u7684 LANV4,\u53e6\u5916\u5206\u4e00\u4e2a\u5730\u5740\u6c60,\u4f8b\u5982 192.168.2.1\/24\uff0c\u8be5\u63a5\u53e3\u5173\u95ed RA \u3001NDP \u3001DHCPv6\uff0c\u4e3a\u52a0\u5165\u7684\u7269\u7406\u63a5\u53e3\u521b\u5efa\u6865\u63a5\uff08\u4e0a\u9762\u7684 eth0.3,\u7b2c\u4e8c\u4e2a SSID \uff09<\/p>\n<p>LANV4 \u9632\u706b\u5899\u7684\u8f6c\u53d1\u8bbe\u7f6e\u8ddf LAN \u4fdd\u6301\u4e00\u81f4\uff08\u51fa \/\u5165 \/\u8f6c\u53d1\u4e3a\u5141\u8bb8\uff0c\u5141\u8bb8\u76ee\u6807\u533a\u57df LAN+WAN\uff0c\u5141\u8bb8\u6e90\u533a\u57df LAN \uff09<\/p>\n<p>windows \u7cfb\u7edf\u53ef\u4ee5\u8003\u8651\u4fee\u6539\u7b56\u7565\u4f18\u5148 ipv4<br \/>( https:\/\/support.microsoft.com\/zh-cn\/help\/929852\/guidance-for-configuring-ipv6-in-windows-for-advanced-users)<\/p>\n<p>linux \u7cfb\u7edf\u53ef\u4fee\u6539 \/etc\/gai.conf \u5b9e\u73b0                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249356\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jim9606 \u8c22\u8c22\u8fd9\u4e48\u8be6\u7ec6\u7684\u65b9\u6848\uff0c\u53ef\u60dc\u6211\u7684\u60c5\u51b5\u590d\u6742\u4e86\u70b9\uff0c\u6211\u8def\u7531\u5668 4 \u4e2a LAN \u53e3\u53ea\u4fdd\u7559\u4e86\u4e00\u4e2a\uff0c\u4e0b\u9762\u63a5\u7684\u4e00\u4e2a 24 \u53e3\u4ea4\u6362\u673a\uff0c\u6240\u6709\u6709\u7ebf\u8bbe\u5907\u90fd\u662f\u63a5\u7684\u8fd9\u4e2a\u4ea4\u6362\u673a\u3002\u5269\u4e0b\u7684 3 \u4e2a LAN \u53e3\u90fd\u914d\u7f6e\u6210\u4e86 WAN \u53e3\u4f7f\u7528\uff0c\u63a5\u4e86\u4e24\u6761\u5bbd\u5e26\u548c IPTV \u3002\u53e6\u5916\u8001\u5bb6\u7684 padavan \u6ca1\u6709\u914d\u7f6e switch \u7684\u529f\u80fd<\/p>\n<p>\u4e3b\u8981\u662f\u79fb\u52a8\u8bbe\u5907\u4e0d\u65b9\u4fbf\u624b\u52a8\u914d\u7f6e\u548c\u8c03\u6574\u4f18\u5148\u7ea7                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249358\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Archeb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8ba4\u4e3a\u7528 iptables \u5c4f\u853d\u7279\u5b9a\u5305\u53ef\u4ee5\u505a\u5230\u8fd9\u4e00\u70b9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249360\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hand515 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8054\u901a\u7684 ipv6 \u611f\u89c9\u4e5f\u662f\u7ed5\u7f8e\u56fd\uff0ctraceroute -6 \u770b\uff0c\u5148\u5230\u7f8e\u56fd\uff0c\u518d\u5230\u9999\u6e2f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249362\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Archeb \u6211\u4e5f\u662f\u8fd9\u4e48\u60f3\u7684\uff0c\u4f46\u662f\u6211\u5c1d\u8bd5\u5c4f\u853d\u5185\u7f51\u6240\u6709\u7684 DHCPv6 \u6d41\u91cf\uff08 udp 546\uff0c547 \u7aef\u53e3\uff09\uff0c\u4f46\u662f\u6ca1\u6709\u6210\u529f\uff0c\u8bbe\u5907\u7167\u6837\u53ef\u4ee5\u83b7\u53d6 IPv6 \u5730\u5740\u3002<\/p>\n<p>\u53ef\u5426\u6307\u5bfc\u4e0b\u600e\u4e48\u8bbe\u7f6e\u9632\u706b\u5899\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249364\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hand515 \u4e09\u5bb6\u7684 IPv6 \u51fa\u53e3\u5e26\u5bbd\u90fd\u592a\u5c0f\uff0cV \u7ad9\u8054\u901a\u8d70\u65e5\u672c\uff0c\u4f46\u662f\u5ef6\u8fdf\u70b8\u88c2\uff0c\u79fb\u52a8\u8d70\u9999\u6e2f\uff0c\u7535\u4fe1\u8d70\u7f8e\u56fd\uff0c\u4e22\u5305\u90fd\u5f88\u4e25\u91cd\uff0c\u603b\u4e4b\u51fa\u56fd\u6839\u672c\u6ca1\u6cd5\u4f7f\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249366\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cwbsw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg RA \u5173\u4e86\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249368\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cwbsw \u8c22\u8c22\u4f60\u7684\u63d0\u9192\uff0c\u6211\u53d1\u73b0\u4e4b\u524d\u5c4f\u853d\u4e86 DHCPv6 \u540e\u5ba2\u6237\u7aef\u83b7\u53d6\u7684 IP \u679c\u7136\u662f\u901a\u8fc7 RA \u83b7\u53d6\u7684\u3002<\/p>\n<p>\u6211\u5c1d\u8bd5\u5173\u95ed RA\uff0c\u53ef\u662f nas \u867d\u7136\u6709 DHCPv6 \u83b7\u53d6\u7684 IPv6 \u5730\u5740\uff0c\u5374\u4e0d\u80fd\u4e0a\u7f51\u4e86\uff0c\u51fa\u7ad9\u90fd\u662f Network is unreachable                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249370\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : updateing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg RA \u6700\u597d\u4e0d\u8981\u5173\u95ed\uff0c \u5b83\u662f\u83b7\u53d6\u9ed8\u8ba4\u8def\u7531\u7684\u65b9\u5f0f\u4e4b\u4e00\u3002\u53ea\u9700\u8981\u5173\u95ed SLAAC \u5c31\u8db3\u591f\u4e86\uff0c\u5c31\u662f RA \u91cc\u9762\u5bf9\u5e94\u524d\u7f00\u4e0b\u7684 Autonomous \u4f4d\u3002\u8fd9\u4e2a\u7528\u539f\u7248\u7684 odhcpd \u5c31\u53ef\u4ee5\u8bbe\u7f6e\uff0c\u5e94\u8be5\u662f\u9875\u9762\u4e0a\u628a Router Advertisement \u8bbe\u7f6e\u6210 Stateful-only \u5c31\u884c.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249372\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u60f3\u5230\u4e00\u4e2a\uff1aOpenWRT \u4e0d\u7ed9 lan \u5206\u914d v6\uff0c\u7136\u540e\u518d\u642d\u4e2a OpenVPN \u6216 WireGuard \u4e4b\u7c7b\u7684\uff0cNAS \u5c31\u80fd\u7ed5\u4e2a\u5f2f\u62ff\u5230 v6 \u5730\u5740\u4e86\u3002\u3002\u867d\u7136\u5728\u5185\u7f51\u95f4\u642d\u4e2a VPN \u662f\u5938\u5f20\u4e86\u70b9~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249374\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cwbsw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg \u624b\u52a8\u6dfb\u52a0\u9ed8\u8ba4\u8def\u7531\u3002<br \/>ip -6 r add default via fe80:*** dev ***                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249376\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : king050203 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u7528 ebtables \u8fc7\u6ee4 ipv6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249378\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mandymak <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg \u66f4\u6362\u4e3b\u8def\u7531\u4e3a routeros\uff0copenwrt \u6539\u4e3a\u65c1\u8def\u7531\uff0crouteros \u652f\u6301\u628a ipv6 \u914d\u5230\u72ec\u7acb\u7684 bridge \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249380\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @updateing openwrt \u91cc\u6ca1\u6709 stateful\uff0c\u6211\u731c\u5e94\u8be5\u5c31\u662f\u5bf9\u5e94\u7684 server mode\uff0c\u65e0\u8bba\u8bbe\u7f6e\u4e3a server mode \u8fd8\u662f relay mode\uff0c\u5c40\u57df\u7f51\u8bbe\u5907\u90fd\u53ef\u4ee5\u81ea\u52a8\u83b7\u53d6 IPv6 \u5730\u5740\u3002\u641c\u7d22\u8d44\u6599\u53d1\u73b0 RA \u8d70\u7684 ICMPv6\uff0c\u6211\u5c31\u5728\u9632\u706b\u5899\u628a\u6240\u6709 ICMPv6 \u5305 DROP \u4e86\uff0c\u7136\u540e\u5355\u72ec ACCEPT nas \u7684\u3002\u73b0\u5728\u770b\u5e94\u8be5\u662f\u6ca1\u95ee\u9898\u4e86\u3002luci \u91cc\u9632\u706b\u5899\u8bbe\u7f6e\u89c4\u5219\u5e76\u4e14\u62d6\u5230\u6700\u4e0a\u9762\u4e0d\u8d77\u4f5c\u7528\uff0c\u5fc5\u987b\u8981 ssh \u8fdb\u53bb\u624b\u52a8\u8f93 ip6tables \u547d\u4ee4\u624d\u884c\u3002<\/p>\n<p>&#8220;`<br \/>ip6tables -I INPUT -p udp &#8211;dport 546 -j DROP<br \/>ip6tables -I INPUT -p udp &#8211;dport 547 -j DROP<br \/>ip6tables -I INPUT -p icmpv6 -j DROP<br \/>ip6tables -I INPUT -p udp -m mac &#8211;mac-source NAS_MAC_ADDRESS &#8211;dport 546 -j ACCEPT<br \/>ip6tables -I INPUT -p udp -m mac &#8211;mac-source NAS_MAC_ADDRESS &#8211;dport 547 -j ACCEPT<br \/>ip6tables -I INPUT -p icmpv6 -m mac &#8211;mac-source NAS_MAC_ADDRESS -j ACCEPT<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249382\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cwbsw \u8c22\u8c22\u3002\u6211\u8def\u7531\u5668\u5173\u95ed RA\uff0cnas \u4e0a\u624b\u52a8\u6dfb\u52a0\u9ed8\u8ba4 IPv6 \u8def\u7531\uff0c\u8fd8\u662f Network is unreachable\uff0cip -6 r add default via fe80::6238:e085:ff05:c9d7 dev ens3\uff0c\u548c RA \u81ea\u52a8\u83b7\u53d6\u7684\u662f\u4e00\u6a21\u4e00\u6837\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249384\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cwbsw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg \u5947\u602a\u4e86\uff0c\u6211 Windows \u673a\u5668\u5c31\u53ef\u4ee5\u8fd9\u4e48\u5e72\uff0c\u8def\u7531\u5668\u4e0d\u5f00 RA\uff0c\u7136\u540e\u624b\u52a8\u914d\u5730\u5740\u548c\u8def\u7531\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249386\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cwbsw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg \u60f3\u4e86\u4e0b\uff0c\u6700\u597d\u5e94\u8be5\u8fd8\u662f\u53ea\u5f00 RA\uff0c\u7981\u7528 DHCPv6\uff0cDROP \u975e NAS \u7684 ICMP6 \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249388\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LGA1150 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5173\u95ed SLAAC\uff1a<br \/>uci set dhcp.lan.ra_slaac=0<br \/>uci commit dhcp<br \/>\/etc\/init.d\/odhcpd restart<br \/>RA \u8fd8\u662f\u8981\u5f00\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249389\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cwbsw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u5bf9\uff0c\u4e0d\u884c\uff0c\u8fd9\u6837\u8fd8\u662f\u4f1a\u5e7f\u64ad RA\uff0c\u5149 DROP \u5165\u7ad9\u4e0d\u884c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249390\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LGA1150 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8865\u5145 #28<br \/>\u53ea\u6709 snapshot \u91cc\u7684 odhcpd \u652f\u6301 ra_slaac \u8bbe\u7f6e\uff0c19.07 \u6216 18.06 \u90fd\u4e0d\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249391\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : helldiablo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &#8216;!~7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249392\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : helldiablo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &#8216;!~7i6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249393\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cwbsw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @LGA1150 <br \/>snapshot \u7684\u8bdd\uff0c\u53ea\u9700 luci \u91cc\u8bbe\u7f6e statefull-only \u5373\u53ef\uff0c\u6293\u5305\u770b RA \u91cc\u5df2\u7ecf\u6ca1\u6709 Auto Flag \u3002<br \/>\u7efc\u4e0a\uff0c\u4e3b\u9700\u8981\u5728 luci \u8bbe\u7f6e statefull-only\uff0cDROP \u6389\u975e NAS \u7684 ICMP6 \u548c UDP 547 \u5165\u7ad9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249394\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cwbsw \u5341\u5206\u611f\u8c22\uff01\u6211\u73b0\u5728\u7528\u7684 openwrt 19.07 \u548c padavan \u3002\u8fd9\u6837\u624b\u52a8\u8bbe\u7f6e\u9632\u706b\u5899\u540e\u8c8c\u4f3c\u53ef\u4ee5\u8fbe\u5230\u6211\u60f3\u8981\u7684\u6548\u679c\u4e86\uff0copenwrt \u4e0a\u7684\u5176\u4ed6\u8bbe\u5907\u5076\u5c14\u8fd8\u4f1a\u83b7\u5f97 IPv6 \u5730\u5740\uff0c\u641e\u4e0d\u61c2\u4e3a\u4ec0\u4e48\uff0c\u53ef\u80fd\u9632\u706b\u5899\u91cd\u542f\u4e86\uff1f<\/p>\n<p>openwrt \u4e0a\u8bbe\u7f6e\u4e3a<br \/>Router Advertisement-Service: Server Mode<br \/>DHCPv6-Service: Server Mode<br \/>NDP-Proxy: Disabled<br \/>DHCPv6-Mode: Stateful only<\/p>\n<p>padavan \u4e0a\u8bbe\u7f6e\u4e3a<br \/>WAN: Stateless RA<br \/>\u901a\u8fc7 DHCP \u83b7\u53d6\u5185\u7f51 IPv6 \u5730\u5740:\u662f<br \/>\u542f\u7528 LAN \u8def\u7531\u5668\u5e7f\u64ad: \u662f<br \/>\u542f\u7528 LAN DHCPv6 \u670d\u52a1\u5668: Stateful<\/p>\n<p>\u4e24\u4e2a\u8def\u7531\u5668\u4e0a\u90fd\u7528\u7684\u540c\u6837\u7684\u89c4\u5219<br \/>ip6tables -I INPUT -p udp &#8211;dport 547 -j DROP<br \/>ip6tables -I INPUT -p icmpv6 -j DROP<br \/>ip6tables -I INPUT -p udp -m mac &#8211;mac-source NAS_MAC_ADDR &#8211;dport 547 -j ACCEPT<br \/>ip6tables -I INPUT -p icmpv6 -m mac &#8211;mac-source NAS_MAC_ADDR -j ACCEPT                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249395\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cwbsw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg \u89c4\u5219\u52a0\u5230 \/etc\/firewall.user \u91cc\u91cd\u542f\u5c31\u4e0d\u4f1a\u5931\u6548\u3002<\/p>\n<p>ip6tables -A input_lan_rule -i br-lan -p ipv6-icmp -m mac ! &#8211;mac-source *** -j DROP<br \/>ip6tables -A input_lan_rule -i br-lan -p udp &#8211;dport 547 -m mac ! &#8211;mac-source * -j DROP<\/p>\n<p>\u53ef\u80fd\u662f 30 \u8bf4\u7684\u539f\u56e0\uff0c19.07 \u7684 statefull-only \u5b9e\u73b0\u6709\u95ee\u9898\u3002\u53ef\u4ee5\u6293\u5305\u786e\u8ba4\u4e00\u4e0b\u3002<\/p>\n<p>prefix info option (3), length 32 (4): 240e:***::\/64, Flags [onlink], valid time 2251s, pref. time 2251s<\/p>\n<p>Flags \u90a3\u4e00\u9879\u4e0d\u5e94\u8be5\u6709 Auto \u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249396\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cwbsw \u6211\u662f\u5199\u5230 firewall.user \u7684\uff0c\u53ef\u80fd\u4e4b\u524d\u624b\u52a8\u91cd\u542f\u7684\u95f4\u9699\u83b7\u53d6\u7684\uff0c\u76ee\u524d\u51e0\u4e2a\u5c0f\u65f6\u8fc7\u53bb\u4e86\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u4e86\u3002\u552f\u4e00\u7684\u5c0f\u7455\u75b5\uff0cWAN \u53e3\u4e5f\u4e0d\u80fd\u83b7\u53d6\u5730\u5740\uff0c\u8def\u7531\u672c\u8eab\u4e0d\u80fd\u76d1\u542c IPv6 \u7aef\u53e3\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1249397\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : swiftg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @swiftg #36\uff0c\u6211\u81ea\u5df1\u89c4\u5219\u6ca1\u6709\u6307\u5b9a lan \u63a5\u53e3\uff0c\u6309\u7167 @cwbsw \u7684\u89c4\u5219\u52a0\u4e0a-i br-lan\uff0cWAN \u53e3\u5c31\u4e5f\u53ef\u4ee5\u83b7\u53d6 IPv6 \u5730\u5740\u4e86\u3002<\/p>\n<p>\u81ea\u6b64\u95ee\u9898\u5b8c\u7f8e\u89e3\u51b3\uff0c\u611f\u8c22\u4e0a\u5404\u4f4d\u5927\u4f6c\u7684\u8010\u5fc3\u89e3\u7b54\u6307\u5bfc                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u53ea\u7ed9\u8def\u7531\u5668\u540e\u7684\u67d0\u4e2a\u8bbe\u5907\u5355\u72ec\u5206\u914d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/91455"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=91455"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/91455\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=91455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=91455"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=91455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}