{"id":1367,"date":"2011-12-18T22:28:17","date_gmt":"2011-12-18T14:28:17","guid":{"rendered":"http:\/\/juan.tw\/?p=1367"},"modified":"2011-12-26T14:33:13","modified_gmt":"2011-12-26T06:33:13","slug":"dd-wrt-%e6%9b%b4%e6%96%b0-firmware-%e5%be%8c%e7%94%a2%e7%94%9f%e4%b9%8b-nat-lookback-%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/juan.tw\/?p=1367","title":{"rendered":"DD-WRT \u66f4\u65b0 firmware \u5f8c\u7522\u751f\u4e4b NAT loopback \u554f\u984c"},"content":{"rendered":"<p>\u56e0\u70ba\u628a\u5bb6\u88e1\u7684\u7db2\u8def\u5347\u7d1a\u5230 Hinet \u7684 50M\/5M \u5149\u4e16\u4ee3\u56fa\u5b9a\u5236<br \/>\n\u820a\u7684\u8a2d\u5099 NAT throughput \u53ea\u6709 10M<br \/>\n\u6839\u672c\u8dd1\u4e0d\u4e86\u90a3\u9ebc\u5feb, \u53ea\u597d\u628a\u4e4b\u524d\u7684\u5206\u4eab\u5668\u63db\u6389<\/p>\n<p>\u8cb7\u4e86\u4e00\u53f0\u633a\u8d85\u503c\u7684 TP-Link <a href=\"http:\/\/www.tplink.com.tw\/tw\/product_1_1.php?id=33&#038;menu=1\">TL-WR1043ND<\/a><br \/>\n\u5148\u628a firmware \u63db\u6210 DD-WRT 14896 \u9019\u500b\u7248\u672c<br \/>\n\u518d\u628afirewall \u53ca VPN \u76f4\u63a5\u7528\u9019\u53f0 AP \u67b6\u8d77\u4f86<br \/>\n\u4e00\u4f86\u8a2d\u5b9a\u65b9\u4fbf, \u4e8c\u4f86\u7701\u96fb\u4e5f\u7701\u7a7a\u9593, \u4e5f\u6c92\u6709\u566a\u97f3\u7684\u554f\u984c<\/p>\n<p>\u8dd1\u4e86\u4e00\u9663\u5b50\u4e4b\u5f8c, \u767c\u73fe\u9019\u500b\u7248\u672c\u7684 firmware \u6709\u4e9b\u5c0f\u554f\u984c<br \/>\n\u7b2c\u4e00, \u7121\u7dda\u9694\u4e00\u9663\u5b50\u5c31\u6703\u639b\u6389, \u6703\u627e\u4e0d\u5230 AP, \u4f46\u5176\u5b83\u529f\u80fd\u90fd\u6b63\u5e38\u904b\u4f5c<br \/>\n\u7b2c\u4e8c, \u5f9e\u5927\u9678\u900f\u904e\u6b64 VPN \u9023\u56de\u4f86\u6642, DNS \u7684\u67e5\u8a62\u770b\u8d77\u4f86\u602a\u602a\u7684, \u6240\u4ee5, MSN \u8ddfFB\u6703\u5f88\u4e0d\u597d\u9023<\/p>\n<p>\u6240\u4ee5\u4e00\u76f4\u5728\u770b\u9019\u500b\u7248\u672c, \u4f46\u5b98\u7db2\u4e00\u76f4\u6c92\u6709\u66f4\u65b0\u7248\u672c<br \/>\n\u5f8c\u4f86\u767c\u73fe\u4e00\u4e9b\u6e2c\u8a66\u7248\u672c\u5176\u5be6\u4e00\u76f4\u5728\u653e\u51fa\u4f86, \u4f46\u4e0d\u6703 list \u5728\u5b98\u7db2\u4e0a:<\/p>\n<p><a href=\"ftp:\/\/ftp.dd-wrt.com\/others\/eko\/BrainSlayer-V24-preSP2\/2011\/\" title=\"ftp:\/\/ftp.dd-wrt.com\/others\/eko\/BrainSlayer-V24-preSP2\/2011\/\">ftp:\/\/ftp.dd-wrt.com\/others\/eko\/BrainSlayer-V24-preSP2\/2011\/<\/a><\/p>\n<p>\u7a0d\u5fae google \u4e86\u4e00\u4e0b, \u767c\u73fe 18000 \u4e4b\u524d\u7684 build \u707d\u60c5\u5f88\u56b4\u91cd<br \/>\n\u6240\u4ee5\u6700\u8fd1\u7248\u672c\u66f4\u65b0\u7684\u5f88\u983b\u7e41, \u6700\u65b0\u4e00\u7248\u7684 18007 \u770b\u8d77\u4f86\u7a69\u5b9a\u4e00\u4e9b (\u9084\u662f\u707d\u60c5\u6c92\u51fa\u4f86?)<\/p>\n<p>\u4eca\u5929\u9192\u4f86\u5f8c, \u5c31\u885d\u4e86&#8230;. XDD<br \/>\n<!--more--><br \/>\n\u679c\u7136, \u5347\u7d1a\u5f8c, \u6211\u5c31\u6c92\u8fa6\u6cd5\u9023\u4e0a\u900f\u904e 1-1 NAT \u5f8c\u7684\u5167\u90e8\u4e3b\u6a5f<br \/>\n\u4f46\u662f\u5f9e\u5916\u90e8\u9023\u904e\u4f86\u537b\u4e00\u5207\u90fd\u6b63\u5e38<\/p>\n<p>\u679c\u7136\u6700\u9060\u7684\u8ddd\u96e2\u5f80\u5f80\u90fd\u51fa\u73fe\u5728\u773c\u524d<\/p>\n<p>\u6e2c\u4e86\u5f88\u4e45, \u767c\u73fe\u4e0d\u662f static route \u7684\u554f\u984c<br \/>\n\u56e0\u70ba 1-1 NAT bind \u9032\u4f86\u7684\u4e94\u500b IP \u4e2d, \u6c92\u6709\u8a2d\u5b9a iptables rule \u7684\u662f\u6703\u901a\u7684<\/p>\n<p>\u518d\u6301\u7e8c google \u5f8c, \u767c\u73fe\u5b98\u7db2\u8a0e\u8ad6\u5340\u6709\u9019\u4e00\u7bc7\u6587\u7ae0:<\/p>\n<p><a href=\"http:\/\/www.dd-wrt.com\/phpBB2\/viewtopic.php?t=89353\" title=\"dd-wrt\">NAT Loopback fix for 15760 and higher, (Port forward issue)<br \/>\n<\/a><\/p>\n<p>\u627e\u5230\u5147\u624b\u4e86!!<\/p>\n<p>\u5728 build 15760 \u4e4b\u5f8c\u7684\u7248\u672c, \u901a\u901a\u5b58\u5728\u4e00\u500b NAT loopback \u7684\u554f\u984c<br \/>\n\u5fc5\u9808\u8981\u5728\u9632\u706b\u7246\u8a2d\u5b9a\u5167\u52a0\u4e0a\u4ee5\u4e0b\u6307\u4ee4:<\/p>\n<ul>\n# fix loopback for new firmware<br \/>\ninsmod ipt_mark<br \/>\ninsmod xt_mark<br \/>\niptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK &#8211;set-mark 0xd001<br \/>\niptables -t nat -A POSTROUTING -m mark &#8211;mark 0xd001 -j MASQUERADE<br \/>\niptables -t mangle -A PREROUTING -i ! `get_wanface` -d <strong><em>\u60a8\u7684WAN IP<\/em><\/strong> -j MARK &#8211;set-mark 0xd001 <\/ul>\n<p><a href=\"http:\/\/juan.tw\/wp-content\/uploads\/2011\/12\/ddwrt.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/juan.tw\/wp-content\/uploads\/2011\/12\/ddwrt.jpg\" alt=\"\" title=\"ddwrt\" width=\"866\" height=\"743\" class=\"alignnone size-full wp-image-1369\" srcset=\"https:\/\/juan.tw\/wp-content\/uploads\/2011\/12\/ddwrt.jpg 866w, https:\/\/juan.tw\/wp-content\/uploads\/2011\/12\/ddwrt-300x257.jpg 300w, https:\/\/juan.tw\/wp-content\/uploads\/2011\/12\/ddwrt-150x128.jpg 150w, https:\/\/juan.tw\/wp-content\/uploads\/2011\/12\/ddwrt-400x343.jpg 400w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/a><\/p>\n<p>DD-WRT \u5b98\u7db2\u76ee\u524d\u5df2\u7d93 closed \u9019\u500b issue, \u4f46\u8868\u660e\u4e0d\u6703\u4fee\u6b63\u6b64\u554f\u984c<br \/>\n\u6240\u4ee5, \u9019\u5927\u6982\u662f\u77ed\u671f\u9593\u5167\u6700\u65b9\u4fbf\u7684\u89e3\u6cd5<\/p>\n<p class=\"facebook\"><a href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/juan.tw\/?p=1367\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/juan.tw\/wp-content\/plugins\/add-to-facebook-plugin\/facebook_share_icon.gif\" alt=\"Share on Facebook\" title=\"Share on Facebook\" \/><\/a><a href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/juan.tw\/?p=1367\" target=\"_blank\" title=\"Share on Facebook\">Share on Facebook<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u56e0\u70ba\u628a\u5bb6\u88e1\u7684\u7db2\u8def\u5347\u7d1a\u5230 Hinet \u7684 50M\/5M \u5149\u4e16\u4ee3\u56fa\u5b9a\u5236 \u820a\u7684\u8a2d\u5099 NAT throughput \u53ea\u6709 10M \u6839\u672c\u8dd1\u4e0d\u4e86\u90a3\u9ebc\u5feb, \u53ea\u597d\u628a\u4e4b\u524d\u7684\u5206\u4eab\u5668\u63db\u6389<\/p>\n<p>\u8cb7\u4e86\u4e00\u53f0\u633a\u8d85\u503c\u7684 TP-Link TL-WR1043ND \u5148\u628a firmware \u63db\u6210 DD-WRT 14896 \u9019\u500b\u7248\u672c \u518d\u628afirewall \u53ca VPN \u76f4\u63a5\u7528\u9019\u53f0 AP \u67b6\u8d77\u4f86 \u4e00\u4f86\u8a2d\u5b9a\u65b9\u4fbf, \u4e8c\u4f86\u7701\u96fb\u4e5f\u7701\u7a7a\u9593, \u4e5f\u6c92\u6709\u566a\u97f3\u7684\u554f\u984c<\/p>\n<p>\u8dd1\u4e86\u4e00\u9663\u5b50\u4e4b\u5f8c, \u767c\u73fe\u9019\u500b\u7248\u672c\u7684 firmware \u6709\u4e9b\u5c0f\u554f\u984c \u7b2c\u4e00, \u7121\u7dda\u9694\u4e00\u9663\u5b50\u5c31\u6703\u639b\u6389, \u6703\u627e\u4e0d\u5230 AP, \u4f46\u5176\u5b83\u529f\u80fd\u90fd\u6b63\u5e38\u904b\u4f5c \u7b2c\u4e8c, \u5f9e\u5927\u9678\u900f\u904e\u6b64 VPN \u9023\u56de\u4f86\u6642, DNS \u7684\u67e5\u8a62\u770b\u8d77\u4f86\u602a\u602a\u7684, \u6240\u4ee5, MSN \u8ddfFB\u6703\u5f88\u4e0d\u597d\u9023<\/p>\n<p>\u6240\u4ee5\u4e00\u76f4\u5728\u770b\u9019\u500b\u7248\u672c, \u4f46\u5b98\u7db2\u4e00\u76f4\u6c92\u6709\u66f4\u65b0\u7248\u672c \u5f8c\u4f86\u767c\u73fe\u4e00\u4e9b\u6e2c\u8a66\u7248\u672c\u5176\u5be6\u4e00\u76f4\u5728\u653e\u51fa\u4f86, \u4f46\u4e0d\u6703 list \u5728\u5b98\u7db2\u4e0a:<\/p>\n<p>ftp:\/\/ftp.dd-wrt.com\/others\/eko\/BrainSlayer-V24-preSP2\/2011\/<\/p>\n<p>\u7a0d\u5fae google \u4e86\u4e00\u4e0b, \u767c\u73fe 18000 \u4e4b\u524d\u7684 build \u707d\u60c5\u5f88\u56b4\u91cd \u6240\u4ee5\u6700\u8fd1\u7248\u672c\u66f4\u65b0\u7684\u5f88\u983b\u7e41, \u6700\u65b0\u4e00\u7248\u7684 18007 \u770b\u8d77\u4f86\u7a69\u5b9a\u4e00\u4e9b (\u9084\u662f\u707d\u60c5\u6c92\u51fa\u4f86?)<\/p>\n<p>\u4eca\u5929\u9192\u4f86\u5f8c, \u5c31\u885d\u4e86&#8230;. XDD<\/p>\n<p class=\"facebook\">Share on [&#8230;]<\/p>\n<p class=\"facebook\"><a href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/juan.tw\/?p=1367\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/juan.tw\/wp-content\/plugins\/add-to-facebook-plugin\/facebook_share_icon.gif\" alt=\"Share on Facebook\" title=\"Share on Facebook\" \/><\/a><a href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/juan.tw\/?p=1367\" target=\"_blank\" title=\"Share on Facebook\">Share on Facebook<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[127,129,128],"class_list":["post-1367","post","type-post","status-publish","format-standard","hentry","category-computer-networking","tag-dd-wrt","tag-nat-loopback","tag-tl-wr1043nd","odd"],"psp_head":"<title>DD-WRT \u66f4\u65b0 firmware \u5f8c\u7522\u751f\u4e4b NAT loopback \u554f\u984c \u2013 absolute Juan<\/title>\r\n<meta name=\"description\" content=\"\u56e0\u70ba\u628a\u5bb6\u88e1\u7684\u7db2\u8def\u5347\u7d1a\u5230 Hinet \u7684 50M\/5M \u5149\u4e16\u4ee3\u56fa\u5b9a\u5236 \u820a\u7684\u8a2d\u5099 NAT throughput \u53ea\u6709 10M \u6839\u672c\u8dd1\u4e0d\u4e86\u90a3\u9ebc\u5feb, \u53ea\u597d\u628a\u4e4b\u524d\u7684\u5206\u4eab\u5668\u63db\u6389 \u8cb7\u4e86\u4e00\u53f0\u633a\u8d85\u503c\u7684 TP-Link TL-WR1043ND \u5148\u628a firmware \u63db\u6210 DD-WRT 14896 \u9019\u500b\u7248\u672c \u518d\u628afirewall \u53ca VPN \u76f4\u63a5\u7528\u9019\u53f0 AP \u67b6\u8d77\u4f86 \u4e00\u4f86\u8a2d\u5b9a\u65b9\u4fbf, \u4e8c\u4f86\u7701\u96fb\u4e5f\u7701\u7a7a\u9593, \u4e5f\u6c92\u6709\u566a\u97f3\u7684\u554f\u984c \u8dd1\u4e86\u4e00\u9663\u5b50\u4e4b\u5f8c, \u767c\u73fe\u9019\u500b\u7248\u672c\u7684 firmware \u6709\u4e9b\u5c0f\u554f\u984c \u7b2c\u4e00, \u7121\u7dda\u9694\u4e00\u9663\u5b50\u5c31\u6703\u639b\u6389, \u6703\u627e\u4e0d\u5230 AP, \u4f46\u5176\u5b83\u529f\u80fd\u90fd\u6b63\u5e38\u904b\u4f5c \u7b2c\u4e8c, \u5f9e\u5927\u9678\u900f\u904e\u6b64 VPN \u9023\u56de\u4f86\u6642, DNS \u7684\u67e5\u8a62\u770b\u8d77\u4f86\u602a\u602a\u7684, \u6240\u4ee5, MSN \u8ddfFB\u6703\u5f88\u4e0d\u597d\u9023 \u6240\u4ee5\u4e00\u76f4\u5728\u770b\u9019\u500b\u7248\u672c, \u4f46\u5b98\u7db2\u4e00\u76f4\u6c92\u6709\u66f4\u65b0\u7248\u672c \u5f8c\u4f86\u767c\u73fe\u4e00\u4e9b\u6e2c\u8a66\u7248\u672c\u5176\u5be6\u4e00\u76f4\u5728\u653e\u51fa\u4f86, \u4f46\u4e0d\u6703 list \u5728\u5b98\u7db2\u4e0a: ftp:\/\/ftp.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/juan.tw\/?p=1367\" \/>\r\n","views":3862,"_links":{"self":[{"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/posts\/1367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/juan.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1367"}],"version-history":[{"count":16,"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/posts\/1367\/revisions"}],"predecessor-version":[{"id":1454,"href":"https:\/\/juan.tw\/index.php?rest_route=\/wp\/v2\/posts\/1367\/revisions\/1454"}],"wp:attachment":[{"href":"https:\/\/juan.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/juan.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/juan.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}