<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>feng的博客</title><link>https://blog.swihp.cn/</link><description></description><item><title>Synology NAS 如何外部访问</title><link>https://blog.swihp.cn/?id=1439</link><description>&lt;div class=&quot;kb_accordion has_accordion&quot; style=&quot;box-sizing: border-box; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 class=&quot;kb_accordion_title&quot; style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 0px; padding: 10px 20px 10px 33px; border-top: 1px solid rgb(234, 236, 242); cursor: pointer; font-size: 21px; line-height: 1.43; position: relative; color: rgb(0, 0, 0) !important;&quot;&gt;什么是外部访问？&lt;/h2&gt;&lt;div class=&quot;kb_accordion_content&quot; style=&quot;box-sizing: border-box; border-top: 1px solid rgb(234, 236, 242); padding-bottom: 5px; padding-left: 33px; padding-top: 0px; position: relative; margin-bottom: 0px !important; margin-top: 0px !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 15px;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;外部访问是指您可以通过任何具备互联网连接的设备远程访问 Synology NAS。DSM 允许您轻松设置对 Synology NAS 的远程访问，只需在网页浏览器中输入自定义域名即可登录 DSM 或其他服务。此外，如果您需要直接访问某些服务，还可以为每个服务设置端口转发规则并在 NAS 上开放特定端口。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://192.168.31.8:39997/file/wordpress/synology/外部访问.png&quot;/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id1&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;有哪些方法可以远程访问我的 Synology NAS？&lt;/h3&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;①无公网IP：&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;通过 QuickConnect 创建自定义 ID 或地址。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;②有公网IP：&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;使用 公网IP地址或者 DDNS 访问您的 NAS 。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;通过端口转发，将路由器上的端口映射到 NAS 的 IP 地址。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;note&quot; style=&quot;box-sizing: border-box; background-color: rgb(240, 243, 246); border-radius: 10px; margin-bottom: 15px; margin-top: 15px; padding: 15px;&quot;&gt;&lt;p class=&quot;note_title&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 5px 0px 0px; padding-bottom: 0px; font-weight: 600;&quot;&gt;注意事项：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a id=&quot;x_anchor_6767&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;如果您最近更换了互联网服务提供商（ISP）或更换了路由器，可能需要在远程访问 Synology NAS 之前更新外部访问设置。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;kb_accordion has_accordion&quot; style=&quot;box-sizing: border-box; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 class=&quot;kb_accordion_title&quot; style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 0px; padding: 10px 20px 10px 33px; border-top: 1px solid rgb(234, 236, 242); cursor: pointer; font-size: 21px; line-height: 1.43; position: relative; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id2&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;设置 QuickConnect&lt;/h2&gt;&lt;div class=&quot;kb_accordion_content&quot; style=&quot;box-sizing: border-box; border-top: 1px solid rgb(234, 236, 242); padding-bottom: 5px; padding-left: 33px; padding-top: 0px; position: relative; margin-bottom: 0px !important; margin-top: 0px !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 15px;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;QuickConnect 允许您通过可自定义的 ID 或地址（如 &lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, monospace, &amp;quot; serif&amp;quot;;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;QuickConnect.to/example&lt;/em&gt;&lt;/code&gt;，中国大陆为 &lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, monospace, &amp;quot; serif&amp;quot;;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;QuickConnect.cn/example&lt;/em&gt;&lt;/code&gt;）在互联网中连接到 DSM。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;请按照以下步骤设置并开始使用 QuickConnect。您也可以参考 &lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_quickconnect?version=7&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 7.0&lt;/a&gt; 和 &lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_quickconnect?version=6&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 6.2&lt;/a&gt; 的相关帮助文章，了解更多详情。&lt;/p&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 0px 0px 15px; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;请根据您的 DSM 版本执行以下操作：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;DSM 7.0 及以上版本：前往 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;控制面板&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;外部访问&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;QuickConnect&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;DSM 6.2 及以下版本：前往 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;控制面板&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;QuickConnect&lt;/span&gt;。&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://192.168.31.8:39997/file/wordpress/synology/quickconnect.png&quot;/&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;勾选 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;启用 QuickConnect&lt;/span&gt; 复选框。如果您尚未登录或注册 Synology 帐户，请单击 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;登录或注册 Synology 帐户&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;QuickConnect ID&lt;/span&gt; 字段中输入您想要的 QuickConnect ID，然后勾选 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;勾选此处即表示您同意服务条款和隐私政策&lt;/span&gt; 复选框。单击 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;应用&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果指定的 QuickConnect ID 可用，将会显示一个区域，展示您的 QuickConnect ID 以及 DSM 可访问的地址。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果您想调整其他选项或权限设置，请根据您的 DSM 版本执行以下操作：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;DSM 7.0 及以上版本：单击 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;高级设置&lt;/span&gt; 按钮。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;DSM 6.2 及以下版本：前往 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;高级&lt;/span&gt; 选项卡。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;启用 QuickConnect 后，您可以通过以下方式访问 DSM 服务：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;通过计算机&lt;/span&gt;：打开网页浏览器，输入您的 QuickConnect URL&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;（如 &lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, monospace, &amp;quot; serif&amp;quot;;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;http://QuickConnect.to/example123&lt;/em&gt;&lt;/code&gt; 或 &lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, monospace, &amp;quot; serif&amp;quot;;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;http://QuickConnect.cn/example123&lt;/em&gt;&lt;/code&gt;）。按下 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;Enter&lt;/span&gt;，即可跳转到 DSM 登录界面。&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;通过移动设备&lt;/span&gt;：&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;list-style-type: lower-alpha;&quot;&gt;&lt;li&gt;&lt;p&gt;打开 Synology 移动应用，例如 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;DS file&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;输入您的 QuickConnect ID，以及 DSM 帐号和密码。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;单击 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;登录&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;kb_accordion has_accordion&quot; style=&quot;box-sizing: border-box; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 class=&quot;kb_accordion_title&quot; style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 0px; padding: 10px 20px 10px 33px; border-top: 1px solid rgb(234, 236, 242); cursor: pointer; font-size: 21px; line-height: 1.43; position: relative; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id3&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;使用 DDNS 创建主机名&lt;/h2&gt;&lt;div class=&quot;kb_accordion_content&quot; style=&quot;box-sizing: border-box; border-top: 1px solid rgb(234, 236, 242); padding-bottom: 5px; padding-left: 33px; padding-top: 0px; position: relative; margin-bottom: 0px !important; margin-top: 0px !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 15px;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;DDNS（动态域名系统）&lt;/span&gt;通过将主机名（如 &lt;em style=&quot;box-sizing: border-box;&quot;&gt;example123.synology.me&lt;/em&gt;）映射到其 IP 地址，简化了通过 Internet 连接到 Synology NAS 的过程。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;请按照以下步骤了解如何使用 DDNS 访问 DSM。您也可以参考&lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_ddns?version=7&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 7.0&lt;/a&gt;和&lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_ddns?version=6&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 6.2&lt;/a&gt;的相关帮助文章以获取更多详情。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id4&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;设置 DDNS 主机名&lt;/h3&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 0px 0px 15px; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;进入&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;控制面板&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;外部访问&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;DDNS&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;点击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;添加&lt;/span&gt;。&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://192.168.31.8:39997/file/wordpress/synology/ddns.png&quot;/&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;将弹出一个对话框，提示您编辑以下设置：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;服务供应商&lt;/span&gt;：选择服务供应商。若要注册由 Synology 提供的免费主机名，请从下拉菜单中选择&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;Synology&lt;/span&gt;。您也可以通过选择的 DDNS 服务供应商购买并注册 NAS IP 地址的主机名。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;主机名&lt;/span&gt;：输入 DDNS 主机名，例如 &lt;em style=&quot;box-sizing: border-box;&quot;&gt;example123.synology.me&lt;/em&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;用户名/电子邮件&lt;/span&gt;：如果您的服务供应商未选择 Synology，则需要在此处输入 DDNS 供应商的用户名/电子邮件。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;密码/密钥&lt;/span&gt;：如果您的服务供应商未选择 Synology，则需要在此处输入 DDNS 供应商的密码/密钥。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;外部地址&lt;/span&gt;：如果您的服务供应商未选择 Synology，则需要在此处输入将使用该主机名的 Synology NAS 的外部 IP 地址。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;点击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;测试连接&lt;/span&gt;以检查设置是否正确。&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://192.168.31.8:39997/file/wordpress/synology/ddns001.png&quot;/&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果您选择&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;Synology&lt;/span&gt;作为服务供应商，可以配置以下设置：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;从 Let&amp;#39;s Encrypt 获取证书，并将其设置为默认证书&lt;/span&gt;：勾选此复选框可为 Synology DDNS 应用&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/How_to_enable_HTTPS_and_create_a_certificate_signing_request_on_your_Synology_NAS&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;Let&amp;#39;s Encrypt SSL 证书&lt;/a&gt;&lt;/span&gt;，并将其设置为 DSM 的默认证书。但如果已为您的 DDNS 主机名匹配了 SSL 证书，则此复选框会处于禁用状态。有关 SSL 证书的更多信息，请参阅&lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_certificate?version=7&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 7.0&lt;/a&gt;和&lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_certificate?version=6&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 6.2&lt;/a&gt;的相关文章。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;启用 Heartbeat&lt;/span&gt;：勾选此复选框可接收有关映射主机名状态的警报。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;点击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;确定&lt;/span&gt;来保存并完成设置。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;继续到下一部分，在您的 NAS 上设置&lt;a href=&quot;https://kb.synology.cn/zh-cn/DSM/tutorial/Quick_Start_External_Access#x_anchor_id5&quot; scroll-to=&quot;#x_anchor_id5&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;端口转发&lt;/a&gt;。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;设置完成后，您可以在网页浏览器中输入 DDNS 主机名，后跟冒号和 DSM 的端口号，通过 Internet 访问 Synology NAS。DSM 的默认端口号为 HTTP 的 5000 和 HTTPS 的 5001。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;例如，如果您的 DDNS 主机名为 &lt;em style=&quot;box-sizing: border-box;&quot;&gt;example123.synology.me&lt;/em&gt;，且您使用的是 HTTPS，则可以在网页浏览器中输入“&lt;em style=&quot;box-sizing: border-box;&quot;&gt;example123.synology.me:5001&lt;/em&gt;”来访问 DSM。&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;kb_accordion has_accordion&quot; style=&quot;box-sizing: border-box; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 class=&quot;kb_accordion_title&quot; style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 0px; padding: 10px 20px 10px 33px; border-top: 1px solid rgb(234, 236, 242); cursor: pointer; font-size: 21px; line-height: 1.43; position: relative; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id5&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;配置端口转发&lt;/h2&gt;&lt;div class=&quot;kb_accordion_content&quot; style=&quot;box-sizing: border-box; border-top: 1px solid rgb(234, 236, 242); padding-bottom: 5px; padding-left: 33px; padding-top: 0px; position: relative; margin-bottom: 0px !important; margin-top: 0px !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 15px;&quot;&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id6&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;什么是端口转发？&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;端口转发&lt;/span&gt;是一种允许外部设备通过将路由器或网关的外部端口映射到标识您 NAS 的内部 IP 地址，从而访问本地网络服务的技术。您可以通过在 NAS 上设置端口转发规则来实现。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://192.168.31.8:39997/file/wordpress/synology/端口转发.png&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;IP 地址用于标识您的 NAS，但如何区分 NAS 上的具体服务？由于有许多服务可用，如 MailPlus、Surveillance Station 等，您可能需要为每个要访问的服务设置&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;不同的端口转发规则&lt;/span&gt;并开放&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;特定端口&lt;/span&gt;。这样，您就可以通过其专属的 IP 地址和端口号从外部直接访问该服务。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;要了解 DSM 或 SRM 服务使用了哪些网络端口，您可以参考以下文章：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/What_network_ports_are_used_by_Synology_services&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 服务使用了哪些网络端口？&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id7&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;设置端口转发规则&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&lt;strong&gt;！！！！！！在设置端口转发规则之前，请确保您拥有路由器的&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;管理&lt;/span&gt;权限、您的网络中只有一个路由器、您的路由器支持 upnp 。&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 0px 0px 15px; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;前往&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;控制面板&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;外部访问&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;路由器配置&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;创建&lt;/span&gt;，然后在窗口中单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;设置路由器&lt;/span&gt;以启动设置向导。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在向导中单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;开始&lt;/span&gt;，DSM 将开始测试若干必需的网络设置。测试结果有两种类型：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;已检测到 UPnP 路由器&lt;/span&gt;：单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;下一步&lt;/span&gt;，您将进入显示路由器信息的页面。单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;完成&lt;/span&gt;以完成设置。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;未检测到 UPnP 路由器&lt;/span&gt;：单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;下一步&lt;/span&gt;，系统将提示您手动设置与路由器的连接。输入路由器信息后，单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;完成&lt;/span&gt;以完成设置。&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://192.168.31.8:39997/file/wordpress/synology/ddns005.png&quot;/&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;创建&lt;/span&gt;以启动端口转发设置向导。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;请选择以下其中一种设置方式，并按照指示操作：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;内置应用程序&lt;/span&gt;：您可以选择一个或多个要转发的内置应用程序（例如，FTP、Web Station 等）。完成后单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;完成&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;自定义端口&lt;/span&gt;：您可以为自定义端口添加端口转发规则。定义协议、本地端口和路由器端口，然后单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;完成&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;在&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;路由器配置&lt;/span&gt;页面再次单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;完成&lt;/span&gt;以完成设置流程。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;note&quot; style=&quot;box-sizing: border-box; background-color: rgb(240, 243, 246); border-radius: 10px; margin-bottom: 15px; margin-top: 15px; padding: 15px;&quot;&gt;&lt;p class=&quot;note_title&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 5px 0px 0px; padding-bottom: 0px; font-weight: 600;&quot;&gt;注意：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;如果您的路由器是 Synology Router，请在设置 Synology NAS 的端口转发规则前，前往 SRM 的&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;网络中心&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;本地网络&lt;/span&gt; &amp;gt; &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;常规&lt;/span&gt;，并在&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;启用 UPnP&lt;/span&gt;下拉菜单中选择&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;已启用&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;您可以使用以下语法来指定端口号和范围：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: circle;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;使用“-”表示端口范围，例如“6881-6890”。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;使用“,”分隔端口，例如“21,22”、“21,55536-55663”。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p&gt;每个网关路由器的端口&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;只能用于一个&lt;/span&gt;转发规则。如果一个路由器端口被用于两个或以上规则，将会产生冲突，并且屏幕上会出现警告信息。您需要为该规则设置其他端口以避免冲突。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;部分路由器不允许使用自定义端口来转发系统服务。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id8&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;手动配置您的路由器&lt;/h3&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 0px 0px 15px; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;如果上述方法无效，您需要直接登录到路由器的管理界面。请参考路由器制造商提供的说明手册以获取更多信息。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;找到路由器端口转发配置页面后，请参考&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/What_network_ports_are_used_by_Synology_services&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;本文&lt;/a&gt;获取 Synology 产品应用和服务所用端口号的完整列表。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;kb_accordion has_accordion&quot; style=&quot;box-sizing: border-box; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 class=&quot;kb_accordion_title&quot; style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 0px; padding: 10px 20px 10px 33px; border-top: 1px solid rgb(234, 236, 242); cursor: pointer; font-size: 21px; line-height: 1.43; position: relative; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id9&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;保障您的外部连接安全&lt;/h2&gt;&lt;div class=&quot;kb_accordion_content&quot; style=&quot;box-sizing: border-box; border-top: 1px solid rgb(234, 236, 242); padding-bottom: 5px; padding-left: 33px; padding-top: 0px; position: relative; margin-bottom: 0px !important; margin-top: 0px !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 0px; margin-top: 15px;&quot;&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id10&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;启用自动封锁&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;自动封锁功能通过封锁登录失败次数过多的客户端 IP 地址来提升 Synology NAS 的安全性。这有助于降低您的帐户被暴力破解入侵的风险。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;如需了解如何启用自动封锁并将 IP 地址添加到&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;允许列表&lt;/span&gt;，请参考&lt;a href=&quot;https://kb.synology.cn/en-global/DSM/help/DSM/AdminCenter/connection_security_protection?version=7#b_5&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 7.0&lt;/a&gt;和&lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_security_account?version=6#b_6&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 6.2&lt;/a&gt;的相关帮助文章。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id11&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;启用帐户保护&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;帐户保护可防止登录失败次数过多的不受信任客户端攻击您的 Synology NAS 帐户，从而最大程度降低帐户遭受暴力破解的风险。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;如需了解如何启用帐户保护，请参考&lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_security_account?version=7#b_25&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 7.0&lt;/a&gt;和&lt;a href=&quot;https://kb.synology.cn/DSM/help/DSM/AdminCenter/connection_security_account?version=6#b_52&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;DSM 6.2&lt;/a&gt;的相关帮助文章。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id12&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;启用 HTTPS&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;证书可用于保护 Synology NAS 的 SSL 服务，如网页（所有的 HTTPS 服务）、邮件或 FTP。拥有证书可让用户在发送任何保密信息之前验证服务器和管理员的身份。Synology 提供来自 &lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;Let&amp;#39;s Encrypt&lt;/span&gt; 的免费且安全的 SSL/TLS 证书。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;要了解如何在 Synology NAS 上获取 Let&amp;#39;s Encrypt 证书，请参阅&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/How_to_enable_HTTPS_and_create_a_certificate_signing_request_on_your_Synology_NAS&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;本文&lt;/a&gt;。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id13&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;启用防火墙&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;与 PC 类似，您的 Synology NAS 也内置防火墙。启用防火墙、创建防火墙规则以及配置防火墙设置可以帮助防止未经授权的登录并控制服务访问。您还可以选择允许或拒绝特定 IP 地址访问某些网络端口。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;要了解如何启用防火墙并创建防火墙规则，请参阅&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/How_do_I_create_firewall_rules&quot; rel=&quot;noopener noreferrer nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;本文&lt;/a&gt;。&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 14 Aug 2026 10:54:40 +0800</pubDate></item><item><title>如何使用日志中心的文件传输日志来监控文件修改</title><link>https://blog.swihp.cn/?id=1437</link><description>&lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;启用文件传输日志&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;默认情况下，此功能通常处于禁用状态。若要记录文件更改，请从要监控的文件传输协议的设置中启用传输日志。（控制面板→文件服务）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;SMB：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;勾选&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;启用传输日志&lt;/span&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;复选框可对通过 SMB/CIFS 协议执行的文件操作启用日志记录。默认情况下，传输日志仅监控文件或文件夹的删除；但是，也可以前往&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;日志设置&lt;/span&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;以选择其他文件操作事件（创建、移动、重命名、读取、写入、权限更改）以供系统进行日志记录。请注意，选择的文件操作事件越多，便越可能会影响系统性能。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;AFP：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;勾选&lt;strong&gt;启用传输日志&lt;/strong&gt;，系统将会记录通过 AFP 协议访问文件的操作，包括创建、删除、读取、写入、移动及重命名文件或文件夹。&lt;span style=&quot;color: #2E3742; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;由于 Apple 已移除对AFP的支持，因此建议您使用&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/file_protocol_AFP_not_recommended&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer nofollow&quot; style=&quot;font-size: 16px; font-weight: inherit; white-space: normal; background-color: rgb(255, 255, 255); box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: underline; color: rgb(0, 103, 230); font-family: 宋体, SimSun;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;其他文件服务&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #2E3742; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;FTP：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;勾选&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;启用 FTP 文件传输日志&lt;/span&gt;&lt;/span&gt;会记录FTP、FTPS 和 SFTP &lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;下载或上传的文件的日志&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;File Station：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;打开&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;File Station&lt;/span&gt;，然后单击&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;设置&lt;/span&gt;按钮，启用 File Station 日志来记录所有用户的操作。用户活动包括&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;新建文件夹&lt;/span&gt;、&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;上传&lt;/span&gt;、&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;下载&lt;/span&gt;、&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;删除&lt;/span&gt;、&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;重命名&lt;/span&gt;、&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;移动&lt;/span&gt;、&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;复制&lt;/span&gt;和&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; font-size: 16px; padding-left: 2px; padding-right: 2px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;属性设置&lt;/span&gt;。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;color: #505A64; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;WebDAV Server：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;打开&amp;nbsp;&lt;span style=&quot;color: #2E3742; font-size: 16px; background-color: #FFFFFF; font-family: 宋体, SimSun;&quot;&gt;WebDAV Server → 设置 → 高级设置 →&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px; font-family: 宋体, SimSun;&quot;&gt;启用 WebDAV 日志&lt;/span&gt;&lt;span style=&quot;color: #505A64; font-family: 宋体, SimSun;&quot;&gt;：这会记录与 WebDAV 活动相关的事件。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id4a2657281d&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;查看文件传输日志&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 0px 0px 15px; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;进入&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;日志中心&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;日志&lt;/span&gt;（适用于 DSM）或&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;日志搜索&lt;/span&gt;。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;从右上角的下拉菜单中选择&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;文件传输&lt;/span&gt;。&lt;/span&gt;&lt;img src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/log001.png&quot; class=&quot;img_border img-cursor-pointer&quot; alt=&quot;&quot; style=&quot;box-sizing: border-box; max-width: 100%; vertical-align: top; border: 1px solid rgb(219, 221, 225); display: block; margin-bottom: 20px; margin-top: 10px; cursor: pointer; width: 800px;&quot; width=&quot;&quot; height=&quot;&quot; border=&quot;0&quot; vspace=&quot;0&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;日志将显示每个事件的以下信息：&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;日志：用于此事件的文件传输协议类型。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;时间：事件发生的日期和时间。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;IP地址：此事件的源IP地址。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;用户：执行此事件的用户帐户。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;事件：已执行的操作（例如&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;Delete&lt;/span&gt;&amp;nbsp;、&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;Move&lt;/span&gt;&amp;nbsp;、&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;Rename&lt;/span&gt;&amp;nbsp;）。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;文件/文件夹：此事件涉及的文件类型（&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;文件&lt;/span&gt;或&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;文件夹&lt;/span&gt;）。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;文件大小：文件大小（文件夹显示为&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;NA&lt;/span&gt;&amp;nbsp;）。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;文件名：事件中涉及的文件或文件夹的路径。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_id747a0908aa&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;搜索特定日志&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;添加搜索条件以查找位于&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;文件传输&lt;/span&gt;中的特定日志。例如，如果您要搜索与&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, monospace, &amp;quot; serif&amp;quot;;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;photos&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;文件夹相关且在&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, monospace, &amp;quot; serif&amp;quot;;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;March 19 and March 24, 2023&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;之间发生的SMB&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;删除&lt;/span&gt;事件，请执行以下步骤。&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 0px 0px 15px; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;单击&lt;/span&gt;&lt;img src=&quot;https://kb.synology.cn/_images/autogen/File_Transfer_log_monitor_modifications/2.png&quot; class=&quot;inline_s&quot; alt=&quot;2.png&quot; style=&quot;box-sizing: border-box; max-width: 100%; vertical-align: top; border: 1px solid transparent; display: inline-block; margin: 0px !important; height: 20px;&quot;/&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;放大镜图标并输入搜索条件。&lt;/span&gt;&lt;img src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/log002.png&quot; class=&quot;img_border&quot; alt=&quot;&quot; style=&quot;box-sizing: border-box; max-width: 100%; vertical-align: top; border: 1px solid rgb(219, 221, 225); display: block; margin-bottom: 20px; margin-top: 10px; width: 480px;&quot; width=&quot;&quot; height=&quot;&quot; border=&quot;0&quot; vspace=&quot;0&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;搜索&lt;/span&gt;可查看结果。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: transparent; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; color: rgb(0, 0, 0) !important;&quot;&gt;&lt;a id=&quot;x_anchor_idcaf2292537&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;保留日志&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;我们建议您保留日志，因为一旦达到限制，它们就会轮换：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;连接日志 ：&amp;nbsp;10,000&lt;/p&gt;&lt;p&gt;传输日志 - SMB：100,000&lt;/p&gt;&lt;p&gt;传输日志 - AFP：20,000&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;传输日志 - File Station：20,000&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;传输日志 - FTP：20,000&lt;/p&gt;&lt;p&gt;传输日志 - TFTP：10,000&lt;/p&gt;&lt;p&gt;传输日志 - WebDAV：20,000&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;请按照以下步骤保留日志：&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 0px 0px 15px; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;进入&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;套件中心 搜索&lt;/span&gt;并安装&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;日志中心&lt;/span&gt;。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;进入&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;日志中心&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;存档设置&amp;nbsp;&lt;/span&gt;并配置&lt;/span&gt;&lt;a href=&quot;https://kb.synology.cn/DSM/help/LogCenter/logcenter_archive?version=7#t3_1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer nofollow&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: underline; color: rgb(0, 103, 230); font-weight: inherit; font-family: 宋体, SimSun;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;DSM&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;的存档设置。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px;&quot;&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;请按以下步骤查看归档日志：&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;对于 DSM：&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;进入&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;日志中心&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;日志&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;存档&lt;/span&gt;，然后&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;&amp;nbsp;&lt;/span&gt;从右上角的下拉菜单中选择&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;打开日志存档&lt;/span&gt;。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;单击&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;打开日志存档&lt;/span&gt;。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;font-family: 宋体, SimSun;&quot;&gt;从右上角的下拉菜单中选择&lt;span style=&quot;box-sizing: border-box; font-weight: 600; font-family: 宋体, SimSun;&quot;&gt;文件传输&lt;/span&gt;。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;&lt;div class=&quot;note&quot; style=&quot;box-sizing: border-box; background-color: rgb(240, 243, 246); border-radius: 10px; margin-bottom: 15px; margin-top: 15px; padding: 15px; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal;&quot;&gt;&lt;p class=&quot;note_title&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 5px 0px 0px; padding-bottom: 0px; font-weight: 600;&quot;&gt;备注：&lt;/p&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a id=&quot;x_anchor_id0dd2a6deb3&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;搜索条件&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;事件&lt;/span&gt;仅适用于 DSM 7 及以上版本。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a id=&quot;x_anchor_id7e94cebf04&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;DSM 中的内置 Log Center 应用程序仅提供基本功能。若要访问&lt;a href=&quot;https://kb.synology.cn/DSM/help/LogCenter/logcenter_desc?version=7&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer nofollow&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;日志中心&lt;/span&gt;的全部功能&lt;/a&gt;，请从 DSM&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;套件中心&lt;/span&gt;安装套件。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;套件中的某些活动可能会导致&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/What_are_reasons_for_file_changes&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer nofollow&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;文件更改&lt;/a&gt;，但相应的更改历史记录可能仅记录在该特定套件的日志中。&lt;a id=&quot;x_anchor_iddec3bb90f8&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 07 May 2026 11:41:29 +0800</pubDate></item><item><title>如何通过 Web Assistant 或 Synology Assistant 找到我的Synology NAS ？</title><link>https://blog.swihp.cn/?id=1436</link><description>&lt;p pm-open-left=&quot;1&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;strong&gt;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;①、首先查看设备状态：是否正常开机、状态灯是否有异常、网络是否正常。&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin: 0px; line-height: 1.38;&quot;&gt;&lt;strong&gt;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;②、设备正常开机、状态灯无异常情况下进行以下操作&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: rgb(255, 255, 255); border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; white-space: normal;&quot;&gt;如何搜索Synology NAS&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a id=&quot;x_anchor_id5&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;您可以通过以下任一工具找到Synology NAS ：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;网页助手&lt;/span&gt;：在网页浏览器的地址栏中输入&lt;a href=&quot;http://find.synology.com/&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;find.synology.com&lt;/a&gt;或&lt;a href=&quot;synologynas:5000&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;synologynas:5000&lt;/a&gt;&amp;nbsp;（对于 Mac 计算机为&lt;a href=&quot;synologynas.local:5000&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;synologynas.local:5000&lt;/a&gt;&amp;nbsp;）。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;Synology Assistant&lt;/span&gt;&amp;nbsp;：打开&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;Synology Assistant&lt;/span&gt;桌面实用程序。如果尚未安装&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;Synology Assistant&lt;/span&gt;&amp;nbsp;，请先进入&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;&lt;a href=&quot;https://www.synology.cn/support/download&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;下载中心&lt;/a&gt;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;“桌面应用程序”&lt;/span&gt;将其下载并安装到计算机上。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;如果仍然找不到Synology NAS，请继续执行以下方法来解决问题。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: rgb(255, 255, 255); border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; white-space: normal;&quot;&gt;&lt;a id=&quot;x_anchor_id6&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;无法通过 Web Assistant 找到Synology NAS&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;请先尝试以下每种方法，然后再通过 Web Assistant 搜索Synology NAS ：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;确保Synology NAS和计算机已正确连接到 Internet 网络。&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;确保Synology NAS和计算机位于同一局域网和子网中。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;使用其他浏览器（如 Chrome 或 Firefox）。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果 DSM 仍可访问，请进入&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;DSM&lt;/span&gt;&amp;nbsp;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;控制面板&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;信息中心&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;设备分析&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;共享网络位置&lt;/span&gt;，并勾选&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;允许此 DiskStation 在 Web Assistant (find.synology.com) 中显示&lt;/span&gt;复选框。&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果您在设置Synology NAS时更改了服务器名称，则可能无法找到Synology NAS。如果 DSM 仍可访问，请进入&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;DSM&lt;/span&gt;&amp;nbsp;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;控制面板&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;网络&lt;/span&gt;&amp;gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;常规&lt;/span&gt;以将&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;服务器名称&lt;/span&gt;更改为&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;SynologyNAS&lt;/span&gt;&amp;nbsp;，然后再试一次。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果上述方法无效，请尝试使用 Synology Assistant 搜索Synology NAS 。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; background-color: rgb(255, 255, 255); border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; margin: 15px 0px 5px; padding-top: 0px; font-size: 18px; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; white-space: normal;&quot;&gt;&lt;a id=&quot;x_anchor_id7&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;无法通过 Synology Assistant 找到Synology NAS&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;在再次通过 Synology Assistant 搜索Synology NAS之前，请尝试以下每种方法：&lt;/p&gt;&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: disc;&quot;&gt;&lt;li&gt;&lt;p&gt;确保Synology NAS和计算机位于同一局域网和子网中。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;调整&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/how_to_allow_synology_assistant_through_firewall&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;防火墙设置&lt;/a&gt;以允许 Synology Assistant 通过 DSM 和Windows防火墙。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;暂时禁用或删除计算机上的防病毒软件。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;使用其他以太网电缆连接Synology NAS ，以检查电缆是否有缺陷。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果Synology NAS具有多个网络端口，请将以太网电缆连接到其他端口以检查端口是否有故障。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在另一台计算机上运行 Synology Assistant 并搜索您的Synology NAS。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果您使用的是 Synology Assistant 7.0-50044 或更高版本，并且您尝试查找的Synology NAS运行的是 DSM 6.2.3 及更低版本或 DSM UC 3.0.1 及更低版本，请单击 Synology Assistant 中的齿轮图标并勾选以启用&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;允许与不支持密码加密的设备兼容&lt;/span&gt;。&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;按住Synology NAS背面的 RESET 按钮四秒钟（您会听到哔声）以重置Synology NAS设置。&amp;nbsp;若要了解有关如何重置Synology NAS的更多信息，请参阅&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/How_to_reset_my_Synology_NAS&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;本文&lt;/a&gt;（适用于 DSM 6.2.3 及更早版本）或&lt;a href=&quot;https://kb.synology.cn/DSM/tutorial/How_to_reset_my_Synology_NAS_7&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;本文&lt;/a&gt;（适用于 DSM 6.2.4 及以上版本）。&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;重置Synology NAS后，关闭计算机上的 WiFi 连接，并使用以太网电缆将Synology NAS直接连接到计算机，而无需通过网络交换机或路由器。将计算机的有线 LAN 接口设置为 DHCP，然后再次使用 Synology Assistant 搜索Synology NAS 。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;如果在尝试上述方法后 Synology Assistant 仍无法找到Synology NAS ：&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;请关闭Synology NAS，卸下硬盘，重新启动Synology NAS，然后再次尝试搜索设备。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;即使未安装任何硬盘也无法找到Synology NAS ，这可能是由于硬件故障。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果 Synology Assistant 可以找到未安装任何硬盘的Synology NAS ，但在使用同一台计算机安装所有硬盘后仍找不到，请联系&lt;a href=&quot;https://account.synology.cn/support&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-decoration: none; color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;Synology 技术支持&lt;/a&gt;以获得进一步帮助。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;note&quot; style=&quot;box-sizing: border-box; background-color: rgb(240, 243, 246); border-radius: 10px; margin-bottom: 15px; margin-top: 15px; padding: 15px; color: rgb(46, 55, 66); font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; white-space: normal;&quot;&gt;&lt;p class=&quot;note_title&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; margin: 5px 0px 0px; padding-bottom: 0px; font-weight: 600;&quot;&gt;备注：&lt;/p&gt;&lt;ol class=&quot;type_lower-decimal list-paddingleft-2&quot; style=&quot;box-sizing: border-box; border-collapse: collapse; line-height: 1.5; padding-bottom: 0px; padding-left: 1.25em;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a id=&quot;x_anchor_id8&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;如果您的所有Synology NAS设备都无法访问 Internet，请使用 Synology Assistant 搜索您的 NAS。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果在按住 RESET 按钮时Synology NAS没有发出哔声，这可能是由于硬件故障。如果您的Synology NAS仍在保修期内，请联系当地经销商以获取 RMA 服务。&lt;a id=&quot;x_anchor_id22&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a id=&quot;x_anchor_id10&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(0, 103, 230); font-weight: inherit;&quot;&gt;&lt;/a&gt;重置Synology NAS后，LAN IP地址可能会更改，并且管理员密码会重置。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 07 May 2026 10:54:15 +0800</pubDate></item><item><title>群晖synology NAS FAQ问题整理</title><link>https://blog.swihp.cn/?id=1438</link><description>&lt;h4 synohead=&quot;4XQft4UaRk&quot; data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;value&amp;quot;:&amp;quot;12pt&amp;quot;,&amp;quot;_&amp;quot;:&amp;quot;font_size&amp;quot;}]}&quot; pm-open-left=&quot;1&quot; style=&quot;padding: 6.66667px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;1、&lt;a href=&quot;https://blog.swihp.cn/?id=1436&quot; target=&quot;_blank&quot;&gt;如何通过 find.synology.com 或者 Synology Assistant 在局域网之中找到 Synology 服务器&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p&gt;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;搜索不到NAS、无法访问NAS、无法登录NAS等问题都可以先尝试搜索NAS，看搜索结果中的状态。&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;①、首先查看设备状态：是否正常开机、状态灯是否有异常、网络灯是否正常&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;，局域网是否可以正常访问&lt;/span&gt;。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;②、设备正常开机、状态灯无异常情况下，拿一台笔记本电脑，与NAS网线直连（网线一头插NAS空闲网口，一头插笔记本网线接口），再次搜索。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;Synology Assistant 安装过程中，&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin: 0px; line-height: 1.38;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;③、NAS系统 DSM 版本≤6.2.x ，打开 Synology Assistant&amp;nbsp;→ 点击右上角 设置 &amp;nbsp;图标，在兼容性一栏 勾选“允许与不支持密码加密的设备兼容（此选项较不安全）”&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin: 0px; line-height: 1.38;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/FAQ001.png&quot;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 synohead=&quot;xdXH1uX7Nr&quot; data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;value&amp;quot;:&amp;quot;12pt&amp;quot;,&amp;quot;_&amp;quot;:&amp;quot;font_size&amp;quot;}]}&quot; style=&quot;padding: 6.66667px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;2、&lt;a href=&quot;https://blog.swihp.cn/?id=1437&quot; target=&quot;_blank&quot; title=&quot;如何使用日志中心的文件传输日志来监控文件修改&quot; textvalue=&quot;如何使用日志中心的文件传输日志来监控文件修改&quot;&gt;如何使用日志中心的文件传输日志来监控文件修改&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: #FFFFFF; color: #191919; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;默认情况下，多数日志处于禁用状态。若要记录文件更改，请从要监控的文件传输协议的设置中启用传输日志。（控制面板→文件服务：&lt;span style=&quot;color: #191919; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; background-color: #FFFFFF;&quot;&gt;SMB /&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; color: #505A64;&quot;&gt;AFP /&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; color: #505A64;&quot;&gt;FTP&lt;/span&gt;）&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;background-color: #FFFFFF; color: #191919; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2E3742; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;File Station：&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;打开&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;File Station&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;，然后单击&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;设置&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;按钮，启用 File Station 日志来记录所有用户的操作。用户活动包括&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;新建文件夹&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;、&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;上传&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;、&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;下载&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;、&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;删除&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;、&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;重命名&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;、&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;移动&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;、&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;复制&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;和&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;属性设置&lt;/span&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;。&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;color: #505A64; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2E3742; background-color: #FFFFFF; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px;&quot;&gt;WebDAV Server：&lt;/span&gt;&lt;span style=&quot;color: #2E3742; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; background-color: #FFFFFF;&quot;&gt;打开&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2E3742; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; background-color: #FFFFFF;&quot;&gt;WebDAV Server → 设置 → 高级设置 →&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; background-color: #FFFFFF; box-sizing: border-box; font-weight: 700; color: #3C4650; padding-left: 2px; padding-right: 2px;&quot;&gt;启用 WebDAV 日志&lt;/span&gt;&lt;span style=&quot;font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; background-color: #FFFFFF; color: #505A64;&quot;&gt;：这会记录与 WebDAV 活动相关的事件。&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; font-size: 16px; background-color: #FFFFFF; color: #505A64;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;通过日志中心可以查询用户登录NAS时间、操作文件等行为日志。&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;font-size: 16px; background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;3、&lt;/span&gt;&lt;a href=&quot;https://blog.swihp.cn/?id=1439&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-size: 16px; background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;外网如何访问我的NAS&lt;/span&gt;&lt;span style=&quot;background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;; font-size: 16px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;color: #191919;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;①无公网IP：通过 QuickConnect 自定义 ID 访问&lt;span style=&quot;color: #191919;&quot;&gt;&amp;nbsp;。&lt;/span&gt;（例：quickconnect.cn/test666）&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;color: #191919;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;②有公网IP：使用 公网IP地址或者 DDNS 访问 。（例：test666.synology.me:5000 或 120.100.9.55:5000 ）&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;color: #191919;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;③ VPN：通过公司或者学校 vpn 连接后与局域网访问方式一样。（例：192.168.20.100:5000）&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;color: #191919;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;span style=&quot;margin: 16px 0px; padding: 0px; outline: 0px; overflow-wrap: break-word; word-break: break-all; color: #191919; line-height: 32px;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/ul&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;font-size: 16px; background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;font-size: 16px; background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;font-size: 16px; background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;font-size: 16px; background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;不做RAID，8块盘，然后呢，我把数据放在两块盘里面，然后这个盘我存满了，因为我这个数据可能就是暂时不用随时打开，然后我就会把硬盘拿出来，然后我再换两块盘新的进去，这样可以吗？&lt;/span&gt;&lt;/p&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span style=&quot;font-size: 16px; background-color: #FFFFFF; color: #505A64; font-family: 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;margin: 15px 0px 5px; padding: 0px 0px 8px; outline: 0px; overflow-wrap: break-word; word-break: break-all; font-size: 18px; font-weight: 400; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; font-family: Inter, Arial, Helvetica, 微软雅黑, &amp;quot;Microsoft YaHei&amp;quot;, Verdana, sans-serif; white-space: normal; box-sizing: border-box;&quot;&gt;&lt;a id=&quot;x_anchor_id4a2657281d&quot; style=&quot;color: rgb(0, 103, 230); box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-weight: inherit;&quot;&gt;&lt;/a&gt;&lt;br/&gt;&lt;/h3&gt;&lt;p data-syno-attrs=&quot;{&amp;quot;textMarks&amp;quot;:[{&amp;quot;_&amp;quot;:&amp;quot;font_family&amp;quot;,&amp;quot;value&amp;quot;:&amp;quot;Arial&amp;quot;}]}&quot; style=&quot;padding: 1.33333px 0px 0px; margin: 0px; line-height: 1.8;&quot;&gt;&lt;span data-syno-text=&quot;true&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 07 May 2026 09:40:09 +0800</pubDate></item><item><title>群晖 Synology NAS 在高校内验证登录</title><link>https://blog.swihp.cn/?id=1435</link><description>&lt;p data-v-2505e99a=&quot;&quot; style=&quot;white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span data-v-2505e99a=&quot;&quot;&gt;群晖 Synology NAS 连接至校园网或者一些企业单位后，校园或者企业需要登录个人帐号验证后才能联网，由于群晖本身没有web浏览器用于网页登录认证导致 NAS 无法联网更新套件、更新系统等操作。推荐几种方法大家可以尝试下：&lt;/span&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; margin-top: 24px; margin-bottom: 0px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span data-v-2505e99a=&quot;&quot; style=&quot;font-weight: 600;&quot;&gt;1. &lt;/span&gt;&lt;span style=&quot;font-weight: 600;&quot;&gt;使用代理&lt;/span&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span data-v-2505e99a=&quot;&quot;&gt;首先去群晖官网 &lt;a href=&quot;https://www.synology.cn/zh-cn/support/download&quot; target=&quot;_blank&quot;&gt;下载&lt;/a&gt; 套件 &lt;/span&gt;&lt;a href=&quot;https://archive.synology.cn/download/Package/ProxyServer&quot; target=&quot;_blank&quot;&gt;&lt;span data-v-2505e99a=&quot;&quot; style=&quot;font-weight: 600;&quot;&gt;Proxy Server&lt;/span&gt;&lt;/a&gt;&lt;span data-v-2505e99a=&quot;&quot;&gt;，然后打开群晖套件中心，选择手动安装。&lt;/span&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span data-v-2505e99a=&quot;&quot;&gt;打开 Proxy Server 套件，做好配置，然后将个人电脑的代理服务器设置为 NAS IP 地址&lt;/span&gt;&lt;span data-v-2505e99a=&quot;&quot;&gt;。&lt;/span&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span data-v-2505e99a=&quot;&quot; style=&quot;font-weight: 600;&quot;&gt;代理ip为群晖的ip地址，端口为Proxy Server中设置的端口&lt;/span&gt;&lt;span data-v-2505e99a=&quot;&quot;&gt;。&lt;/span&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span data-v-2505e99a=&quot;&quot;&gt;设置好代理服务器后，打开个人电脑网页刷新出上网认证网页，登录成功即可。&lt;/span&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;2. Container Manager 导入一个浏览器容器&lt;/b&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;首先在其他docker中安装一个浏览器容器，然后导出容器，再导入Container Manager中。&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;通过容器中的浏览器页面登录认证后一样可以解决群晖NAS 上网认证问题&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong&gt;3. 咨询校园或者企业网络认证中心，Linux 登录验证方法&lt;/strong&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;margin-top: 24px; margin-bottom: 0px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;b&gt;例：&lt;a href=&quot;https://its.pku.edu.cn/download_ipgwclient.jsp&quot; target=&quot;_blank&quot;&gt;北京大学网络服务&lt;/a&gt; &lt;/b&gt;&lt;/p&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; margin-top: 24px; margin-bottom: 0px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span data-v-2505e99a=&quot;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;box-sizing: inherit; border: 0px; padding: 0px; margin: 10px 0px; font-family: &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Tahoma, Arial, Helvetica, &amp;quot;sans-serif&amp;quot;; -webkit-font-smoothing: subpixel-antialiased; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); font-size: 18px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;命令行【供参考】&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;app-table&quot; style=&quot;box-sizing: inherit; border: 0px; padding: 0px; margin: 15px; font-family: &amp;quot;Microsoft Yahei&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Tahoma, Arial, Helvetica, &amp;quot;sans-serif&amp;quot;; -webkit-font-smoothing: subpixel-antialiased; line-height: 1.5; color: rgb(51, 51, 51); font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div style=&quot;box-sizing: inherit; border: 0px; padding: 0px; margin: 0px; -webkit-font-smoothing: subpixel-antialiased;&quot;&gt;由于网关登录方式调整，原网关命令行登录程序connect已经停止使用，新的命令行登录方式请参考下面的示例。&lt;/div&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Bash&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;code style=&quot;box-sizing: inherit; border: 0px; padding: 2px 4px; margin: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; -webkit-font-smoothing: subpixel-antialiased; font-size: 14.4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; white-space-collapse: preserve;&quot;&gt; &amp;nbsp;curl -X POST &amp;nbsp;-d &amp;#39;cmd=open&amp;amp;username=**********&amp;amp;password=******&amp;amp;iprange=free&amp;#39; https://its4.pku.edu.cn/cas/ITSClient&lt;/code&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Python&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;code style=&quot;box-sizing: inherit; border: 0px; padding: 2px 4px; margin: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; -webkit-font-smoothing: subpixel-antialiased; font-size: 14.4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; white-space-collapse: preserve;&quot;&gt; &amp;nbsp;import requests
 &amp;nbsp;url = &amp;quot;https://its4.pku.edu.cn/cas/ITSClient&amp;quot;
 &amp;nbsp;payload = {
 &amp;nbsp; &amp;nbsp; &amp;nbsp;# 填写账号和密码
 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;username&amp;#39;: &amp;#39;********&amp;#39;,
 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;password&amp;#39;: &amp;#39;********&amp;#39;,
 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;iprange&amp;#39;: &amp;#39;free&amp;#39;,
 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;cmd&amp;#39;: &amp;#39;open&amp;#39;
 &amp;nbsp;}
 &amp;nbsp;headers = {&amp;#39;Content-type&amp;#39;: &amp;#39;application/x-www-form-urlencoded&amp;#39;}
 &amp;nbsp;result = requests.post(url, params=payload, headers=headers)
 &amp;nbsp;print(result.text)&lt;/code&gt;&lt;/ul&gt;&lt;div style=&quot;box-sizing: inherit; border: 0px; padding: 0px; margin: 0px; -webkit-font-smoothing: subpixel-antialiased;&quot;&gt;请使用学号或者职工号替代username后面的星号，并填写您的密码password。&lt;br style=&quot;box-sizing: inherit;&quot;/&gt;如需断开链接，请将open改为disconnect。&lt;/div&gt;&lt;/div&gt;&lt;p data-v-2505e99a=&quot;&quot; style=&quot;white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 29px; margin-top: 24px; margin-bottom: 0px; padding: 0px; color: rgb(47, 50, 56); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 14 Oct 2025 14:14:33 +0800</pubDate></item><item><title>群晖Synology DSM安装常见问题</title><link>https://blog.swihp.cn/?id=1434</link><description>&lt;p&gt;安装时系统磁盘空间不足&lt;/p&gt;&lt;p&gt;可以浏览器输入 http://&amp;lt;ip&amp;gt;:5000/webman/clean_system_disk.cgi 尝试&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 30 Sep 2025 11:15:03 +0800</pubDate></item><item><title>群晖SynologyNAS DSM通过 acme.sh 实现域名证书自动更新</title><link>https://blog.swihp.cn/?id=1433</link><description>&lt;p&gt;注意事项：&lt;/p&gt;&lt;p&gt;①尽量使使用root帐号去操作，管理员帐号可能会出现各种报错。&lt;/p&gt;&lt;p&gt;②群晖默认证书保存目录：&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;/usr/syno/etc/certificate/_archive/$(cat /usr/syno/etc/certificate/_archive/DEFAULT)&lt;/p&gt;&lt;p&gt;默认情况下群晖的默认证书是官方的证书，acme导入证书前一定先手动导入一次证书。&lt;/p&gt;&lt;p&gt;③阿里与腾讯及其他域名供应商的 dns api 参数不一样，具体可参考 Acme.sh 官方文档 中的「DNS API」列表。&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/acmesh-official/acme.sh/wiki/dnsapi&quot; _src=&quot;https://github.com/acmesh-official/acme.sh/wiki/dnsapi&quot;&gt;https://github.com/acmesh-official/acme.sh/wiki/dnsapi&lt;/a&gt;&lt;/p&gt;&lt;p&gt;④准备申请证书的域名一定先去&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://ram.console.aliyun.com/profile/access-keys&quot; target=&quot;_blank&quot; title=&quot;阿里云&quot; style=&quot;text-wrap-mode: wrap;&quot;&gt;阿里云&lt;/a&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;、&lt;/span&gt;&lt;a href=&quot;https://console.dnspod.cn/account/token/token&quot; target=&quot;_blank&quot; style=&quot;text-wrap-mode: wrap;&quot;&gt;腾讯云(DNSPod)&lt;/a&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&amp;nbsp;看下有没有解析记录，新申请的域名或者从没有使用的二级域名会申请失败。&lt;/span&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;h2&gt;一、准备工作&lt;/h2&gt;&lt;p&gt;登录&amp;nbsp;&lt;a href=&quot;https://ram.console.aliyun.com/profile/access-keys&quot; target=&quot;_blank&quot; title=&quot;阿里云&quot;&gt;阿里云&lt;/a&gt;、&lt;a href=&quot;https://console.dnspod.cn/account/token/token&quot; target=&quot;_blank&quot;&gt;腾讯云(DNSPod)&lt;/a&gt; 创建并获取API密钥保存下来。&lt;/p&gt;&lt;h2&gt;二、使用ssh登录群晖&lt;/h2&gt;&lt;p&gt;1.下载acme.sh&lt;/p&gt;&lt;p&gt;acme.sh 是一个用于自动化获取和管理 Let’s Encrypt 证书的脚本。&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;curl&amp;nbsp;https://get.acme.sh&amp;nbsp;|&amp;nbsp;sh&amp;nbsp;-s&amp;nbsp;email=1396053199@qq.com&amp;nbsp;--force
或
wget&amp;nbsp;-O&amp;nbsp;-&amp;nbsp;&amp;nbsp;https://get.acme.sh&amp;nbsp;|&amp;nbsp;sh&amp;nbsp;-s&amp;nbsp;email=1396053199@qq.com&amp;nbsp;--force&lt;/pre&gt;&lt;p&gt;将 1396053199@qq.com 替换为自己的有效电子邮件地址，用于接收 Let’s Encrypt 的重要通知，如证书即将过期等信息。&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;安装过程会有报错，群晖系统默认没有&lt;/span&gt;安装或没有权限启用&amp;nbsp;cron&amp;nbsp;服务（定时任务工具），而 Acme.sh 依赖&amp;nbsp;cron&amp;nbsp;实现证书自动续签。&lt;/p&gt;&lt;p&gt;可以忽略这个报错，最后出现 Install success 就可以。acme.sh 会自动添加到系统环境变量中。&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/cert001.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;如果成功安装，脚本会将 acme.sh 下载到当前用户目录下，也就是 ~/.acme.sh 目录。&lt;/p&gt;&lt;p&gt;通过 cd ~/.acme.sh 或 cd /var/services/homes/当前登录的用户名/.acme.sh 进入目录&lt;/p&gt;&lt;p&gt;使用命令验证 acme.sh 是否安装成功：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;cd&amp;nbsp;~/.acme.sh&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#或&amp;nbsp;cd&amp;nbsp;/var/services/homes/sunfeng/.acme.sh&amp;nbsp;“sunfeng”为我当前登录的用户名
./acme.sh&amp;nbsp;--version&lt;/pre&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/cert002.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;2. 添加API密钥至/etc/profile&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;#阿里云&amp;nbsp;API&amp;nbsp;密钥添加到环境变量
echo&amp;nbsp;&amp;quot;export&amp;nbsp;Ali_Key=&amp;quot;AccessKey&amp;nbsp;ID&amp;quot;&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/profile
echo&amp;nbsp;&amp;quot;export&amp;nbsp;Ali_Secret=&amp;quot;AccessKey&amp;nbsp;Secret&amp;quot;&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/profile&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;source&amp;nbsp;/etc/profile

#&amp;nbsp;腾讯云&amp;nbsp;DNSPod&amp;nbsp;的&amp;nbsp;API&amp;nbsp;密钥添加到环境变量
echo&amp;nbsp;&amp;quot;export&amp;nbsp;DP_Id=&amp;quot;AccessKey&amp;nbsp;ID&amp;quot;&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/profile
echo&amp;nbsp;&amp;quot;export&amp;nbsp;DP_Key=&amp;quot;AccessKey&amp;nbsp;Token&amp;quot;&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/etc/profile&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;source&amp;nbsp;/etc/profile&lt;/pre&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;#&amp;nbsp;删除包含&amp;quot;export&amp;nbsp;DP_Id=&amp;quot;的行
sudo&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;/export&amp;nbsp;DP_Id=/d&amp;#39;&amp;nbsp;/etc/profile

#&amp;nbsp;删除包含&amp;quot;export&amp;nbsp;DP_Key=&amp;quot;的行
sudo&amp;nbsp;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;/export&amp;nbsp;DP_Key=/d&amp;#39;&amp;nbsp;/etc/profile&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;3.申请证书，填写的域名一定是阿里、腾讯或其他域名供应商的管理页面上有过解析记录&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;./acme.sh&amp;nbsp;--issue&amp;nbsp;--dns&amp;nbsp;dns_ali&amp;nbsp;-d&amp;nbsp;example.com&amp;nbsp;-d&amp;nbsp;*.example.com

./acme.sh&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;使用&amp;nbsp;acme.sh&amp;nbsp;脚本执行证书申请操作
&amp;nbsp;&amp;nbsp;--issue&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;核心参数：表示证书申请流程
&amp;nbsp;&amp;nbsp;--dns&amp;nbsp;dns_ali&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;指定&amp;nbsp;DNS&amp;nbsp;验证方式，这里使用阿里云（Aliyun）的&amp;nbsp;DNS&amp;nbsp;解析接口
&amp;nbsp;&amp;nbsp;-d&amp;nbsp;example.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;为主域名&amp;nbsp;example.com&amp;nbsp;申请证书
&amp;nbsp;&amp;nbsp;-d&amp;nbsp;*.example.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;同时为该域名的所有子域名（通配符）申请证书&lt;/pre&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/cert003.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;证书申请成功后会保存在 ~/.acme.sh （/root/.acme.sh/） 目录下&lt;/p&gt;&lt;p&gt;4、查看已安装证书信息：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;acme.sh&amp;nbsp;--info&amp;nbsp;-d&amp;nbsp;example.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;example.com&amp;nbsp;改为自己的域名&lt;/pre&gt;&lt;h2&gt;三、替换群晖NAS的默认证书&lt;/h2&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;新申请的证书保存名录：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;#&amp;nbsp;ls&amp;nbsp;/root/.acme.sh/&amp;nbsp;可以看到多了一个example.com&amp;nbsp;或者&amp;nbsp;example.com_ecc的目录&amp;nbsp;此目录下就是新申请的证书
/root/.acme.sh/example.com_ecc/&lt;/pre&gt;&lt;p style=&quot;text-wrap-mode: wrap;&quot;&gt;群晖默认证书保存目录：&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;/usr/syno/etc/certificate/_archive/$(cat&amp;nbsp;/usr/syno/etc/certificate/_archive/DEFAULT)&lt;/pre&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;sudo&amp;nbsp;cp&amp;nbsp;-f&amp;nbsp;&amp;quot;/root/.acme.sh/example.com_ecc/fullchain.cer&amp;quot;&amp;nbsp;&amp;quot;/usr/syno/etc/certificate/_archive/$(cat&amp;nbsp;/usr/syno/etc/certificate/_archive/DEFAULT)/cert.pem&amp;quot;
sudo&amp;nbsp;cp&amp;nbsp;-f&amp;nbsp;&amp;quot;/root/.acme.sh/example.com_ecc/hkcnas.com.key&amp;quot;&amp;nbsp;&amp;quot;/usr/syno/etc/certificate/_archive/$(cat&amp;nbsp;/usr/syno/etc/certificate/_archive/DEFAULT)/privkey.pem&amp;quot;
sudo&amp;nbsp;cp&amp;nbsp;-f&amp;nbsp;&amp;quot;/root/.acme.sh/example.com_ecc/ca.cer&amp;quot;&amp;nbsp;&amp;quot;/usr/syno/etc/certificate/_archive/$(cat&amp;nbsp;/usr/syno/etc/certificate/_archive/DEFAULT)/chain.pem&amp;quot;&lt;/pre&gt;&lt;ol class=&quot;auto-hide-last-sibling-br list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;li&gt;&lt;div class=&quot;auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; line-height: 28px; overflow-anchor: auto;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: ; outline: none; border: 0px solid; margin: 0px; padding: 0px; font-weight: 600; line-height: 28px; overflow-anchor: auto; color: #000000 !important;&quot;&gt;路径格式&lt;/span&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul class=&quot;auto-hide-last-sibling-br list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;li&gt;&lt;p&gt;源路径&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; color: rgb(0, 0, 0); overflow-anchor: auto;&quot;&gt;/root/.acme.sh/hkcnas.com_ecc/&lt;/code&gt;&amp;nbsp;是 ECC 证书的正确存放目录。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;目标路径使用了&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; color: rgb(0, 0, 0); overflow-anchor: auto;&quot;&gt;$(cat /usr/syno/etc/certificate/_archive/DEFAULT)&lt;/code&gt;&amp;nbsp;动态获取群晖默认证书的 ID 目录，能自动定位当前正在使用的证书目录，无需手动填写 ID。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; line-height: 28px; overflow-anchor: auto;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: ; outline: none; border: 0px solid; margin: 0px; padding: 0px; font-weight: 600; line-height: 28px; overflow-anchor: auto; color: #000000 !important;&quot;&gt;文件名映射&lt;/span&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul class=&quot;auto-hide-last-sibling-br list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; color: rgb(0, 0, 0); overflow-anchor: auto;&quot;&gt;fullchain.cer&lt;/code&gt;&amp;nbsp;→&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; color: rgb(0, 0, 0); overflow-anchor: auto;&quot;&gt;cert.pem&lt;/code&gt;（群晖要求的证书文件名）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; color: rgb(0, 0, 0); overflow-anchor: auto;&quot;&gt;hkcnas.com.key&lt;/code&gt;&amp;nbsp;→&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; color: rgb(0, 0, 0); overflow-anchor: auto;&quot;&gt;privkey.pem&lt;/code&gt;（群晖要求的私钥文件名）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; color: rgb(0, 0, 0); overflow-anchor: auto;&quot;&gt;ca.cer&lt;/code&gt;&amp;nbsp;→&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; color: rgb(0, 0, 0); overflow-anchor: auto;&quot;&gt;chain.pem&lt;/code&gt;（群晖要求的中间证书文件名）&lt;br class=&quot;container-utlnW2 wrapper-d0Cc1k undefined&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; overflow-anchor: auto;&quot;/&gt;文件名映射完全符合群晖系统对证书文件的命名规范，确保服务能正确识别。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; line-height: 28px; overflow-anchor: auto;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: ; outline: none; border: 0px solid; margin: 0px; padding: 0px; font-weight: 600; line-height: 28px; overflow-anchor: auto; color: #000000 !important;&quot;&gt;参数&amp;nbsp;&lt;code style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 0px; padding: 0px; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-feature-settings: normal; font-size: 14px; font-variation-settings: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0.06); border-radius: 4px; overflow-anchor: auto;&quot;&gt;-f&lt;/code&gt;&lt;/span&gt;：&lt;br class=&quot;container-utlnW2 wrapper-d0Cc1k undefined&quot; style=&quot;-webkit-font-smoothing: antialiased; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: none; border: 0px solid; margin: 1em; padding: 0px; font-size: 20px; overflow-anchor: auto; content: &amp;quot;&amp;quot;; display: block;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;强制覆盖目标文件（如果已存在），避免因文件已存在而复制失败，适合证书更新场景。&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;然后重启 Nginx 即可看到证书已更新&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;nginx&amp;nbsp;-s&amp;nbsp;reload&lt;/pre&gt;&lt;h2&gt;四、设置自动更新&lt;br/&gt;&lt;/h2&gt;&lt;p&gt;acme 申请证书每 60 天自动更新，默认情况下你无需任何操作，但是最开始下载安装 acme 时&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&amp;nbsp;cron&amp;nbsp;服务报错，不确定是否可以自动更新。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;acme&lt;/span&gt;可以强制续签证书：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;acme.sh&amp;nbsp;--renew&amp;nbsp;-d&amp;nbsp;example.com&amp;nbsp;--force&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;example.com&amp;nbsp;改为自己的域名&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;！！！修改下面脚本中的&amp;nbsp;DOMAIN=&amp;quot;example.com&amp;quot; 与&amp;nbsp;DNS_MODE=&amp;quot;dns_ali&amp;quot;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;未检测到证书：强制执行续签&lt;/p&gt;&lt;p&gt;证书已过期（剩余 0 天）：强制执行续签&lt;/p&gt;&lt;p&gt;证书剩余有效期≤10 天：&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;强制&lt;/span&gt;执行续签&lt;/p&gt;&lt;p&gt;证书剩余有效期 &amp;gt; 10 天：不执行任何操作（无论是否超过 20 天）&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;#!/bin/bash
set&amp;nbsp;-e&amp;nbsp;&amp;nbsp;#&amp;nbsp;遇到错误立即退出

#&amp;nbsp;====================&amp;nbsp;配置参数&amp;nbsp;====================
DOMAIN=&amp;quot;example.com&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;你的域名
ACME_CERT_PATH=&amp;quot;/root/.acme.sh&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;acme.sh证书存放路径
SYNO_CERT_ARCHIVE=&amp;quot;/usr/syno/etc/certificate/_archive&amp;quot;&amp;nbsp;&amp;nbsp;#&amp;nbsp;群晖证书存档目录
DNS_MODE=&amp;quot;dns_ali&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;DNS验证方式（根据你的服务商修改&amp;nbsp;https://github.com/acmesh-official/acme.sh/wiki/dnsapi）
CERT_TYPE=&amp;quot;ecc&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;证书类型（ecc/rsa，留空自动适配）
RENEW_THRESHOLD=10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;少于此天数时强制续签（天）
#&amp;nbsp;=================================================

#&amp;nbsp;函数：显示信息
info()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;-e&amp;nbsp;&amp;quot;\033[1;34m===&amp;nbsp;$1&amp;nbsp;===\033[0m&amp;quot;
}

#&amp;nbsp;函数：显示成功信息
success()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;-e&amp;nbsp;&amp;quot;\033[1;32m===&amp;nbsp;$1&amp;nbsp;===\033[0m&amp;quot;
}

#&amp;nbsp;函数：显示错误信息
error()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;-e&amp;nbsp;&amp;quot;\033[1;31m===&amp;nbsp;错误：$1&amp;nbsp;===\033[0m&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit&amp;nbsp;1
}

#&amp;nbsp;函数：检查证书剩余有效期（天）
check_cert_validity()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;local&amp;nbsp;cert_file=$1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;[&amp;nbsp;!&amp;nbsp;-f&amp;nbsp;&amp;quot;$cert_file&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fi

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;获取证书过期时间（Unix时间戳）
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;local&amp;nbsp;end_date=$(openssl&amp;nbsp;x509&amp;nbsp;-in&amp;nbsp;&amp;quot;$cert_file&amp;quot;&amp;nbsp;-noout&amp;nbsp;-enddate&amp;nbsp;|&amp;nbsp;cut&amp;nbsp;-d=&amp;nbsp;-f2)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;local&amp;nbsp;end_timestamp=$(date&amp;nbsp;-d&amp;nbsp;&amp;quot;$end_date&amp;quot;&amp;nbsp;+%s&amp;nbsp;2&amp;gt;/dev/null&amp;nbsp;||&amp;nbsp;true)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;local&amp;nbsp;current_timestamp=$(date&amp;nbsp;+%s)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;[&amp;nbsp;-z&amp;nbsp;&amp;quot;$end_timestamp&amp;quot;&amp;nbsp;]&amp;nbsp;||&amp;nbsp;[&amp;nbsp;&amp;quot;$end_timestamp&amp;quot;&amp;nbsp;-le&amp;nbsp;&amp;quot;$current_timestamp&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;0&amp;nbsp;&amp;nbsp;#&amp;nbsp;证书已过期
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fi

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;计算剩余天数
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;local&amp;nbsp;diff_seconds=$((end_timestamp&amp;nbsp;-&amp;nbsp;current_timestamp))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;local&amp;nbsp;diff_days=$((diff_seconds&amp;nbsp;/&amp;nbsp;86400))&amp;nbsp;&amp;nbsp;#&amp;nbsp;86400秒=1天
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;$diff_days
}

#&amp;nbsp;1.&amp;nbsp;检查证书是否已存在（支持RSA和ECC）
info&amp;nbsp;&amp;quot;检查证书是否已存在&amp;quot;
CERT_DIR_RSA=&amp;quot;$ACME_CERT_PATH/$DOMAIN&amp;quot;
CERT_DIR_ECC=&amp;quot;$ACME_CERT_PATH/${DOMAIN}_ecc&amp;quot;
CERT_EXISTS=0
CURRENT_CERT_DIR=&amp;quot;&amp;quot;
CERT_FILE=&amp;quot;&amp;quot;

#&amp;nbsp;优先检查配置的证书类型
if&amp;nbsp;[&amp;nbsp;&amp;quot;$CERT_TYPE&amp;quot;&amp;nbsp;=&amp;nbsp;&amp;quot;ecc&amp;quot;&amp;nbsp;]&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;[&amp;nbsp;-d&amp;nbsp;&amp;quot;$CERT_DIR_ECC&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CURRENT_CERT_DIR=&amp;quot;$CERT_DIR_ECC&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_FILE=&amp;quot;$CURRENT_CERT_DIR/fullchain.cer&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_EXISTS=1
elif&amp;nbsp;[&amp;nbsp;&amp;quot;$CERT_TYPE&amp;quot;&amp;nbsp;=&amp;nbsp;&amp;quot;rsa&amp;quot;&amp;nbsp;]&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;[&amp;nbsp;-d&amp;nbsp;&amp;quot;$CERT_DIR_RSA&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CURRENT_CERT_DIR=&amp;quot;$CERT_DIR_RSA&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_FILE=&amp;quot;$CURRENT_CERT_DIR/fullchain.cer&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_EXISTS=1
#&amp;nbsp;未指定类型时自动检测
elif&amp;nbsp;[&amp;nbsp;-z&amp;nbsp;&amp;quot;$CERT_TYPE&amp;quot;&amp;nbsp;]&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;[&amp;nbsp;-d&amp;nbsp;&amp;quot;$CERT_DIR_ECC&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CURRENT_CERT_DIR=&amp;quot;$CERT_DIR_ECC&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_FILE=&amp;quot;$CURRENT_CERT_DIR/fullchain.cer&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_TYPE=&amp;quot;ecc&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_EXISTS=1
elif&amp;nbsp;[&amp;nbsp;-z&amp;nbsp;&amp;quot;$CERT_TYPE&amp;quot;&amp;nbsp;]&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;[&amp;nbsp;-d&amp;nbsp;&amp;quot;$CERT_DIR_RSA&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CURRENT_CERT_DIR=&amp;quot;$CERT_DIR_RSA&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_FILE=&amp;quot;$CURRENT_CERT_DIR/fullchain.cer&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_TYPE=&amp;quot;rsa&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_EXISTS=1
fi

if&amp;nbsp;[&amp;nbsp;$CERT_EXISTS&amp;nbsp;-eq&amp;nbsp;1&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;发现已存在的$CERT_TYPE证书：$CURRENT_CERT_DIR&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;检查证书剩余有效期
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;info&amp;nbsp;&amp;quot;检查证书剩余有效期&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;REMAIN_DAYS=$(check_cert_validity&amp;nbsp;&amp;quot;$CERT_FILE&amp;quot;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;证书剩余有效期：$REMAIN_DAYS&amp;nbsp;天&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;根据剩余天数执行不同操作
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;[&amp;nbsp;$REMAIN_DAYS&amp;nbsp;-eq&amp;nbsp;0&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;证书已过期，将强制执行续签&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;elif&amp;nbsp;[&amp;nbsp;$REMAIN_DAYS&amp;nbsp;-le&amp;nbsp;$RENEW_THRESHOLD&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;证书剩余有效期不足$RENEW_THRESHOLD天，将执行续签&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;success&amp;nbsp;&amp;quot;证书有效期充足（剩余$REMAIN_DAYS天），无需更新&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit&amp;nbsp;0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fi
else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;未发现已存在的证书，将执行新申请&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;未指定类型时默认使用ECC
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;[&amp;nbsp;-z&amp;nbsp;&amp;quot;$CERT_TYPE&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_TYPE=&amp;quot;ecc&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;默认使用ECC证书类型&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fi
fi

#&amp;nbsp;2.&amp;nbsp;生成证书命令参数
info&amp;nbsp;&amp;quot;准备证书更新/申请命令&amp;quot;
ACME_CMD_BASE=&amp;quot;$ACME_CERT_PATH/acme.sh&amp;quot;
DOMAIN_PARAMS=&amp;quot;-d&amp;nbsp;$DOMAIN&amp;nbsp;-d&amp;nbsp;*.${DOMAIN}&amp;quot;
FORCE_PARAM=&amp;quot;--force&amp;quot;
DNS_PARAM=&amp;quot;--dns&amp;nbsp;$DNS_MODE&amp;quot;
CERT_TYPE_PARAM=&amp;quot;&amp;quot;
if&amp;nbsp;[&amp;nbsp;&amp;quot;$CERT_TYPE&amp;quot;&amp;nbsp;=&amp;nbsp;&amp;quot;ecc&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_TYPE_PARAM=&amp;quot;--ecc&amp;quot;
fi

#&amp;nbsp;3.&amp;nbsp;执行更新或申请
info&amp;nbsp;&amp;quot;执行证书操作（$([&amp;nbsp;$CERT_EXISTS&amp;nbsp;-eq&amp;nbsp;1&amp;nbsp;]&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;echo&amp;nbsp;&amp;quot;续签&amp;quot;&amp;nbsp;||&amp;nbsp;echo&amp;nbsp;&amp;quot;新申请&amp;quot;)）&amp;quot;
if&amp;nbsp;[&amp;nbsp;$CERT_EXISTS&amp;nbsp;-eq&amp;nbsp;1&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;证书已存在，执行续签
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;!&amp;nbsp;$ACME_CMD_BASE&amp;nbsp;--renew&amp;nbsp;$DOMAIN_PARAMS&amp;nbsp;$FORCE_PARAM&amp;nbsp;$DNS_PARAM&amp;nbsp;$CERT_TYPE_PARAM;&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error&amp;nbsp;&amp;quot;证书续签失败，请检查acme.sh配置和网络&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fi
else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;证书不存在，执行新申请
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;!&amp;nbsp;$ACME_CMD_BASE&amp;nbsp;--issue&amp;nbsp;$DOMAIN_PARAMS&amp;nbsp;$FORCE_PARAM&amp;nbsp;$DNS_PARAM&amp;nbsp;$CERT_TYPE_PARAM;&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error&amp;nbsp;&amp;quot;证书申请失败，请检查acme.sh配置和网络&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fi
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;申请后更新证书目录变量
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;[&amp;nbsp;&amp;quot;$CERT_TYPE&amp;quot;&amp;nbsp;=&amp;nbsp;&amp;quot;ecc&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CURRENT_CERT_DIR=&amp;quot;$CERT_DIR_ECC&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CURRENT_CERT_DIR=&amp;quot;$CERT_DIR_RSA&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fi
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CERT_FILE=&amp;quot;$CURRENT_CERT_DIR/fullchain.cer&amp;quot;
fi

#&amp;nbsp;4.&amp;nbsp;验证证书文件是否存在
info&amp;nbsp;&amp;quot;验证证书文件完整性&amp;quot;
REQUIRED_FILES=(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;$CURRENT_CERT_DIR/fullchain.cer&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;$CURRENT_CERT_DIR/$DOMAIN.key&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;$CURRENT_CERT_DIR/ca.cer&amp;quot;
)

for&amp;nbsp;file&amp;nbsp;in&amp;nbsp;&amp;quot;${REQUIRED_FILES[@]}&amp;quot;;&amp;nbsp;do
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;[&amp;nbsp;!&amp;nbsp;-f&amp;nbsp;&amp;quot;$file&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error&amp;nbsp;&amp;quot;缺少必要的证书文件：$file&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fi
done

#&amp;nbsp;5.&amp;nbsp;复制证书到群晖默认目录并替换
info&amp;nbsp;&amp;quot;复制证书到群晖系统目录&amp;quot;
#&amp;nbsp;获取群晖当前默认证书ID
CERT_ID=$(cat&amp;nbsp;&amp;quot;$SYNO_CERT_ARCHIVE/DEFAULT&amp;quot;&amp;nbsp;2&amp;gt;/dev/null&amp;nbsp;||&amp;nbsp;true)
if&amp;nbsp;[&amp;nbsp;-z&amp;nbsp;&amp;quot;$CERT_ID&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error&amp;nbsp;&amp;quot;无法获取群晖默认证书ID，请检查证书目录&amp;quot;
fi

DEST_DIR=&amp;quot;$SYNO_CERT_ARCHIVE/$CERT_ID&amp;quot;
if&amp;nbsp;[&amp;nbsp;!&amp;nbsp;-d&amp;nbsp;&amp;quot;$DEST_DIR&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error&amp;nbsp;&amp;quot;群晖证书目标目录不存在：$DEST_DIR&amp;quot;
fi

#&amp;nbsp;强制复制并覆盖
echo&amp;nbsp;&amp;quot;复制证书到目标目录：$DEST_DIR&amp;quot;
cp&amp;nbsp;-f&amp;nbsp;&amp;quot;$CURRENT_CERT_DIR/fullchain.cer&amp;quot;&amp;nbsp;&amp;quot;$DEST_DIR/cert.pem&amp;quot;&amp;nbsp;||&amp;nbsp;error&amp;nbsp;&amp;quot;复制证书文件失败&amp;quot;
cp&amp;nbsp;-f&amp;nbsp;&amp;quot;$CURRENT_CERT_DIR/$DOMAIN.key&amp;quot;&amp;nbsp;&amp;quot;$DEST_DIR/privkey.pem&amp;quot;&amp;nbsp;||&amp;nbsp;error&amp;nbsp;&amp;quot;复制私钥文件失败&amp;quot;
cp&amp;nbsp;-f&amp;nbsp;&amp;quot;$CURRENT_CERT_DIR/ca.cer&amp;quot;&amp;nbsp;&amp;quot;$DEST_DIR/chain.pem&amp;quot;&amp;nbsp;||&amp;nbsp;error&amp;nbsp;&amp;quot;复制CA证书失败&amp;quot;

#&amp;nbsp;6.&amp;nbsp;重启相关服务确保生效
info&amp;nbsp;&amp;quot;重启服务使证书生效&amp;quot;
if&amp;nbsp;!&amp;nbsp;nginx&amp;nbsp;-s&amp;nbsp;reload;&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error&amp;nbsp;&amp;quot;Nginx重启失败，请手动检查&amp;quot;
fi


success&amp;nbsp;&amp;quot;所有操作完成！证书已$(&amp;nbsp;[&amp;nbsp;$CERT_EXISTS&amp;nbsp;-eq&amp;nbsp;1&amp;nbsp;]&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;echo&amp;nbsp;&amp;quot;更新&amp;quot;&amp;nbsp;||&amp;nbsp;echo&amp;nbsp;&amp;quot;安装&amp;quot;&amp;nbsp;)并生效&amp;quot;&lt;/pre&gt;&lt;p&gt;复制上面的代码并修改 “&lt;strong style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;example.com&lt;/span&gt;&lt;/strong&gt;”“&lt;strong style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;dns_ali&lt;/span&gt;&lt;/strong&gt;”另存为 “update_synology_cert.sh”（文件名可以随便定义）&lt;/p&gt;&lt;p&gt;或者直接&amp;nbsp;&lt;a href=&quot;https://nas.swihp.cn:39997/file/file/update_synology_cert.sh&quot; target=&quot;_blank&quot;&gt;下载&lt;/a&gt;&amp;nbsp;我的脚本修改&amp;nbsp;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;“&lt;/span&gt;&lt;strong style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;example.com&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;”“&lt;/span&gt;&lt;strong style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;dns_ali&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;”&lt;a href=&quot;https://nas.swihp.cn:39997/file/file/update_synology_cert.sh&quot; target=&quot;_blank&quot; title=&quot;update_synology_cert.sh&quot;&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;update_synology_cert.sh&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;然后上传至群晖个人home目录下（目录自己随意选择），记住并复制“位置”信息。&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/cert004.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;打开计划任务：控制面板→计划任务→新增→用户自定义的脚本&lt;/p&gt;&lt;p&gt;用户帐号一定选择 “root”，&lt;/p&gt;&lt;p&gt;然后任务设置→用户自定义的脚本输入：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;cd&amp;nbsp;/volume1/homes/sunfeng/
chmod&amp;nbsp;+x&amp;nbsp;update_synology_cert.sh
./update_synology_cert.sh&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/%E8%AE%A1%E5%88%92%E4%BB%BB%E5%8A%A1002.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;保存计划任务即可，以后就不用操心证书更新问题了&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 13 Aug 2025 12:43:55 +0800</pubDate></item><item><title>群晖docker安装dreamacro/clash + haishanh/yacd面板</title><link>https://blog.swihp.cn/?id=1432</link><description>&lt;p&gt;1、下载docker镜像&amp;nbsp;&lt;a href=&quot;https://nas.swihp.cn:39997/file/file/dreamacro-clash.tar&quot; target=&quot;_blank&quot;&gt;dreamacro/clash&lt;/a&gt; 、 &lt;a href=&quot;https://nas.swihp.cn:39997/file/file/haishanh-yacd.tar&quot; target=&quot;_blank&quot;&gt;haishanh/yacd&lt;/a&gt;&amp;nbsp; 并导入NAS，如果你的NAS能访问docker 请忽略此步。&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/dockerupload.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;2、准备 clash 配置文件并修改配置（没有 clash 配置文件请止步直接放弃，后边的内容不适合您）&lt;/p&gt;&lt;p&gt;打开配置文件 查找并修改&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;external-controller:&amp;nbsp;&amp;#39;0.0.0.0:9090&amp;#39;
allow-lan:&amp;nbsp;true&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash001.png&quot; width=&quot;&quot; height=&quot;&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;width: 397px; height: 135px;&quot;/&gt;&lt;/p&gt;&lt;p&gt;然后将配置文件上传至 NAS&amp;nbsp; 目录下&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash002.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;3、打开 Container Manager → 项目 → 新增 ，直接 docker-compose 部署，&lt;a href=&quot;https://nas.swihp.cn:39997/file/file/clash_compose.yaml&quot; target=&quot;_blank&quot; title=&quot;clash_compose.yaml&quot; textvalue=&quot;clash_compose.yaml&quot;&gt;clash_compose.yaml&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-markdown&quot;&gt;version:&amp;nbsp;&amp;#39;3&amp;#39;
services:
&amp;nbsp;&amp;nbsp;yacd:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;image:&amp;nbsp;haishanh/yacd
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;container_name:&amp;nbsp;yacd
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ports:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;31003:80&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;restart:&amp;nbsp;always&amp;nbsp;&amp;nbsp;#&amp;nbsp;自动重启配置
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;networks:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;clash-network

&amp;nbsp;&amp;nbsp;clash:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;image:&amp;nbsp;dreamacro/clash
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;container_name:&amp;nbsp;clash
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ports:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;7890:7890&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;7891:7891&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;7892:7892&amp;quot;&amp;nbsp;#可以去掉，一般用不到
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;7893:7893&amp;quot;&amp;nbsp;#可以去掉，一般用不到
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;9090:9090&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;volumes:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;./config.yaml:/root/.config/clash/config.yaml&amp;nbsp;&amp;nbsp;&amp;nbsp;#这里很重要
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;restart:&amp;nbsp;always&amp;nbsp;&amp;nbsp;#&amp;nbsp;自动重启配置
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;networks:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;clash-network

networks:
&amp;nbsp;&amp;nbsp;clash-network:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;driver:&amp;nbsp;bridge&lt;/pre&gt;&lt;p&gt;路径很重要 ！！！&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash003.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash004.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash005.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;4、打开 http://NAS_IP:31003 , 在 API Base URL 处输入 http://NAS_IP:9090&amp;nbsp;, 点击 ADD。（！！！“NAS_IP” 是NAS的局域网 IP 地址，一定改成自己NAS的局域网 IP 地址）&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash006.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash007.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;5、开始开心的玩耍吧&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash008.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;NAS本身如果需要走代理也要启用一下，地址添写127.0.0.1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/clash009.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 09 Aug 2025 23:42:51 +0800</pubDate></item><item><title>群晖Synology NAS docker安装带 web UI 的openvpn</title><link>https://blog.swihp.cn/?id=1431</link><description>&lt;div class=&quot;markdown-heading&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; position: relative; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); margin-top: 0px !important;&quot;&gt;&lt;h1 tabindex=&quot;-1&quot; class=&quot;heading-element&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid rgba(209, 217, 224, 0.7); margin-top: 0px !important;&quot;&gt;openvpn&lt;/h1&gt;&lt;a id=&quot;user-content-openvpn&quot; class=&quot;anchor&quot; aria-label=&quot;Permalink: openvpn&quot; href=&quot;https://github.com/GavinTan/openvpn#openvpn&quot; style=&quot;box-sizing: border-box; background-color: rgba(0, 0, 0, 0); color: rgb(9, 105, 218); float: left; padding-right: 4px; margin: auto; line-height: 1; position: absolute; top: 25.2969px; left: -28px; display: flex; width: 28px; height: 28px; border-radius: 6px; opacity: 0; justify-content: center; align-items: center; transform: translateY(calc(-50% - 0.3rem)); text-underline-offset: 0.2rem;&quot;&gt;&lt;svg class=&quot;octicon octicon-link&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/div&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600;&quot;&gt;docker 版&lt;a href=&quot;https://hub.docker.com/r/yyxx/openvpn&quot; rel=&quot;nofollow&quot; style=&quot;box-sizing: border-box; background-color: rgba(0, 0, 0, 0); color: rgb(9, 105, 218); text-underline-offset: 0.2rem;&quot;&gt;openvpn&lt;/a&gt;，支持 web 管理。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;openvpn 安全与加密相关配置参考于&lt;a href=&quot;https://github.com/angristan/openvpn-install?tab=readme-ov-file#security-and-encryption&quot; style=&quot;box-sizing: border-box; background-color: rgba(0, 0, 0, 0); color: rgb(9, 105, 218); text-underline-offset: 0.2rem;&quot;&gt;openvpn-install&lt;/a&gt;的Security and Encryption部分。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/openvpn001.png&quot; alt=&quot;openvpn001.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/openvpn002.png&quot; alt=&quot;openvpn002.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/openvpn003.png&quot; alt=&quot;openvpn003.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/openvpn004.png&quot; alt=&quot;openvpn004.png&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;markdown-heading&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; position: relative; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 tabindex=&quot;-1&quot; class=&quot;heading-element&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;一、快速安装&lt;/h2&gt;&lt;a id=&quot;user-content-quick-start&quot; class=&quot;anchor&quot; aria-label=&quot;Permalink: Quick Start&quot; href=&quot;https://github.com/GavinTan/openvpn#quick-start&quot; style=&quot;box-sizing: border-box; background-color: rgba(0, 0, 0, 0); color: rgb(9, 105, 218); float: left; padding-right: 4px; margin: auto; line-height: 1; position: absolute; top: 19.0938px; left: -28px; display: flex; width: 28px; height: 28px; border-radius: 6px; opacity: 0; justify-content: center; align-items: center; transform: translateY(calc(-50% - 0.3rem)); text-underline-offset: 0.2rem;&quot;&gt;&lt;svg class=&quot;octicon octicon-link&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/div&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;1、登录群晖 NAS web 管理页面，打开container manager&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;搜索并下载yyxx/openvpn镜像（或者直接导入我下载好的镜像包：&lt;a href=&quot;https://nas.swihp.cn:39997/file/file/yyxx-openvpn.tar&quot; target=&quot;_blank&quot; title=&quot;yyxx-openvpn.tar&quot;&gt;yyxx/openvpn&lt;/a&gt;）&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp; &amp;nbsp; ssh登录SynologyNAS并切换到root权限&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;login&amp;nbsp;as:&amp;nbsp;sunfeng
sunfeng@192.168.0.100&amp;#39;s&amp;nbsp;password:
sunfeng@SynologyNAS:~$&amp;nbsp;sudo&amp;nbsp;-i
Password:
root@SynologyNAS:~#&amp;nbsp;docker&amp;nbsp;pull&amp;nbsp;yyxx/openvpn&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/openvpn005.png&quot; width=&quot;&quot; height=&quot;&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;2、新建openvpn证书及配置文件挂载目录&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在ssh后台直接使用命令创建&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;mkdir&amp;nbsp;-p&amp;nbsp;/volume1/docker/openvpn/data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#路径不要照抄我的，改为自己的实际路径&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;或者在web页面手动创建&lt;br/&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/openvpn006.png&quot;/&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;初始化生成证书及配置文件&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;cd&amp;nbsp;/volume1/docker/openvpn/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#先&amp;nbsp;cd&amp;nbsp;至openvpn目录下
docker&amp;nbsp;run&amp;nbsp;-v&amp;nbsp;$(pwd)/data:/data&amp;nbsp;--rm&amp;nbsp;yyxx/openvpn&amp;nbsp;--init&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#初始化生成证书及配置文件&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;3、运行 openvpn&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;以host模式运行openvpn&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;docker&amp;nbsp;run&amp;nbsp;-d&amp;nbsp;\
&amp;nbsp;&amp;nbsp;--name&amp;nbsp;openvpn&amp;nbsp;\
&amp;nbsp;&amp;nbsp;--cap-add&amp;nbsp;NET_ADMIN&amp;nbsp;\
&amp;nbsp;&amp;nbsp;--network&amp;nbsp;host&amp;nbsp;\
&amp;nbsp;&amp;nbsp;-e&amp;nbsp;ADMIN_USERNAME=sunfeng&amp;nbsp;\
&amp;nbsp;&amp;nbsp;-e&amp;nbsp;ADMIN_PASSWORD=sunfeng&amp;nbsp;\
&amp;nbsp;&amp;nbsp;-e&amp;nbsp;OVPN_SUBNET=10.10.8.0/24&amp;nbsp;\
&amp;nbsp;&amp;nbsp;-e&amp;nbsp;WEB_PORT=31194&amp;nbsp;\
&amp;nbsp;&amp;nbsp;-v&amp;nbsp;$(pwd)/data:/data&amp;nbsp;\
&amp;nbsp;&amp;nbsp;-v&amp;nbsp;/etc/localtime:/etc/localtime:ro&amp;nbsp;\
&amp;nbsp;&amp;nbsp;yyxx/openvpn&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;运行命令不一定照抄我的，可根据自己需求修改环境变量&lt;br/&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 1.25em;&quot;&gt;4、compose 安装&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a id=&quot;user-content-compose&quot; class=&quot;anchor&quot; aria-label=&quot;Permalink: compose&quot; href=&quot;https://github.com/GavinTan/openvpn#compose&quot; style=&quot;box-sizing: border-box; background-color: rgba(0, 0, 0, 0); color: rgb(9, 105, 218); float: left; padding-right: 4px; margin: auto; line-height: 1; position: absolute; top: 12.5px; left: -28px; display: flex; width: 28px; height: 28px; border-radius: 6px; opacity: 0; justify-content: center; align-items: center; transform: translateY(-50%); text-underline-offset: 0.2rem;&quot;&gt;&lt;svg class=&quot;octicon octicon-link&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 16px; margin-bottom: 16px;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/openvpn007.png&quot;/&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 16px; margin-bottom: 16px;&quot;&gt;创建 docker-compose.yml&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;services:
&amp;nbsp;&amp;nbsp;openvpn:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;image:&amp;nbsp;yyxx/openvpn
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cap_add:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;NET_ADMIN
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;network_mode:&amp;nbsp;host&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#不需要host模式可以注释或删除此项，然后取消掉ports的注释
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#ports:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#-&amp;nbsp;&amp;quot;1194:1194/udp&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#-&amp;nbsp;&amp;quot;8833:8833&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;environment:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;ADMIN_USERNAME=sunfeng
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;ADMIN_PASSWORD=sunfeng
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;新增：VPN子网配置（覆盖默认的10.8.0.0/24）
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;OVPN_SUBNET=10.10.8.0/24
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;新增：vpn端口（默认端口1194）
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;OVPN_PORT=31194
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;新增：vpn协议（默认udp）
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;OVPN_PROTO=udp
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;新增：Web管理界面端口（默认8833，可按需修改）
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;WEB_PORT=31195
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#-&amp;nbsp;OVPN_IPV6=true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;volumes:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;./data:/data
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;/etc/localtime:/etc/localtime:ro
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#sysctls:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#-&amp;nbsp;net.ipv6.conf.default.disable_ipv6=0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#-&amp;nbsp;net.ipv6.conf.all.forwarding=1

#networks:
&amp;nbsp;&amp;nbsp;#default:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#enable_ipv6:&amp;nbsp;true&lt;/pre&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 16px; margin-bottom: 16px;&quot;&gt;&lt;span style=&quot;background-color: #FFFFFF; color: #1F2328; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/openvpn008.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 16px; margin-bottom: 16px;&quot;&gt;&lt;span style=&quot;background-color: #FFFFFF; color: #1F2328; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px;&quot;&gt;创建完成，浏览器访问 https://&amp;nbsp;NAS_IP:31195 即可管理openvpn&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 16px; margin-bottom: 16px;&quot;&gt;&lt;span style=&quot;background-color: #FFFFFF; color: #1F2328; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px;&quot;&gt;IPV6&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a id=&quot;user-content-ipv6&quot; class=&quot;anchor&quot; aria-label=&quot;Permalink: IPV6&quot; href=&quot;https://github.com/GavinTan/openvpn#ipv6&quot; style=&quot;box-sizing: border-box; background-color: rgba(0, 0, 0, 0); color: rgb(9, 105, 218); float: left; padding-right: 4px; margin: auto; line-height: 1; position: absolute; top: 19.0938px; left: -28px; display: flex; width: 28px; height: 28px; border-radius: 6px; opacity: 0; justify-content: center; align-items: center; transform: translateY(calc(-50% - 0.3rem)); text-underline-offset: 0.2rem;&quot;&gt;&lt;svg class=&quot;octicon octicon-link&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; margin: 0px 0px 16px; padding: 0px 1em; color: rgb(89, 99, 110); border-left: 4px solid rgb(209, 217, 224); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;&quot;&gt;注意：&lt;/p&gt;&lt;ol dir=&quot;auto&quot; style=&quot;box-sizing: border-box; padding-left: 2em;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;启用ipv6后客户端跟服务器的proto需要都指定udp6/tcp6&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;docker的网络需要启用ipv6支持&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;使用openvpn-connect客户端的需要使用3.4.1以后的版本&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;&lt;div class=&quot;highlight highlight-source-shell notranslate position-relative overflow-auto&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-bottom: 16px; display: flex; justify-content: space-between; background-color: rgb(246, 248, 250); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; position: relative !important; overflow: auto !important;&quot;&gt;&lt;pre style=&quot;box-sizing: border-box; font-family: &amp;quot;Monaspace Neon&amp;quot;, ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; tab-size: 8; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: rgb(246, 248, 250); border-radius: 6px; word-break: normal; min-height: 52px;&quot;&gt;services:
&amp;nbsp;&amp;nbsp;openvpn:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;image:&amp;nbsp;yyxx/openvpn
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cap_add:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;NET_ADMIN
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ports:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;1194:1194/udp&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;quot;8833:8833&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;environment:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;ADMIN_USERNAME=admin
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;ADMIN_PASSWORD=admin
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;OVPN_IPV6=true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;volumes:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;./data:/data
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;/etc/localtime:/etc/localtime:ro
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sysctls:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;net.ipv6.conf.default.disable_ipv6=0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;net.ipv6.conf.all.forwarding=1

networks:
&amp;nbsp;&amp;nbsp;default:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;enable_ipv6:&amp;nbsp;true&lt;/pre&gt;&lt;clipboard-copy aria-label=&quot;Copy&quot; class=&quot;ClipboardButton btn btn-invisible js-clipboard-copy m-2 p-0 d-flex flex-justify-center flex-items-center&quot; data-copy-feedback=&quot;Copied!&quot; data-tooltip-direction=&quot;w&quot; value=&quot;services:
  openvpn:
    image: yyxx/openvpn
    cap_add:
      - NET_ADMIN
    ports:
      - &amp;quot;1194:1194/udp&amp;quot;
      - &amp;quot;8833:8833&amp;quot;
    environment:
      - ADMIN_USERNAME=admin
      - ADMIN_PASSWORD=admin
      - OVPN_IPV6=true
    volumes:
      - ./data:/data
      - /etc/localtime:/etc/localtime:ro
    sysctls:
      - net.ipv6.conf.default.disable_ipv6=0
      - net.ipv6.conf.all.forwarding=1

networks:
  default:
    enable_ipv6: true&quot; tabindex=&quot;0&quot; role=&quot;button&quot; style=&quot;box-sizing: border-box; position: relative; font-size: 14px; line-height: 20px; text-wrap-mode: nowrap; vertical-align: middle; cursor: pointer; user-select: none; border: 0px; border-radius: 6px; appearance: none; color: rgb(9, 105, 218); background-color: rgba(0, 0, 0, 0); box-shadow: none; transition: color 80ms cubic-bezier(0.33, 1, 0.68, 1), background-color, box-shadow, border-color; width: 28px; height: 28px; display: flex !important; padding: 0px !important; justify-content: center !important; align-items: center !important; margin: 8px !important;&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; height=&quot;16&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; data-view-component=&quot;true&quot; class=&quot;octicon octicon-copy js-clipboard-copy-icon&quot;&gt;&lt;/svg&gt;&lt;/clipboard-copy&gt;&lt;/div&gt;&lt;div class=&quot;markdown-heading&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; position: relative; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 tabindex=&quot;-1&quot; class=&quot;heading-element&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;环境变量参数&lt;/h2&gt;&lt;a id=&quot;user-content-环境变量参数&quot; class=&quot;anchor&quot; aria-label=&quot;Permalink: 环境变量参数&quot; href=&quot;https://github.com/GavinTan/openvpn#%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E5%8F%82%E6%95%B0&quot; style=&quot;box-sizing: border-box; background-color: rgba(0, 0, 0, 0); color: rgb(9, 105, 218); float: left; padding-right: 4px; margin: auto; line-height: 1; position: absolute; top: 19.0938px; left: -28px; display: flex; width: 28px; height: 28px; border-radius: 6px; opacity: 0; justify-content: center; align-items: center; transform: translateY(calc(-50% - 0.3rem)); text-underline-offset: 0.2rem;&quot;&gt;&lt;svg class=&quot;octicon octicon-link&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;markdown-accessiblity-table data-catalyst=&quot;&quot; style=&quot;box-sizing: border-box; display: block; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); margin-bottom: 0px !important;&quot;&gt;&lt;/markdown-accessiblity-table&gt;&lt;/p&gt;&lt;table width=&quot;NaN&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box; border-top: 1px solid rgba(209, 217, 224, 0.7);&quot; class=&quot;firstRow&quot;&gt;&lt;th align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;环境变量&lt;/th&gt;&lt;th align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;说明&lt;/th&gt;&lt;th align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;默认值&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box; border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_DATA&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;数据存放目录&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;/data&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; background-color: rgb(246, 248, 250); border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_SUBNET&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;vpn子网&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;10.8.0.0/24&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_SUBNET6&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;vpn ipv6子网&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;fdaf:f178:e916:6dd0::/64&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; background-color: rgb(246, 248, 250); border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_PROTO&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;协议 tcp(6)/udp(6)&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;udp&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_PORT&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;vpn连接端口&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;1194&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; background-color: rgb(246, 248, 250); border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_MAXCLIENTS&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;vpn最大客户端连接数&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;200&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_MANAGEMENT&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;openvpn管理接口监听地址&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;127.0.0.1:7505&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; background-color: rgb(246, 248, 250); border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_IPV6&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;启用ipv6&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;false&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;OVPN_GATEWAY&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;启用vpn网关所有流量走vpn&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;false&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; background-color: rgb(246, 248, 250); border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;WEB_PORT&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;web端口&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;8833&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;ADMIN_USERNAME&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;web登录账号&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;admin&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; background-color: rgb(246, 248, 250); border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;ADMIN_PASSWORD&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;web登录密码&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;admin&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; border-top: 1px solid rgba(209, 217, 224, 0.7);&quot;&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin-bottom: 0px;&quot;&gt;ENV_UPDATE_CONFIG&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;启用环境变量自动更新配置文件&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;box-sizing: border-box; padding: 6px 13px; border-color: rgb(209, 217, 224); border-image: none 100% / 1 / 0 stretch;&quot;&gt;true&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2&gt;最后分享一个小技巧，所有需要root登录NAS后台的命令都可以通过计划任务实现&lt;br/&gt;&lt;/h2&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://nas.swihp.cn:39997/file/wordpress/synology/计划任务001.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 04 Aug 2025 10:56:06 +0800</pubDate></item><item><title>小米路由器3G R3G 刷入Breed和OpenWrt</title><link>https://blog.swihp.cn/?id=1430</link><description>&lt;p&gt;小米 R3G
市面上有R3G和R3Gv2两种型号, 注意区分, 后者是缩水版, 没有USB口. 内存只有128M, Flash只有16M. 这里描述的只适用于R3G.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;开整&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;注：刷写openwrt需要小米R3G路由器联网（即wan插口连接到intel网络）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;第一步、先给路由器通上电，重置路由器&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;第二步、进入路由器后台192.168.31.1/miwifi.com，将路由器系统 ROM 升级到最新开发版&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;ROM 的升级有两种方式&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1、登陆路由器后台192.168.31.1在线升级&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;选择下载的文件进行升级。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、将升级包拷贝到U盘根目录, 并命名为 miwifi.bin,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;随后断开电源, 插上U盘, 并按住 reset 按钮后插入电源, 等到指示灯变为黄色闪烁(10-15秒)后松开 reset 键,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;之后路由器将更新 ROM 并重启进入正常状态(指示灯变为蓝色常亮)，&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;如果出现异常、失败、U盘无法读取的状况，会进入红灯状态，建议重试或更换U盘再试。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3、ROM系统成功升级为小米3g开发版是前提条件&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;第三步、绑定完小米账号获取SSH权限&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ①&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;安装 “小米WiFi”手机APP, 连上路由器WIFI后绑定路由器；&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ② 登陆 http://d.miwifi.com/rom/ssh, 点击&amp;quot;下载工具包&amp;quot;；&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ③ ！！！特别提示！！！下载工具包时记下 root 密码（后边会用到）&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;工具包使用方法：小米路由器需升级到开发版0.5.28及以上，小米路由器mini需升级到开发版0.3.84及以上，小米路由器3即将支持。注意：稳定版不支持。&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;④ 开启 SSH&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;请将下载的工具包bin文件复制到U盘（FAT/FAT32格式）的根目录下，保证文件名为miwifi_ssh.bin；
断开小米路由器的电源，将U盘插入USB接口；
按住reset按钮之后重新接入电源，指示灯变为黄色闪烁状态即可松开reset键；
等待3-5秒后安装完成之后，小米路由器会自动重启，之后您就可以尽情折腾啦&amp;nbsp;：）&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;⑤ 连接SSH&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ssh连接方式，&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: nowrap; text-decoration: underline;&quot;&gt;windows尽量别用CMD去连接ssh&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;，推荐工具MobaXterm，putty，xshell等&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;ssh&amp;nbsp;root@192.168.31.1&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;如果ssh连接报错：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;Unable&amp;nbsp;to&amp;nbsp;negotiate&amp;nbsp;with&amp;nbsp;192.168.31.1&amp;nbsp;port&amp;nbsp;22:&amp;nbsp;no&amp;nbsp;matching&amp;nbsp;key&amp;nbsp;exchange&amp;nbsp;method&amp;nbsp;found.&amp;nbsp;Their&amp;nbsp;offer:&amp;nbsp;diffie-hellman-group1-sha1,diffie-hellman-group14-sha1&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;手动指定oKexAlgorithms&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;ssh&amp;nbsp;-oKexAlgorithms=+diffie-hellman-group1-sha1&amp;nbsp;root@192.168.31.1&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;ssh连接&amp;nbsp; ip 地址：192.168.31.1 ，帐号：root，密码：即下载工具包时特别提示保存的root密码&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;第五步、将breed文件上传到路由器 /tmp 目录下，刷入breed&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;！！！&lt;span style=&quot;font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;R3G 请使用 2011版的breed&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://nas.swihp.cn:39997/file/file/%E5%B0%8F%E7%B1%B33G/breed-mt7621-xiaomi-r3g.bin&quot; target=&quot;_blank&quot; title=&quot;下载&quot; textvalue=&quot;下载&quot;&gt;下载&lt;/a&gt;&lt;span style=&quot;font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;, 不要使用最新2022版的.&lt;/span&gt; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;首先 cd /tmp，&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;到tmp的路径下面，然后将文件breed文件上传到tmp的路径下&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;然后执行这个命令：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;mtd&amp;nbsp;-r&amp;nbsp;write&amp;nbsp;/tmp/breed-mt7621-xiaomi-r3g.bin&amp;nbsp;Bootloader&lt;/pre&gt;&lt;p&gt;回车后路由器会重启，注意&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;观察指示灯，长时间未重启可手动重启。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;重启完成后断电关机&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;然后按住 reset 键，上电直到l ed 闪烁，电脑浏览器访问192.168.1.1即可&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;第六步、恭喜你，已经刷进 breed 了，&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;开始配置breed&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;① 在小米 R3G 设置中, 删除normal_firmware_md5这个键值,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;（参考他人教程提示，未验证不删除是否会导致无法开机）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;②&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在环境变量编辑中, 添加一个环境变量, 变量名为 xiaomi.r3g.bootfw, 值为2 ，！！！必须设置！！！&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;参数说明&amp;nbsp;xiaomi.r3g.bootfw&amp;nbsp;如果写入&amp;nbsp;Breed&amp;nbsp;到&amp;nbsp;bootloader,&amp;nbsp;这个参数是必须的.&amp;nbsp;Breed的启动流程如下
&amp;nbsp;1、如果&amp;nbsp;kernel0&amp;nbsp;存在,&amp;nbsp;那么启动&amp;nbsp;kernel0
&amp;nbsp;2、如果&amp;nbsp;kernel0&amp;nbsp;不存在,&amp;nbsp;kernel1&amp;nbsp;存在,&amp;nbsp;那么启动&amp;nbsp;kernel1
&amp;nbsp;3、如果&amp;nbsp;kernel0&amp;nbsp;和&amp;nbsp;kernel1&amp;nbsp;都存在,&amp;nbsp;则检查环境变量&amp;nbsp;xiaomi.r3g.bootfw&amp;nbsp;的值,&amp;nbsp;如果存在且值为2,&amp;nbsp;那么启动&amp;nbsp;kernel1,&amp;nbsp;否则启动&amp;nbsp;kernel0&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;如果通过mtd写入了OpenWrt 到Kernel1, 但是不写这个环境变量, Breed就会从kernel0启动,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;无法进入系统, 然后重启, 再次从kernel0启动, 这样一直循环下去.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;至此就配置好breed&lt;/span&gt;&lt;/p&gt;&lt;p&gt;第七步、刷入open wrt&amp;nbsp; 小米3G 底包&lt;/p&gt;&lt;p&gt;1、点击 固件更新 固件项选择后缀为 initramfs.kernel.bin的底包, 闪存布局选择 固件 2 上传 刷入&lt;/p&gt;&lt;p&gt;小米R3G底包下载地址 : &lt;a href=&quot;https://nas.swihp.cn:39997/file/file/%E5%B0%8F%E7%B1%B33G/openwrt-ramips-mt7621-xiaomi_mir3g-initramfs-kernel.bin&quot; target=&quot;_blank&quot; title=&quot;小米 R3G 底包&quot; textvalue=&quot;小米 R3G 底包&quot;&gt;小米 R3G 底包&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2、刷完之后，重启进入openwrt，电脑浏览器打开：&lt;a href=&quot;http://192.168.3.1/cgi-bin/luci/admin/system/flashops，&quot; _src=&quot;http://192.168.3.1/cgi-bin/luci/admin/system/flashops，&quot;&gt;http://192.168.3.1/cgi-bin/luci/admin/system/flashops&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt; 如无法打开页面可以看下路由器状态是否重启完成 或 确认下网关是否为 192.168.3.1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;帐号：root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;密码：password&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在openwrt管理界面 系统&amp;gt;&amp;gt;备份/升级&amp;gt;&amp;gt;刷写新的固件&amp;gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;选择openwrt-ramips-mt7621-xiaomi_mir3g-squashfs-sysupgrade.bin升级&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;小米R3G sysupgrade系统包下载地址 ：&lt;a href=&quot;https://nas.swihp.cn:39997/file/file/%E5%B0%8F%E7%B1%B33G/openwrt-ramips-mt7621-xiaomi_mir3g-squashfs-sysupgrade.bin&quot; target=&quot;_blank&quot; title=&quot;小米R3G sysupgrade系统包&quot;&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;小米R3G&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;sysupgrade系统包&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;注意：如果用的不是我提供的系统包，刷完 open wrt 后登录用户名密码可能不同&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 25 Jul 2025 21:32:25 +0800</pubDate></item></channel></rss>