{"id":8031,"date":"2021-12-29T10:30:17","date_gmt":"2021-12-29T02:30:17","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=8031"},"modified":"2024-02-24T21:20:43","modified_gmt":"2024-02-24T13:20:43","slug":"openwrt%e6%97%81%e8%b7%af%e7%94%b1%e8%ae%be%e7%bd%ae%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=8031","title":{"rendered":"OpenWrt\u65c1\u8def\u7531\u8bbe\u7f6e\u6559\u7a0b"},"content":{"rendered":"<p style=\"text-align: justify;\">\u5728\u4e3b\u8def\u7531\u548c\u65c1\u8def\u7531\u7684\u642d\u914d\u4e2d\uff0c\u4e3b\u8def\u7531\u8d1f\u8d23\u4e0a\u7f51\u548cNAT\u8f6c\u53d1\u7684\uff0c\u65c1\u8def\u7531\u8d77\u5230\u7684\u662f\u7f51\u5173\u7684\u4f5c\u7528\uff0c\u53ef\u4ee5\u7528\u6765\u5206\u6d41\u6570\u636e\u548c\u6269\u5c55\u63d2\u4ef6\u3002\u4e25\u683c\u6765\u8bf4\u5e94\u8be5\u662f\u65c1\u8def\u7f51\u5173\u6216\u7f51\u5173\u670d\u52a1\u5668\uff0c\u5b83\u7684\u6838\u5fc3\u662f\u7f51\u5173\u800c\u4e0d\u662f\u8def\u7531\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u4f7f\u7528pfSense\u6216OPNsense\u9632\u706b\u5899\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u5982\u679c\u6709\u8bbf\u95ee\u5916\u7f51\u7b49\u9700\u6c42\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eOpenWrt\u4f5c\u4e3a\u65c1\u8def\u7531\u6765\u5b9e\u73b0\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100144.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8033\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100144.jpg\" alt=\"\" width=\"950\" height=\"422\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100144.jpg 950w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100144-300x133.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100144-768x341.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100144-500x222.jpg 500w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528OpenWrt\u4f5c\u4e3a\u65c1\u8def\u7531\uff0c\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u65c1\u8def\u7531\u5fc5\u987b\u4e0e\u4e3b\u8def\u7531\u5728\u540c\u4e00\u7f51\u6bb5\uff0c\u65c1\u8def\u7531\u7684LAN\u63a5\u53e3\u63a5\u5165\u4e3b\u8def\u7531\u7684LAN\u7f51\u7edc\u3002<\/li>\n<li>\u65c1\u8def\u7531\u7684\u7f51\u5173\u8bbe\u7f6e\u4e3a\u9632\u706b\u5899\u7684LAN\u63a5\u53e3\u5730\u5740<\/li>\n<li>\u9632\u706b\u5899\u5f00\u542fIP\u52a8\u6001\u4f2a\u88c5<\/li>\n<li>DHCP\u8bbe\u5728\u4e3b\u8def\u7531\u4e0a\uff0c\u9700\u8981\u4f7f\u7528\u65c1\u8def\u7f51\u5173\u7684\u8bbe\u5907\u624b\u52a8\u6307\u5b9a\u7f51\u5173\u4e3a\u65c1\u8def\u7531\u7684LAN\u63a5\u53e3\u5730\u5740\u3002\u5982\u679c\u9700\u8981\u65c1\u8def\u7531\u5b8c\u5168\u63a5\u7ba1\uff0c\u5219DHCP\u7684\u9ed8\u8ba4\u7f51\u5173\u8bbe\u4e3a\u65c1\u8def\u7531LAN\u63a5\u53e3\u5730\u5740\u5373\u53ef\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u4e0b\u9762\u4ecb\u7ecd\u5728OpenWrt\u4e0a\u7684\u8be6\u7ec6\u8bbe\u7f6e\u6b65\u9aa4\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u6dfb\u52a0LAN\u63a5\u53e3\u7f51\u5173<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230\u7f51\u7edc&gt;\u63a5\u53e3&gt;LAN\uff0c\u6dfb\u52a0LAN\u63a5\u53e3\u7f51\u5173\u548cDNS\u3002IPv4\u7f51\u5173\u586b\u5199\u4e3b\u8def\u7531\u7684LAN\u63a5\u53e3\u5730\u5740\uff0cDNS\u586b\u5199\u516c\u5171DNS\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100843.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8034\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100843.jpg\" alt=\"\" width=\"835\" height=\"850\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100843.jpg 835w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100843-295x300.jpg 295w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-100843-768x782.jpg 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u7981\u7528LAN\u63a5\u53e3DHCP<\/h1>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101650.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8036\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101650.jpg\" alt=\"\" width=\"933\" height=\"201\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101650.jpg 933w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101650-300x65.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101650-768x165.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101650-500x108.jpg 500w\" sizes=\"auto, (max-width: 933px) 100vw, 933px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u5220\u9664WAN\u63a5\u53e3<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230\u7f51\u7edc&gt;\u63a5\u53e3\uff0c\u5220\u9664WAN\u63a5\u53e3\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101416.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8035\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101416.jpg\" alt=\"\" width=\"1385\" height=\"599\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101416.jpg 1385w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101416-300x130.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101416-1024x443.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101416-768x332.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101416-500x216.jpg 500w\" sizes=\"auto, (max-width: 1385px) 100vw, 1385px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u4fee\u6539\u9632\u706b\u5899\u8bbe\u7f6e<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230\u7f51\u7edc&gt;\u9632\u706b\u5899\uff0c\u53d6\u6d88\u9009\u4e2d\u542f\u7528SYN-flood \u9632\u5fa1\uff0c\u9009\u4e2dLAN\u63a5\u53e3\u7684IP\u52a8\u6001\u4f2a\u88c5\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101956.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8037\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101956.jpg\" alt=\"\" width=\"1369\" height=\"715\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101956.jpg 1369w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101956-300x157.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101956-1024x535.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101956-768x401.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-101956-500x261.jpg 500w\" sizes=\"auto, (max-width: 1369px) 100vw, 1369px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u81f3\u6b64\uff0cOperWrt\u65c1\u8def\u7531\u7684\u8bbe\u7f6e\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<p style=\"text-align: justify;\">\u5ba2\u6237\u7aef\u5982\u679c\u8981\u4f7f\u7528OpenWrt\u65c1\u8def\u7531\u4e0a\u7f51\uff0c\u5fc5\u987b\u5728\u5ba2\u6237\u7aef\u8bbe\u5907\u4e0a\u624b\u52a8\u8bbe\u5b9aIP\u5730\u5740\uff0c\u5e76\u6307\u5b9a\u7f51\u5173\u4e3aOpenWrt\u7684\u63a5\u53e3\u5730\u5740\u3002\u5982\u679c\u60f3\u8ba9\u65c1\u8def\u7531\u5b8c\u5168\u63a5\u7ba1\uff0c\u53ef\u4ee5\u5728\u4e3b\u8def\u7531\u7684DHCP\u8bbe\u7f6e\u4e2d\uff0c\u624b\u52a8\u6307\u5b9a\u7f51\u5173\u4e3aOpenWrt\u7684\u63a5\u53e3\u5730\u5740\uff0c\u5ba2\u6237\u7aef\u5c31\u53ef\u4ee5\u81ea\u52a8\u83b7\u53d6\u65c1\u8def\u7531\u7f51\u5173\u5730\u5740\u3002\u4e0b\u56fe\u6240\u793a\u4e3apfSense\u4e2dDHCP\u7684\u65c1\u8def\u7531\u7f51\u5173\u8bbe\u7f6e\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-102438.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8038\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-102438.jpg\" alt=\"\" width=\"1142\" height=\"292\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-102438.jpg 1142w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-102438-300x77.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-102438-1024x262.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-102438-768x196.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/12\/Jietu20211229-102438-500x128.jpg 500w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e3b\u8def\u7531\u548c\u65c1\u8def\u7531\u7684\u642d\u914d\u4e2d\uff0c\u4e3b\u8def\u7531\u8d1f\u8d23\u4e0a\u7f51\u548cNAT\u8f6c\u53d1\u7684\uff0c\u65c1\u8def\u7531\u8d77\u5230\u7684\u662f\u7f51\u5173\u7684\u4f5c\u7528 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=8031\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[415],"tags":[434],"class_list":["post-8031","post","type-post","status-publish","format-standard","hentry","category-ipfire","tag-434"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/8031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8031"}],"version-history":[{"count":1,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/8031\/revisions"}],"predecessor-version":[{"id":11963,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/8031\/revisions\/11963"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}