{"id":707,"date":"2024-07-26T11:39:37","date_gmt":"2024-07-26T03:39:37","guid":{"rendered":"https:\/\/www.jthxfzya.tk\/?p=707"},"modified":"2024-07-26T11:39:37","modified_gmt":"2024-07-26T03:39:37","slug":"openwrt-%e9%87%8d%e5%88%b7%e5%9b%ba%e4%bb%b6-%e9%85%8d%e7%bd%ae%e5%a4%87%e4%bb%bd%e8%bf%98%e5%8e%9f%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.jthxfzya.tk\/?p=707","title":{"rendered":"OpenWrt \u91cd\u5237\u56fa\u4ef6 \u914d\u7f6e\u5907\u4efd\u8fd8\u539f\u6307\u5357"},"content":{"rendered":"\n<p>\u5237\u673a\u662f\u8f6f\u8def\u7531\u5e38\u89c1\u52a8\u4f5c\uff0c\u4e3a\u4e86\u907f\u514d\u91cd\u65b0\u914d\u7f6e\u7684\u9ebb\u70e6\uff0c\u901a\u5e38\u4f1a\u5bf9\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u5907\u4efd\u53ca\u6062\u590d\u3002\u672c\u6587\u68b3\u7406\u4e86HomeLede\u9700\u8981\u5907\u4efd\u7684\u5e38\u89c1\u914d\u7f6e\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1 SSH\u79d8\u94a5\u53ca\u8bbe\u7f6e(\u7528\u4e8e\u8fdc\u7a0b\u7ef4\u62a4)<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/xiaoqingfengATGH\/HomeLede\/wiki\/HomeLede-%E9%87%8D%E5%88%B7%E5%9B%BA%E4%BB%B6-%E9%85%8D%E7%BD%AE%E5%A4%87%E4%BB%BD%E8%BF%98%E5%8E%9F%E6%8C%87%E5%8D%97#1-ssh%E7%A7%98%E9%92%A5%E5%8F%8A%E8%AE%BE%E7%BD%AE%E7%94%A8%E4%BA%8E%E8%BF%9C%E7%A8%8B%E7%BB%B4%E6%8A%A4\"><\/a><\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u7ecf\u5e38\u9700\u8981\u8fdc\u7a0b\u8fde\u56de\u8def\u7531\u5668\uff0c\u63a8\u8350\u4f7f\u7528SSH\u3002SSH\u4e0d\u4ec5\u4f7f\u7528\u7b80\u4fbf\uff0c\u8fd8\u975e\u5e38\u5b89\u5168\uff0c\u5e76\u4e14\u53ef\u4ee5\u5b8c\u6210\u5f88\u591a\u989d\u5916\u7684\u5de5\u4f5c\uff08\u5982\u6587\u4ef6\u4f20\u8f93\uff0c\u7aef\u53e3\u8f6c\u53d1\u7b49\u7b49\uff09\u3002 HomeLede\u7684SSH\u7531dropbear\u63d0\u4f9b\uff0c\u9700\u8981\u5907\u4efd\u7684\u6587\u4ef6\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dropbear\u7684\u8fdc\u7a0b\u8fde\u63a5\u79d8\u94a5\n<ul class=\"wp-block-list\">\n<li>\/etc\/dropbear\/authorized_keys<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Dropbear\u7684\u8bbe\u7f6e\uff0c\u5305\u542b\u7aef\u53e3\uff0c\u8fde\u63a5\u65b9\u5f0f\u7b49\u7b49\n<ul class=\"wp-block-list\">\n<li>\/etc\/config\/dropbear<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2 DDNS\u8bbe\u7f6e\uff08\u52a8\u6001\u57df\u540d\uff09<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/xiaoqingfengATGH\/HomeLede\/wiki\/HomeLede-%E9%87%8D%E5%88%B7%E5%9B%BA%E4%BB%B6-%E9%85%8D%E7%BD%AE%E5%A4%87%E4%BB%BD%E8%BF%98%E5%8E%9F%E6%8C%87%E5%8D%97#2-ddns%E8%AE%BE%E7%BD%AE%E5%8A%A8%E6%80%81%E5%9F%9F%E5%90%8D\"><\/a><\/p>\n\n\n\n<p>\u8fde\u56de\u5bb6\u5ead\u7f51\u7edc\u9700\u8981\u77e5\u6653\u8def\u7531\u5668\u7684\u516c\u7f51IP\uff0c\u4f46\u662f\u7edd\u5927\u90e8\u5206\u7684\u516c\u7f51IP\u4f1a\u52a8\u6001\u53d8\u5316\uff0c\u56e0\u6b64\u5927\u5bb6\u4f1a\u4f7f\u7528DDNS\uff0c\u4f7f\u7528\u57df\u540d\u4ee3\u66ffIP\uff0c\u7531\u8f6f\u4ef6\u5b9a\u671f\u5c06\u8def\u7531\u516c\u7f51IP\u89e3\u6790\u5230\u57df\u540d\u4e0a\u53bb\u3002 \u9700\u8981\u5907\u4efd\u7684\u6587\u4ef6\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DDNS\u8bbe\u7f6e\n<ul class=\"wp-block-list\">\n<li>\/etc\/config\/ddns<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3 \u9759\u6001\u5730\u5740<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/xiaoqingfengATGH\/HomeLede\/wiki\/HomeLede-%E9%87%8D%E5%88%B7%E5%9B%BA%E4%BB%B6-%E9%85%8D%E7%BD%AE%E5%A4%87%E4%BB%BD%E8%BF%98%E5%8E%9F%E6%8C%87%E5%8D%97#3-%E9%9D%99%E6%80%81%E5%9C%B0%E5%9D%80\"><\/a><\/p>\n\n\n\n<p>\u901a\u5e38\u5bb6\u5ead\u7f51\u7edc\u8bbe\u5907\u4f1a\u4f7f\u7528HomeLede\u7684DHCP\u8fdb\u884c\u52a8\u6001IP\u5730\u5740\u5206\u914d\uff0c\u4f46\u67d0\u4e9b\u4e3b\u673a\u53ef\u80fd\u9700\u8981\u56fa\u5b9aIP\uff0c\u4ee5\u4fbf\u8fdc\u7a0b\u8bbf\u95ee\u7b49\u7b49\u7528\u9014\u3002 \u9759\u6001DHCP\u8bbe\u7f6e\u4fdd\u5b58\u4f4d\u7f6e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DHCP\u8bbe\u7f6e\n<ul class=\"wp-block-list\">\n<li>\/etc\/config\/dhcp \u56e0\u4e3a\u8fd9\u4e2a\u914d\u7f6e\u4e2d\u8fd8\u53ef\u80fd\u5305\u542bdnsmasq\u76f8\u5173\u914d\u7f6e\uff0c\u56e0\u6b64\u76f4\u63a5\u5907\u4efd\u6574\u4e2a\u6587\u4ef6\u4e0d\u4e00\u5b9a\u662f\u597d\u7684\u9009\u62e9\uff0c\u5efa\u8bae\u4ec5\u5907\u4efd\u6587\u4ef6\u4e2d<code>config host<\/code>\u5f00\u5934\u7684\u90e8\u5206\uff0c\u6bcf\u4e2a<code>config host<\/code>\u4ee3\u8868\u4e00\u4e2a\u8bbe\u5907\u3002 \u4e00\u4e2a\u4f8b\u5b50\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"config host\n\toption name 'R8500'\n\toption dns '1'\n\toption mac '10:23:45:67:89:EA'\n\toption ip '192.168.1.2'\n\toption leasetime 'infinite'\n\toption duid '00000000192168001002'\n\toption hostid '002'\n\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">config<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">host<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">name<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">R8500<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">dns<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">1<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">mac<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">10:23:45:67:89:EA<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">ip<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">192.168.1.2<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">leasetime<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">infinite<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">duid<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">00000000192168001002<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">hostid<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">002<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4 \u9632\u706b\u5899\u89c4\u5219<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/xiaoqingfengATGH\/HomeLede\/wiki\/HomeLede-%E9%87%8D%E5%88%B7%E5%9B%BA%E4%BB%B6-%E9%85%8D%E7%BD%AE%E5%A4%87%E4%BB%BD%E8%BF%98%E5%8E%9F%E6%8C%87%E5%8D%97#4-%E9%98%B2%E7%81%AB%E5%A2%99%E8%A7%84%E5%88%99\"><\/a><\/p>\n\n\n\n<p>\u9632\u706b\u5899\u9700\u8981\u5907\u4efd\u7684\u662f\u7aef\u53e3\u8f6c\u53d1\u53ca\u7aef\u53e3\u5f00\u653e\u89c4\u5219\u3002\u4e0d\u5efa\u8bae\u76f4\u63a5\u5907\u4efd\u6574\u4e2a\u6587\u4ef6\uff0c\u800c\u662f\u9009\u53d6\u5176\u4e2d\u4e00\u90e8\u5206\u5907\u4efd\u3002 \u7aef\u53e3\u8f6c\u53d1\u89c4\u5219\u4ee5<code>config redirect<\/code>\u5f00\u5934\uff0c\u4f8b\u5b50\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"config redirect\n\toption target 'DNAT'\n\toption src 'wan'\n\toption dest 'lan'\n\toption proto 'tcp'\n\toption src_dport '60607'\n\toption dest_ip '192.168.1.100'\n\toption dest_port '3389'\n\toption name 'WX_RDP'\n\n\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">config<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">redirect<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">target<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">DNAT<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">src<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">wan<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">dest<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">lan<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">proto<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">tcp<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">src_dport<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">60607<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">dest_ip<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">192.168.1.100<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">dest_port<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">3389<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">name<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">WX_RDP<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u7aef\u53e3\u5f00\u653e\u89c4\u5219\u4ee5<code>config rule<\/code>\u5f00\u5934\uff0c\u4f8b\u5b50\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"config rule\n\toption target 'ACCEPT'\n\toption src 'wan'\n\toption proto 'tcp'\n\toption dest_port '7001'\n\toption name 'SSH'\n\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">config<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">rule<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">target<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">ACCEPT<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">src<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">wan<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">proto<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">tcp<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">dest_port<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">7001<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">name<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">SSH<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5 HomeRedirect\u7aef\u53e3\u8f6c\u53d1<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/xiaoqingfengATGH\/HomeLede\/wiki\/HomeLede-%E9%87%8D%E5%88%B7%E5%9B%BA%E4%BB%B6-%E9%85%8D%E7%BD%AE%E5%A4%87%E4%BB%BD%E8%BF%98%E5%8E%9F%E6%8C%87%E5%8D%97#5-homeredirect%E7%AB%AF%E5%8F%A3%E8%BD%AC%E5%8F%91\"><\/a><\/p>\n\n\n\n<p>\u5982\u679c\u4f7f\u7528HomeRedirect\u8fdb\u884c\u4e86\u7aef\u53e3\u8f6c\u53d1\uff0c\u5219\u76f4\u63a5\u5907\u4efd\uff1a \/etc\/config\/homeredirect\u6587\u4ef6\u5373\u53ef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6 IPSec VPN<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/xiaoqingfengATGH\/HomeLede\/wiki\/HomeLede-%E9%87%8D%E5%88%B7%E5%9B%BA%E4%BB%B6-%E9%85%8D%E7%BD%AE%E5%A4%87%E4%BB%BD%E8%BF%98%E5%8E%9F%E6%8C%87%E5%8D%97#6-ipsec-vpn\"><\/a><\/p>\n\n\n\n<p>\u5982\u679c\u5e73\u65f6\u4f7f\u7528\u624b\u673a\uff0cWindows 10\u7b49\u8bbe\u5907\u8fde\u56de\u5bb6\u5ead\u7f51\u7edc\uff0c\u53ef\u80fd\u4f1a\u4f7f\u7528\u5230IPSec VPN\uff0c\u9700\u8981\u5907\u4efd\u6587\u4ef6\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IPSecVPN\u914d\u7f6e\n<ul class=\"wp-block-list\">\n<li>\/etc\/config\/ipsec<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u8bc1\u4e66\uff08\u5982\u679c\u4e3aWindows10\u63a5\u5165\u914d\u7f6e\u4e86\u8bc1\u4e66\uff0c\u5219\u9700\u8981\u5907\u4efd\uff09\n<ul class=\"wp-block-list\">\n<li>\/etc\/ipsec.d\/cacerts \u6587\u4ef6\u5939<\/li>\n\n\n\n<li>\/etc\/ipsec.d\/certs \u6587\u4ef6\u5939<\/li>\n\n\n\n<li>\/etc\/ipsec.d\/private \u6587\u4ef6\u5939<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">7 Passwall \u8282\u70b9\u914d\u7f6e<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/xiaoqingfengATGH\/HomeLede\/wiki\/HomeLede-%E9%87%8D%E5%88%B7%E5%9B%BA%E4%BB%B6-%E9%85%8D%E7%BD%AE%E5%A4%87%E4%BB%BD%E8%BF%98%E5%8E%9F%E6%8C%87%E5%8D%97#7-passwall-%E8%8A%82%E7%82%B9%E9%85%8D%E7%BD%AE\"><\/a><\/p>\n\n\n\n<p>\u56e0\u4e3aPasswall\u5404\u7248\u672c\u95f4\u914d\u7f6e\u53d8\u66f4\u6bd4\u8f83\u9891\u7e41\uff0c\u56e0\u6b64\u4e0d\u5efa\u8bae\u6574\u4f53\u5907\u4efd\uff0c\u4ec5\u5907\u4efd\u8282\u70b9\u914d\u7f6e\u5373\u53ef\u3002\u5176\u4ed6\u5185\u5bb9\u624b\u52a8\u5b8c\u6210\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PSW\u4e3b\u914d\u7f6e\u6587\u4ef6\n<ul class=\"wp-block-list\">\n<li>\/etc\/config\/passwall \u5907\u4efd\u5176\u4e2d<code>config nodes<\/code>\u5f00\u5934\u90e8\u5206\u5373\u53ef\uff0c\u6bcf\u4e2a\u8282\u70b9\u4f1a\u6709\u5355\u72ec\u7684\u4e00\u5757<code>config nodes<\/code>\u3002\u4f8b\u5b50\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"config nodes\n\toption remarks 'TW'\n\toption type 'V2ray'\n\toption v2ray_protocol 'vmess'\n\toption address 'shiftg.wonderful.top'\n\toption use_ipv6 '0'\n\toption port '1701'\n\toption v2ray_security 'auto'\n\toption v2ray_VMess_id '1282789b-4567-89ab-bc0e-924deff0c1df'\n\toption v2ray_VMess_alterId '205'\n\toption v2ray_VMess_level '1'\n\toption v2ray_stream_security 'tls'\n\toption v2ray_transport 'tcp'\n\toption v2ray_tcp_guise 'none'\n\toption v2ray_mux '1'\n\toption v2ray_mux_concurrency '8'\n\toption v2ray_tcp_socks '0'\n\toption tls_serverName 'shiftg.wonderful.top'\n\toption tls_allowInsecure '0'\n\" style=\"color:#f6f6f4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #BF9EEE\">config<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">nodes<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">remarks<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">TW<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">type<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">V2ray<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_protocol<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">vmess<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">address<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">shiftg.wonderful.top<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">use_ipv6<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">0<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">port<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">1701<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_security<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">auto<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_VMess_id<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">1282789b-4567-89ab-bc0e-924deff0c1df<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_VMess_alterId<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">205<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_VMess_level<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">1<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_stream_security<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">tls<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_transport<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">tcp<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_tcp_guise<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">none<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_mux<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">1<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_mux_concurrency<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">8<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">v2ray_tcp_socks<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">0<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">tls_serverName<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">shiftg.wonderful.top<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">\t<\/span><span style=\"color: #BF9EEE\">option<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">tls_allowInsecure<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&#39;<\/span><span style=\"color: #E7EE98\">0<\/span><span style=\"color: #DEE492\">&#39;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4ee3\u7406\/\u76f4\u8fde\u4e3b\u673a\uff0c\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b\uff0c\u5982\u679c\u6709\u81ea\u5b9a\u4e49\uff0c\u53ef\u4ee5\u5907\u4efd\u3002\n<ul class=\"wp-block-list\">\n<li>\/usr\/share\/passwall\/rules\/direct_host \u76f4\u8fde\u57df\u540d<\/li>\n\n\n\n<li>\/usr\/share\/passwall\/rules\/direct_ip \u76f4\u8fdeIP<\/li>\n\n\n\n<li>\/usr\/share\/passwall\/rules\/proxy_host \u8d70\u4ee3\u7406\u57df\u540d<\/li>\n\n\n\n<li>\/usr\/share\/passwall\/rules\/proxy_ip \u8d70\u4ee3\u7406IP<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5237\u673a\u662f\u8f6f\u8def\u7531\u5e38\u89c1\u52a8\u4f5c\uff0c\u4e3a\u4e86\u907f\u514d\u91cd\u65b0\u914d\u7f6e\u7684\u9ebb\u70e6\uff0c\u901a\u5e38\u4f1a\u5bf9\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u5907\u4efd\u53ca\u6062\u590d\u3002\u672c\u6587\u68b3\u7406\u4e86HomeLede\u9700\u8981\u5907 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":475,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-707","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/posts\/707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=707"}],"version-history":[{"count":1,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/posts\/707\/revisions"}],"predecessor-version":[{"id":708,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/posts\/707\/revisions\/708"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=\/wp\/v2\/media\/475"}],"wp:attachment":[{"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jthxfzya.tk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}