{"id":210,"date":"2021-01-02T18:52:22","date_gmt":"2021-01-02T10:52:22","guid":{"rendered":"https:\/\/830519.xyz\/?p=210"},"modified":"2026-01-21T18:40:20","modified_gmt":"2026-01-21T10:40:20","slug":"openwrt","status":"publish","type":"post","link":"https:\/\/830519.xyz\/?p=210","title":{"rendered":"OpenWrt"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>uname -m\nopkg print-architecture<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Aria2<\/strong>\nYAAW\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/binux\/yaaw\" data-type=\"URL\" data-id=\"https:\/\/github.com\/binux\/yaaw\" target=\"_blank\">https:\/\/github.com\/binux\/yaaw<\/a>\nTracker\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/XIU2\/TrackersListCollection\" data-type=\"URL\" data-id=\"https:\/\/github.com\/XIU2\/TrackersListCollection\" target=\"_blank\">https:\/\/github.com\/XIU2\/TrackersListCollection<\/a><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Rclone<\/strong>\nrcone config\nrclone mount GD: \/mnt\/GD --allow-other --allow-non-empty --vfs-cache-mode writes &amp;<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\u7f51\u7edc\u5171\u4eab<\/strong>\nsmbpasswd -a root<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>#\u7f16\u8bd1OpenWrt\u56fa\u4ef6<\/strong>\n\n#SSH\u767b\u9646LXC\u5bb9\u5668\u7684Debian11\u6162\n\u9009\u9879-\u7b7e\u540d-\u5d4c\u5957\u2713\n\napt install -y sudo\n1.\u68c0\u67e5\u7cfb\u7edf\u7248\u672c\uff1a\u786e\u8ba4\u4f60\u7684 Debian \u7cfb\u7edf\u7248\u672c\u662f\u5426\u4e3a bullseye\uff08Debian 11\uff09\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\uff1a\ncat \/etc\/os-release\n\u5982\u679c\u4f60\u4e0d\u662f\u7528\u7684 bullseye\uff0c\u5374\u914d\u7f6e\u4e86 bullseye \u7684\u6e90\uff0c\u5c31\u4f1a\u5bfc\u81f4\u627e\u4e0d\u5230\u8f6f\u4ef6\u5305\u3002\n2. \u66f4\u65b0\u8f6f\u4ef6\u6e90\u5217\u8868\uff1a\u5148\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u66f4\u65b0\u672c\u5730\u7684\u8f6f\u4ef6\u5305\u7d22\u5f15\uff0c\u6709\u65f6\u5019\u662f\u672c\u5730\u7f13\u5b58\u95ee\u9898\uff1a\nsudo apt-get update\n3. \u4fee\u590d\u4f9d\u8d56\uff08\u53ef\u9009\uff09\uff1a\u5982\u679c\u4ecd\u7136\u62a5\u9519\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4fee\u590d\u7f3a\u5931\u7684\u5305\uff1a\nsudo apt-get install -f\n\n#\u8bbe\u7f6eRoot\u767b\u9646\nnano \/etc\/ssh\/sshd_config\n# \u5728 sshd_config \u6587\u4ef6\u91cc\u7684 \u201cAuthentication\u201d \u90e8\u5206\u52a0\u4e0a\u4ee5\u4e0b\u5185\u5bb9\nPermitRootLogin yes\n# \u5b8c\u6210\u4ee5\u540e\u9000\u51fa vim \u5e76\u4fdd\u5b58\npasswd root # \u76f4\u63a5\u4fee\u6539 Root \u7528\u6237\u7684\u5bc6\u7801\nservice sshd restart # \u91cd\u542f ssh \u670d\u52a1\u4ee5\u5e94\u7528\u66f4\u6539\n\n#\u521b\u5efa\u4e00\u4e2a\u666e\u901a\u7528\u6237\uff08\u5982\u6709\u5fc5\u8981\uff09\u5e76\u8d4b\u4e88 sudo \u6743\u9650\uff1a\nsudo adduser \u4f60\u7684\u7528\u6237\u540d\nsudo usermod -aG sudo \u4f60\u7684\u7528\u6237\u540d\n\n#\u521b\u5efa\u975eroot\u7528\u6237\u548c\u8bbe\u7f6e\u5bc6\u7801\nuseradd -r -m -s \/bin\/bash gxx\npasswd gxx\n#\u628a\u65b0\u7528\u6237\u6dfb\u52a0\u5230sudo\u7684\u914d\u7f6e\u6587\u4ef6\nvi \/etc\/sudoers\n#\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e00\u884cgxx     ALL=(ALL:ALL) ALL\n#\/etc\/sudoers\u4e3a\u53ea\u8bfb\u6587\u4ef6\uff0c\u4fdd\u5b58\u9000\u51fa\u8f93\u5165\n:wq!\n#\u5207\u6362\u5230\u975eroot\u7528\u6237\uff0c\u5e76\u5207\u6362\u5230\/home\/gxx\u76ee\u5f55\nsu gxx\ncd ~\n#\u7f16\u8bd1Lede\/OpenWrt\u56fa\u4ef6\u6240\u9700\u65f6\u95f4\u8f83\u957f\uff0c\u53ef\u4f7f\u7528Screen\u547d\u4ee4\u4fdd\u6301\u4f1a\u8bdd\nsudo apt install screen\nscript \/dev\/null\n#\u5f00\u59cb\u7f16\u8bd1OpenWrt\u56fa\u4ef6\uff01\nGitHub\uff1a<a href=\"https:\/\/github.com\/coolsnowwolf\/lede\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/coolsnowwolf\/lede<\/a>\n\n\\lede\\feeds.conf.default\nsrc-git ssrp https:\/\/github.com\/fw876\/helloworld.git\n#\u6539\u9ed8\u8ba4IP\u5730\u5740\n\/home\/gxx\/lede\/package\/base-files\/files\/bin\/config_generate\n#\u56fa\u4ef6\u6587\u4ef6\u5939\n\/home\/gxx\/lede\/bin\/targets\n#\u6539Lan\u53e3IP\nvi \/etc\/config\/network\n\nqm importdisk 101 \/var\/lib\/vz\/template\/iso\/openwrt-x86-64-generic-squashfs-combined.img local\nqm importdisk 103 \/root\/openwrt-x86-64-generic-squashfs-combined-efi.img local\n\n<strong>#\u4e8c\u6b21\u7f16\u8bd1<\/strong>\n# \u6e05\u7406\u65e7\u7684\u7f16\u8bd1\u6587\u4ef6\nmake clean\n# \u6216\u8005\u53ea\u6e05\u7406\u7279\u5b9a\u5305\nmake package\/network\/services\/hostapd\/clean\n\n#\u6309\u9700\u6e05\u9664\u6587\u4ef6\uff08\u975e\u5fc5\u9009\uff09\nmake clean       #\u6e05\u9664bin\u76ee\u5f55\nmake dirclean    #\u6e05\u9664\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u53ca\u5de5\u5177\u94fe\u76ee\u5f55\nmake distclean   #\u6e05\u9664\u76f8\u5173\u6587\u4ef6\uff0c\u5305\u62ec\u4e0b\u8f7d\u7684\u8f6f\u4ef6\u5305\u3001\u914d\u7f6e\u6587\u4ef6\u3001feed\u5185\u5bb9\u7b49\n#\u5f00\u59cb\u4e8c\u6b21\u7f16\u8bd1\ncd lede\ngit pull #\u540c\u6b65\u66f4\u65b0\u6e90\u7801\n.\/scripts\/feeds update -a &amp;&amp; .\/scripts\/feeds install -a #\u66f4\u65b0Feeds\nrm -rf .\/tmp &amp;&amp; rm -rf .config #\u6e05\u9664\u7f16\u8bd1\u914d\u7f6e\u548c\u7f13\u5b58\nmake menuconfig     #\u91cd\u590d\u7f16\u8bd1\u4e0a\u4e00\u6b21\u56fa\u4ef6\u53ef\u4f7f\u7528 make defconfig\nmake -j8 download   #\u4e0b\u8f7ddl\u5e93\n#\u6392\u5217dl\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\uff0c\u663e\u793a\u5c0f\u4e8e\u7b49\u4e8e1K\u7684\u6587\u4ef6\u8bf4\u660e\u4e0b\u8f7d\u7684\u6587\u4ef6\u4e0d\u6b63\u786e\nls ~\/lede\/dl\/ -lSrh | less\nmake -j$(($(nproc) + 1)) V=s\n\n<strong>#\u5e38\u89c1\u95ee\u9898<\/strong>\nXXX is not in the sudoers file. This incident will be reported.\n\u7f16\u8f91sudoers\u6587\u4ef6\nvi \/etc\/sudoers\n\u6dfb\u52a0\u4e00\u884cusr ALL=(ALL) ALL\n\nsudo\u65f6\u51fa\u73b0unable to resolve host\nvi \/etc\/hosts\n127.0.0.1 localhost\n\nCannot open your terminal \u2018\/dev\/pts\/0\u2019 \u2013 please check.\nscript \/dev\/null\n\nuseradd usr\npasswd ***\nmkdir \/home\/usr\nsudo chown usr \/home\/usr<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>#\u6302\u8f7d\u5206\u533a<\/strong>\nopkg update\nopkg install cfdisk\n\nlsblk\n\ncfdisk \/dev\/sdb    #\u78c1\u76d8\u5206\u533a\nfdisk \/dev\/sdc      #\u78c1\u76d8\u5206\u533a\nmkfs.ext4 \/dev\/sdb1      #\u5206\u533a\u683c\u5f0f\u5316\nmkfs -t ext4 \/dev\/sda1   #\u5206\u533a\u683c\u5f0f\u5316\nmkdir -p \/mnt\/sdb1        #\u65b0\u5efa\u76ee\u5f55\n\ndf -h\n\numount \/dev\/sdb1\nmount -t ext4 \/dev\/sdb1 \/mnt\/sdb1    #\u6302\u8f7d\u5206\u533a\n\nless \/etc\/fstab\uff08cat \/etc\/fstab\uff09\nlsblk -f\ndumpe2fs -h \/dev\/sda1\nblkid\nblkid \/dev\/vda1\necho \/dev\/sda1 \/mnt\/sda1 ext4 defaults 1 2 &gt;&gt; \/etc\/fstab    #\u786c\u76d8\u6302\u8f7d\u4fe1\u606f\u5199\u5165 \/etc\/fstab\necho \/dev\/sdb1 \/mnt\/sdb1 ext4 defaults 0 0 &gt;&gt; \/etc\/fstab    #\u786c\u76d8\u6302\u8f7d\u4fe1\u606f\u5199\u5165 \/etc\/fstab\n\u5916\u90e8\u8bbe\u5907\u5728\u63d2\u5165\u65f6\u6302\u8f7d\uff0c\u5728\u672a\u63d2\u5165\u65f6\u5ffd\u7565\u3002\u8fd9\u9700\u8981nofail\u9009\u9879\uff0c\n\u53ef\u4ee5\u5728\u542f\u52a8\u65f6\u82e5\u8bbe\u5907\u4e0d\u5b58\u5728\u76f4\u63a5\u5ffd\u7565\u5b83\u800c\u4e0d\u62a5\u9519.\n\/dev\/sdb1 \/mnt\/sdb1 ext4 defaults,nofail 0 2\n#\u7b2c\u4e00\u5b57\u6bb5:\u5206\u533a\u8bbe\u5907\u6587\u4ef6\u540d\u6216UUID(\u786c\u76d8\u901a\u7528\u552f\u4e00\u8bc6\u522b\u7801 \u53ef\u901a\u8fc7dumpe2fs \u5206\u533a\u8bbe\u5907\u6587\u4ef6\u540d \u67e5\u770b)\n#\u7b2c\u4e8c\u5b57\u6bb5:\u6302\u8f7d\u70b9\n#\u7b2c\u4e09\u5b57\u6bb5:\u6587\u4ef6\u7cfb\u7edf\u540d\u79f0\n#\u7b2c\u56db\u5b57\u6bb5:\u6302\u8f7d\u53c2\u6570\n#\u7b2c\u4e94\u5b57\u6bb5:\u6307\u5b9a\u5206\u533a\u662f\u5426\u88abdump\u5907\u4efd,0\u4ee3\u8868\u4e0d\u5907\u4efd,1\u4ee3\u8868\u6bcf\u5929\u5907\u4efd,2\u4ee3\u8868\u4e0d\u5b9a\u671f\u5907\u4efd\n#\u7b2c\u516d\u5b57\u6bb5:\u6307\u5b9a\u5206\u533a\u662f\u5426\u88abfsck\u68c0\u6d4b,0\u4ee3\u8868\u4e0d\u68c0\u6d4b,\u5176\u5b83\u6570\u5b57\u4ee3\u8868\u68c0\u6d4b\u7684\u4f18\u5148\u7ea7,1\u7684\u4f18\u5148\u7ea7\u6bd42\u9ad8\n\ncd \/mnt\/sdb1\nmkdir DownLoad TrSet ArSet\nchmod 755 DownLoad\/ TrSet\/ ArSet\/\n\n\/mnt\/sdb1\/TrSet\n\/mnt\/sdb1\/ArSet\n\/mnt\/sdb1\/DownLoad<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>#\u5728\u7ebf\u7f16\u8bd1\/AutoBuild-OpenWrt<\/strong>\n\nFork\u6e90\u7801\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/esirplayground\/AutoBuild-OpenWrt\" target=\"_blank\">https:\/\/github.com\/esirplayground\/AutoBuild-OpenWrt<\/a>\n\n\u5728Actions\u6807\u7b7e\u680f\u4e0b\u70b9\u51fb\u7eff\u8272\u957f\u6761\u6309\u94ae\uff0c\u6253\u5f00\u5de5\u4f5c\u6d41.\n\n\u7f16\u8f91customize.sh\u6587\u4ef6\uff0c\u4fee\u6539192.168.5.1\u4e3a\u81ea\u5df1\u8def\u7531\u5668\u7684\u5730\u5740.\n\n\u5728\u672c\u5730\u7f16\u8bd1\u73af\u5883\u6267\u884c\u4e0b\u9762\u4e00\u884c\u4ee3\u7801\uff0c\u5f97\u5230\/lede\/diffconfig\u6587\u4ef6\u3002\n.\/scripts\/diffconfig.sh &gt; diffconfig\n\u7f16\u8f91x86_64.config\u6587\u4ef6\uff0c\u7528diffconfig\u6587\u4ef6\u7684\u5185\u5bb9\u5168\u90e8\u66ff\u6362\u3002\n\n\u7f16\u8f91.github\/workflows\/Build_OP_x86_64.yml\u6587\u4ef6\uff0c\u53bb\u6389\u4ee3\u7801\u4e2d\u7684\u4e09\u4e2a#\u53f7\uff0c\u4fdd\u5b58\u6587\u4ef6\u5373\u53ef\u5f00\u59cb\u4f7f\u7528GitHub Actions\u81ea\u52a8\u7f16\u8bd1OpenWrt\u56fa\u4ef6\u4e86\uff01\n  #push:\n  #  branches: \n  #    - master\n\u6539\u4e3a\n  push:\n    branches: \n      - master<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>#\u5b9a\u65f6\u66f4\u6362\u8282\u70b9<\/strong>\n* * * * * \u9700\u8981\u6267\u884c\u7684\u547d\u4ee4\n- - - - -\n| | | | |\n| | | | ----- \u4e00\u661f\u671f\u4e2d\u7684\u7b2c\u51e0\u5929 (0 - 6) (\u5176\u4e2d0\u8868\u793a\u661f\u671f\u65e5)\n| | | ------- \u6708\u4efd (1 - 12)\n| | --------- \u4e00\u4e2a\u6708\u4e2d\u7684\u7b2c\u51e0\u5929 (1 - 31)\n| ----------- \u4e00\u5929\u4e2d\u7684\u7b2c\u51e0\u5c0f\u65f6 (0 - 23)\n------------- \u4e00\u5c0f\u65f6\u4e2d\u7684\u7b2c\u51e0\u5206\u949f (0 - 59)\n\n\u914d\u7f6ecron\u5b9a\u65f6\u4efb\u52a1\ncron -e\n\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u6253\u5f00 \/etc\/crontabs\/root \u6587\u4ef6\u3002\u540e\u7eed\u7f16\u8f91\u7684\u4e5f\u5c31\u662f\u8fd9\u4e2aroot\u6587\u4ef6\u3002\n\ncrontab -l\n\u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u5217\u4e3e\u51fa\u5f53\u524d\u6240\u6709\u5df2\u7ecf\u914d\u7f6e\u7684\u5b9a\u65f6\u4efb\u52a1\n\nlogread -e cron\n\u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bcron\u6267\u884c\u7684\u8bb0\u5f55\u3002\n\n\u5b9a\u65f6\u66f4\u6362\u8282\u70b9\n0 6 * * * sed -i \"s|global_server 'cfg084a8f'|global_server 'cfg064a8f'|g\" \/etc\/config\/shadowsocksr &amp;&amp; \/etc\/init.d\/shadowsocksr restart\n30 20 * * * sed -i \"s|global_server 'cfg064a8f'|global_server 'cfg084a8f'|g\" \/etc\/config\/shadowsocksr &amp;&amp; \/etc\/init.d\/shadowsocksr restart\n\nsed -i 's\/\u539f\u5b57\u7b26\u4e32\/\u66ff\u6362\u5b57\u7b26\u4e32\/' filename\nsed -i 's\/\u539f\u5b57\u7b26\u4e32\/\u66ff\u6362\u5b57\u7b26\u4e32\/g' filename\n\u8bf4\u660e\uff1a\ns\/\/\/: \u4ece\u6bcf\u4e00\u884c\u7684\u884c\u9996\u5f00\u59cb\uff0c\u5339\u914d\u5230\u7b2c\u4e00\u4e2a\u7b26\u5408\u7684\u5b57\u6bb5\uff0c\u5c31\u4f1a\u8df3\u5230\u4e0b\u4e00\u884c\uff08\u540c\u4e00\u884c\u4e2d\u53ef\u80fd\u6709\u591a\u4e2a\u5339\u914d\u5b57\u6bb5\uff09\ns\/\/\/g\uff1a\u8868\u793a\u5168\u5c40\u66ff\u6362\uff0c\u5339\u914d\u6bcf\u4e00\u884c\u4ece\u884c\u9996\u5230\u884c\u5c3e\u7684\u6240\u6709\u5b57\u7b26<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>#\u81ea\u5b9a\u4e49DNS\u548c\u7f51\u5173<\/strong>\nvim \/etc\/config\/dhcp\n\n# config mac 'op'\n#         option mac ''\n#         option tag 'hello'\n\nconfig host\n        option name 'Moto-Z'\n        option ip ''\n\toption mac '88:79:7e:00:8e:26'\n\toption tag 'hello'\n\nconfig host\n        option name 'PC'\n        option ip ''\n\toption mac 'F4:B5:20:28:6A:0C'\n\toption tag 'hello'\n\nconfig host\n        option name 'Moto-Z4'\n        option ip ''\n\toption mac '8A:24:CF:43:0E:77'\n\toption tag 'hello'\n\nconfig host\n        option name 'Moto-Z3'\n        option ip ''\n\toption mac '30:4b:07:5b:d0:b7'\n\toption tag 'hello'\n\nconfig host\n        option name 'Moto-Z2'\n        option ip ''\n\toption mac '88:b4:a6:d4:56:44'\n\toption tag 'hello'\n\nconfig tag 'hello'\n\tlist dhcp_option '3,192.168.0.3'\n\tlist dhcp_option '6,192.168.0.3'\n\toption force '1'\n\n\/etc\/init.d\/dnsmasq restart<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\u8f6f\u8def\u7531\u9700\u8981 Turbo ACC \u7f51\u7edc\u52a0\u901f \u5417\uff1f<\/strong>\n\u6211\u7684\u7406\u89e3\u662fTurbo ACC \u7f51\u7edc\u52a0\u901f\u662f\u4e00\u4e2a\u96c6\u6210\u7684\u7f51\u7edc\u52a0\u901f\u63a7\u5236\u754c\u9762ipk\u5e94\u7528\uff0c\u53ea\u662f\u4e3a\u4e86\u65b9\u4fbf\u5f00\u5173\u5305\u542b\u4ee5\u4e0b\u51e0\u79cd\u52a0\u901f\uff1a\n1.Flow Offloading \u8f6c\u53d1\u52a0\u901f ,\u6765\u81ea\u9ad8\u901a\u5f00\u6e90\u7684 Shortcut FE \u8f6c\u53d1\u52a0\u901f\u5f15\u64ce (Fast Path) \uff0c\u4e00\u79cd\u7eaf\u8f6f\u4ef6\u7b97\u6cd5\u4e0a\u7684\u4f18\u5316\u3002\u53ef\u4ee5\u9488\u5bf9openwrt\u6240\u6709\u578b\u53f7\u7684\u8def\u7531\u5668\u3002\n2.HWNAT\u52a0\u901f\u3002\u4e00\u822c\u53ea\u9488\u5bf9MT762x\u82af\u7247\u578b\u53f7\u7684\u8def\u7531\u5668\u53ef\u4ee5\u5f00\u542f\u3002\u6bd4\u5982\u5e38\u89c1\u7684NEWIFI D2,K2P\u7b49\u3002\u4f46\u76ee\u524d\u9488\u5bf919.07\u7cfb\u5217\u4e0d\u662f\u5f88\u5b8c\u5584\uff0c\u4f1a\u9020\u6210\u8def\u7531\u5668\u5d29\u6e83\uff0c\u4e0d\u662fMT762x\u82af\u7247\u7684\u8def\u7531\u5668\u4f60\u5f00\u542f\u4e5f\u6ca1\u6709\u4f5c\u7528.\n3. BBR\u52a0\u901f\u3002\u662f\u8c37\u6b4c\u5f04\u51fa\u6765\u7684\u4e00\u4e2a\u5185\u6838\u7ea7\u522b\u7684tcp\u534f\u8bae\u7684\u4f18\u5316\uff0c\u53ef\u4ee5\u63d0\u9ad8\u7f51\u7edc\u8fde\u63a5\u7684\u80fd\u529b(\u4e89\u62a2\u5e26\u5bbd\u80fd\u529b)\uff0c\u8fd9\u662flinux\u5185\u68384.9\u4ee5\u540e\u90fd\u53ef\u4ee5\u7528\u7684\u4e00\u4e2a\u4e1c\u897f\uff0c\u5185\u6838\u5927\u4e8e4.9\u7684\u6240\u6709\u578b\u53f7\u8def\u7531\u5668\u90fd\u80fd\u7528\n4.DNS \u52a0\u901f\u3002\u4e3b\u8981\u662f\u5229\u7528 pdnsd \u505a\u672c\u5730\u7f13\u5b58\uff0c\u63d0\u9ad8DNS\u89e3\u6790\u901f\u5ea6\uff0c\u6240\u6709\u578b\u53f7\u8def\u7531\u5668\u90fd\u80fd\u7528\n\n\u5728\u8fd9\u4e2a\u63a7\u5236\u754c\u9762\u91cc\u8fd8\u53ef\u4ee5\u770bFULLCONE NAT\u662f\u5426\u542f\u7528\u7684\uff0c\u5b83\u7684\u542f\u7528\u548c\u5173\u95ed\u4e0d\u5728Turbo ACC \u7f51\u7edc\u52a0\u901f \u91cc\uff0c\u800c\u5728\u201c\u7f51\u7edc\u201d-&gt;\u201c\u9632\u706b\u5899\u201d\u91cc\u53ef\u4ee5\u6765\u63a7\u5236\u542f\u7528\u3002\u5b83\u4e3b\u8981\u662f\u9488\u5bf9iptables\u7684\u4e00\u4e2a\u6539\u8fdb\u5427\uff0c\u4e0d\u8fc7\u539f\u4f5c\u8005\u7684github\u91cc\u4e5f\u8bf4\u4e86\uff0c\u53ea\u9488\u5bf9\u51e0\u4e2alinux\u5185\u6838\u7248\u672c\u505a\u8fc7\u6d4b\u8bd5\uff0c\u6709\u4e9blinux\u5185\u6838\u7248\u672c\u4e0a\u4f7f\u7528\u662f\u6709\u95ee\u9898\u7684<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/830519.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210"}],"version-history":[{"count":15,"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":832,"href":"https:\/\/830519.xyz\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions\/832"}],"wp:attachment":[{"href":"https:\/\/830519.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/830519.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/830519.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}