{"id":2441,"date":"2025-05-07T15:20:25","date_gmt":"2025-05-07T07:20:25","guid":{"rendered":"http:\/\/blog.xtaa.cn\/?p=2441"},"modified":"2025-05-07T15:20:25","modified_gmt":"2025-05-07T07:20:25","slug":"%e9%83%a8%e5%88%86%e5%85%89%e7%8c%ab%e5%bc%80%e5%90%af%e5%85%ac%e7%bd%91ipv6%e5%85%a5%e7%ab%99%ef%bc%8c%e5%85%89%e7%8c%ab%e6%97%a0%e9%9c%80%e6%a1%a5%e6%8e%a5%e7%9b%b4%e8%bf%9e","status":"publish","type":"post","link":"http:\/\/blog.xtaa.cn\/index.php\/2025\/05\/07\/%e9%83%a8%e5%88%86%e5%85%89%e7%8c%ab%e5%bc%80%e5%90%af%e5%85%ac%e7%bd%91ipv6%e5%85%a5%e7%ab%99%ef%bc%8c%e5%85%89%e7%8c%ab%e6%97%a0%e9%9c%80%e6%a1%a5%e6%8e%a5%e7%9b%b4%e8%bf%9e\/","title":{"rendered":"\u90e8\u5206\u5149\u732b\u5f00\u542f\u516c\u7f51IPv6\u5165\u7ad9\uff0c\u5149\u732b\u65e0\u9700\u6865\u63a5\u76f4\u8fde"},"content":{"rendered":"\n<p>\u4ef7\u503c\u4e0d\u5927\uff0c\u8fd9\u4e2a\u4e3a\u7814\u7a76\u53c2\u8003\uff0c\u5b9e\u9645\u4e0a\u5149\u732b\u6709PMTU\u9ed1\u6d1e\u7b49\u95ee\u9898\uff0c\u6700\u597d\u7684\u65b9\u6cd5\u8fd8\u662f\u8def\u7531\u62d4\u53f7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\u8d85\u7ea7\u5bc6\u7801\u83b7\u53d6\ntelnet 192.168.1.1\n\u8d26\u53f7\uff1aCMCCAdmin\n\u5bc6\u7801\uff1a\u4f60\u7684\u5149\u732b\u540e\u9762\u7684user\u5bc6\u7801+@C1\n\n\u8d85\u7ea7\u5bc6\u7801\u83b7\u53d6\u65b9\u6cd5\n\u63d2\u5165U\u76d8\uff0c\ncp \/userconfig\/cfg\/db_ciot_user_cfg.xml \/mnt\/usb1_1\/\n\n\u7136\u540erouterpassview \u6253\u5f00db_ciot_user_cfg.xml \u6587\u4ef6\n\n\u641c DM name=\u201cUser\u201d val=\n\u7136\u540e\u4f60\u5c31\u53ef\u4ee5\u770b\u89c1\u8d85\u7ea7\u5bc6\u7801\u4e86\n\n\u8fd9\u4e2a\u8d85\u5bc6\u662f\u6709\u65f6\u6548\u6027\u7684\uff0c\u5931\u6548\u4e86\u5c31\u518d\u83b7\u53d6db_ciot_user_cfg.xml \u6587\u4ef6\u67e5\u770b\n\n\u5f00\u542fTelnet\n\u4f7f\u7528\u8d85\u7ea7\u5bc6\u7801\u767b\u9646\u540e\n\n\u8bbf\u95ee\uff1ahttp:\/\/192.168.1.1:8080\/enableTelnet.html\n\n\u5373\u53ef\u542f\u7528 telnet\uff0c\u540c\u65f6\u9875\u9762\u4e5f\u6709\u7528\u6237\u540d\u548c\u5bc6\u7801\n\n\u65e0\u89c6SU\u5bc6\u7801,\u8fdb\u5165ROOT\ntelnet 192.168.1.1 \u94fe\u63a5\u5230\u5149\u732b\n\n\u7528\u6237\u540d\u548c\u5bc6\u7801\u5747\u662f telnetuser\n\n\u7136\u540e\u8f93\u5165\u82f1\u6587\u7b26\u53f7 ; \u56de\u8f66\n\n\u8fd9\u65f6 $ \u7b26\u53f7\u6d88\u5931\u5c31\u8fdb\u5165root\u7528\u6237\u4e86\n\nLogin: telnetuser\nPassword:\n$;\nsh: syntax error: unexpected \";\"\necho $USER\nroot\n\u5f00\u542fIPv6\u5165\u7ad9\n\u9ed8\u8ba4\u89c4\u5219\u5728\u8f6c\u53d1 FORWARD \u8868\u4e2d\u52a0\u5165\u4e86 DROP \u4e22\u5f03\u4e86\u6240\u6709\u5165\u7ad9\u8bf7\u6c42\n\n\u662f\u5149\u732b\u5c06\u6d41\u91cf\u8f6c\u53d1\u7ed9\u4e0b\u7ea7\u8def\u7531\u7684\uff0c\u901a\u914d DROP \u7684\u89c4\u5219\u5220\u6389\u5373\u53ef\n\n\u67e5\u770bFORWARD\u8868\n# \u67e5\u770b\u6240\u6709\u8868\nip6tables -nvL --line-number\n\n#\u67e5\u770bFORWARD\u8868\nip6tables -nvL FORWARD --line-numbers\n\nChain FORWARD (policy ACCEPT 65441 packets, 5616K bytes)\nnum   pkts bytes target     prot opt in     out     source               destination\n1     6546  521K TCPMSS     tcp      any    ppp1.3  anywhere             anywhere             tcp flags:SYN,RST\/SYN TCPMSS clamp to PMTU\n2     6387  492K TCPMSS     tcp      ppp1.3 any     anywhere             anywhere             tcp flags:SYN,RST\/SYN TCPMSS clamp to PMTU\n3    4021K  770M rtchain    all      any    any     anywhere             anywhere\n4        0     0 DROP       all      veip0.1 any     anywhere             anywhere\n5        0     0 DROP       all      veip0.2 any     anywhere             anywhere\n6    4018K  769M forward_npt  all      any    any     anywhere             anywhere\n7     5476 1857K SKIPLOG    icmpv6    any    br0     anywhere             anywhere             ipv6-icmp destination-unreachable\n8      399  137K SKIPLOG    icmpv6    any    ppp1.3  anywhere             anywhere             ipv6-icmp destination-unreachable\n9    53521   19M ACCEPT     all      ppp1.3 any     anywhere             anywhere             ctstate RELATED,ESTABLISHED\n10       0     0 LOG        tcp      ppp1.3 any     anywhere             anywhere             tcp flags:FIN,SYN,RST,ACK\/SYN limit: avg 6\/hour burst 5 LOG level alert prefix \"Intrusion -> \"\n11    1801  209K DROP       all      ppp1.3 any     anywhere             anywhere\n\u5220\u9664DROP\u89c4\u5219\n\u6211\u8fd9\u91cc\u89c4\u5219\u662f\u7b2c11\u6761\u6240\u4ee5\u5220\u966411\u6761\uff0c\u4ee5\u81ea\u5df1\u6807\u53f7\u4e3a\u51c6\n\n#\u5220\u9664\u89c4\u521911\nip6tables -D FORWARD 11\n\nip6tables -nvL FORWARD --line-numbers\nChain FORWARD (policy ACCEPT 8 packets, 524 bytes)\nnum   pkts bytes target     prot opt in     out     source               destination\n1     6730  535K TCPMSS     tcp      *      ppp1.3  ::\/0                 ::\/0                 tcp flags:0x06\/0x02 TCPMSS clamp to PMTU\n2     7023  542K TCPMSS     tcp      ppp1.3 *       ::\/0                 ::\/0                 tcp flags:0x06\/0x02 TCPMSS clamp to PMTU\n3    4024K  770M rtchain    all      *      *       ::\/0                 ::\/0\n4        0     0 DROP       all      veip0.1 *       ::\/0                 ::\/0\n5        0     0 DROP       all      veip0.2 *       ::\/0                 ::\/0\n6    4020K  770M forward_npt  all      *      *       ::\/0                 ::\/0\n7     5496 1860K SKIPLOG    icmpv6    *      br0     ::\/0                 ::\/0                 ipv6-icmptype 1\n8      405  139K SKIPLOG    icmpv6    *      ppp1.3  ::\/0                 ::\/0                 ipv6-icmptype 1\n9    54396   19M ACCEPT     all      ppp1.3 *       ::\/0                 ::\/0                 ctstate RELATED,ESTABLISHED\n10       5   400 LOG        tcp      ppp1.3 *       ::\/0                 ::\/0                 tcp flags:0x17\/0x02 limit: avg 6\/hour \n\n\u9ad8\u7ea7\u89c4\u5219\n\u5728drop\u4e4b\u524d\u52a0\u5165\u6709\u6548\uff0c\u4e5f\u5c31\u662f\u9700\u8981\u6392\u5728\u524d\u9762\u800c\u975e\u6700\u540e\uff0c\u8fd9\u4e2a\u6307\u5b9a\u653e\u884c\u7684\u7aef\u53e3\uff0c\u800c\u975e\u5168\u90e8\u653e\u884c\uff0c\u4fdd\u8bc1\u4e86\u5b89\u5168\n\n\u5141\u8bb8\u6307\u5b9a\u7aef\u53e3\uff08\u5047\u8bbe\u8981\u653e\u884c 22, 80, 443\uff09\nip6tables -I FORWARD 1 -i ppp1.3 -p tcp --dport 22 -j ACCEPT   # SSH\nip6tables -I FORWARD 2 -i ppp1.3 -p tcp --dport 80 -j ACCEPT   # HTTP\nip6tables -I FORWARD 3 -i ppp1.3 -p tcp --dport 443 -j ACCEPT  # HTTPS\n\n\u5141\u8bb8\u8fd4\u56de\u6d41\u91cf\uff08\u9632\u6b62\u8fde\u63a5\u88ab\u4e2d\u65ad\uff09\nip6tables -I FORWARD 4 -m state --state ESTABLISHED,RELATED -j ACCEPT\n\u6062\u590dDROP\u89c4\u5219\n\u5728\u7b2c11\u6761\u52a0\u5165DROP\u89c4\u5219\uff0c\u6216\u8005\u91cd\u542f\u5149\u732b\n\nip6tables -I FORWARD 11 -i ppp1.3 -j DROP\n\u6301\u4e45\u5316\n\u6682\u672a\u627e\u5230\u80fd\u6301\u4e45\u5316\u7684\u65b9\u6cd5\n\n\u4f7f\u7528 ip6tables-save \u4fdd\u5b58\u7684\u503c\u65e0\u53d8\u5316<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ef7\u503c\u4e0d\u5927\uff0c\u8fd9\u4e2a\u4e3a\u7814\u7a76\u53c2\u8003\uff0c\u5b9e\u9645\u4e0a\u5149\u732b\u6709PMTU\u9ed1\u6d1e\u7b49\u95ee\u9898\uff0c\u6700\u597d\u7684\u65b9\u6cd5\u8fd8\u662f\u8def\u7531\u62d4\u53f7<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2441","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/2441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2441"}],"version-history":[{"count":1,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/2441\/revisions"}],"predecessor-version":[{"id":2442,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/2441\/revisions\/2442"}],"wp:attachment":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2441"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}