# LogMeIn Hamachi

**LogMeIn Hamachi** 是一项托管式、闭源的虚拟专用网络（VPN）服务，可在互联网上创建虚拟局域网，让远程计算机如同处于同一个局域网中一样通信。它最初由 Applied Networking, Inc. 开发，于 2006 年 8 月被 LogMeIn, Inc. 收购<sup>[2](https://www.redmondmag.com/articles/2006/08/07/logmein-acquires-applied-networking.aspx)</sup><sup> • </sup><sup>[3](https://web.archive.org/web/20060828184025if_/http:/hamachi.cc/)</sup>。一个典型用途是通过虚拟局域网进行多人游戏<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup>。截至 2024 年，它仍然被广泛下载：Softonic 报告称，该年它是其门户上下载量最高的安全应用，下载量为 748,102 次，比 2023 年增长 7.9%<sup>[4](https://www.globenewswire.com/news-release/2024/11/29/2989107/0/en/Softonic-reveals-rise-in-VPN-Downloads-amid-global-push-for-privacy-and-unrestricted-connectivity.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 它是什么 | 托管式 VPN 服务，在互联网上创建虚拟局域网；闭源，依赖 LogMeIn/GoTo 中央服务器运行<sup>[6](https://ar5iv.labs.arxiv.org/html/1001.2569)</sup> |
| 网络类型 | 网状、中心辐射式和网关式，主要区别在于拓扑结构<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup> |
| 免费层级 | 每个网络最多 5 台计算机免费；无人值守的服务模式使用需要付费订阅<sup>[1](https://secure.logmein.com/hamachi)</sup> |
| 付费层级 | 标准版每年 49 美元（每网络 6–32 台计算机）；高级版每年 199 美元（33–256 台）；多网络版每年 299 美元（最多 256 台设备，网络数量不限）<sup>[1](https://secure.logmein.com/hamachi)</sup><sup> • </sup><sup>[7](https://www.techradar.com/reviews/hamachi-by-logmein)</sup> |
| 加密 | AES-256-CBC，采用 ESP 式填充（RFC 2406），并使用 HMAC-SHA-1-96 进行数据包认证（RFC 2404）<sup>[7](https://www.techradar.com/reviews/hamachi-by-logmein)</sup> |
| NAT 穿透 | 使用 STUN 式打洞，并通过 Hamachi 自有服务器提供 TURN 式中继；据创建者称，点对点连接率约为 95%<sup>[6](https://ar5iv.labs.arxiv.org/html/1001.2569)</sup><sup> • </sup><sup>[8](http://swapped.cc/content/hamachi/index.html?_=1648512000000&r=0&x=)</sup> |
| 平台 | Windows、macOS 和 Linux（Ubuntu 16.04 LTS+、CentOS 7.2+）；Linux 不支持中继<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup><sup> • </sup><sup>[9](https://ar5iv.labs.arxiv.org/html/1001.2575)</sup> |

## 工作原理

Hamachi 在每台计算机上安装一个虚拟网络适配器，并为其分配 25.0.0.0/8 范围内的地址——这是一个公共 A 类地址块，而非大多数 VPN 使用的标准私有地址范围<sup>[8](http://swapped.cc/content/hamachi/index.html?_=1648512000000&r=0&x=)</sup><sup> • </sup><sup>[21](https://lmi-documentation-origin.azurewebsites.net/webhelp/EN/CentralUserGuide/LogMeIn/c_hamachi_Virtual_IP.html)</sup>。成员通过 Hamachi 的中央服务器加入一个命名网络，由服务器处理认证和对等节点发现；在学术上，该设计被归类为带有对等客户端的集中式 VPN 服务器<sup>[9](https://ar5iv.labs.arxiv.org/html/1001.2575)</sup>。

**NAT 穿透。** 为了连接位于家庭路由器与防火墙之后的节点，Hamachi 使用 STUN 式 NAT 打洞，并以通过 Hamachi 自有中继服务器的 TURN 式中继作为回退方案<sup>[6](https://ar5iv.labs.arxiv.org/html/1001.2569)</sup>。打洞的原理是让两个对等方通过各自的 NAT 向对方发送数据包，向路径上的设备表明这些会话是主动请求的、应当被接受；在 2005 年 USENIX 关于此类技术的奠基性研究中，约 82% 的受测 NAT 支持 UDP 打洞，约 64% 支持 TCP 打洞<sup>[10](https://www.usenix.org/legacy/event/usenix05/tech/general/full_papers/ford/ford.pdf)</sup>。Hamachi 的创建者报告称，细粒度的 NAT 分类以及对所有可行 NAT 类型排列的处理，将该服务的点对点连接率提升至约 95%<sup>[8](http://swapped.cc/content/hamachi/index.html?_=1648512000000&r=0&x=)</sup>。当直接穿透失败时，系统会选定一个由中央基础设施选择的中继服务器，并倾向于复用同一中继<sup>[9](https://ar5iv.labs.arxiv.org/html/1001.2575)</sup>。

一个显著特征是，Hamachi 在成员之间转发广播和组播，而标准 VPN 通常不这样做。正是这一点驱动了网络发现过程，包括 Windows 网络、Bonjour 和多人游戏所使用的发现机制，也是该服务局域网模拟能力的核心<sup>[8](http://swapped.cc/content/hamachi/index.html?_=1648512000000&r=0&x=)</sup>。

## 网络拓扑

Hamachi 提供三种网络类型，主要区别在于拓扑结构<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup>：

- **网状。** 每个成员都与所有其他成员相连。网状是游戏玩家的典型选择，因为某些网络游戏使用广播在参与者之间传递状态信息，而且它是唯一可以直接从客户端界面创建的网络类型<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup>。
- **中心辐射式。** 在此设置中，指定的计算机充当中心，其余客户端作为辐射端加入；辐射端只连接中心，从不与其他辐射端直接通信。这适用于需要严格控制哪些成员之间可以相互访问的场景<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup>。
- **网关式。** 一个集中式网关——通常是连接到局域网的一台长期在线服务器——提供对整个本地网络的透明访问。成员数量实际上不受限制，因为不运行 Hamachi 客户端的网络设备也可以成为成员，但只能有一个网关，且该网关不能属于任何其他网络<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup>。

PCWorld 的实机评测确认了这三种模式，但发现网关模式非常难以设置，主要原因是定义哪台 PC 作为网关的方法不够直观<sup>[11](https://www.pcworld.com/article/465894/logmein_hamachi_gives_small_businesses_most_of_the_vpn_they_need_for_free.html)</sup>。

## 历史与许可

Hamachi 由 Applied Networking, Inc. 开发，其原始网站将产品描述为快速、安全、简单，核心版本免费<sup>[3](https://web.archive.org/web/20060828184025if_/http:/hamachi.cc/)</sup>。LogMeIn 于 2006 年 8 月初宣布收购；交易条款未披露，LogMeIn 首席执行官迈克尔·西蒙（Michael Simon）提到 Hamachi 安装快捷、无需重新配置防火墙或端口转发，以及其机器对机器的特性与 LogMeIn 的远程支持产品相契合<sup>[2](https://www.redmondmag.com/articles/2006/08/07/logmein-acquires-applied-networking.aspx)</sup>。收购后，Hamachi 以功能受限的免费版形式提供，同时提供启用全部功能的付费服务，起价为每席位每年 39 美元<sup>[12](https://www.crn.com/news/security/193600697/logmein-serves-up-hamachi-vpn-service)</sup>。

**2012 年的限制。** 在 2012 年 11 月 19 日生效的一项许可变更中，不属于付费网络的计算机必须在桌面上运行 Hamachi 用户界面并登录才能正常工作，这使免费层级不再支持无人值守使用<sup>[13](https://web.archive.org/web/20160604164838/https:/blog.logmein.com/products/changes-to-hamachi-on-november-19th)</sup>。当时付费层级为每年 29 美元，支持一个 32 台计算机的网络，截止日期前有每年 19 美元的折扣优惠。LogMeIn 为这一变更辩护，称 Hamachi 是一项拥有数百万活跃用户的免费服务，其付费收入仅能支撑一个小型开发团队<sup>[13](https://web.archive.org/web/20160604164838/https:/blog.logmein.com/products/changes-to-hamachi-on-november-19th)</sup>。免费层级后来稳定为每个网络五名成员：对于免费网络，只有五名成员保持活跃，且无法添加新成员；在订阅层级推出之前创建的较大免费网络，则保留五名随机成员继续可用<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup>。

## 平台与客户端

Hamachi 支持 Windows、Mac 和 Linux<sup>[1](https://secure.logmein.com/hamachi)</sup>。供应商文档列出的支持范围包括 Windows XP SP3 至 [Windows 10](https://www.edgepedia.org/zh/windows-10) 及 Server 2012、Intel Mac 上的 Mac OS 10.6 Snow Leopard 或更新版本、Ubuntu 16.04 LTS 或更新版本，以及 [CentOS](https://www.edgepedia.org/zh/centos) 7.2 或更新版本；由于操作系统限制，某些平台上不提供网关节点功能<sup>[5](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)</sup>。Linux 客户端为测试版，不支持中继，因此无法从 Linux 测量或使用中继连接；出于这一原因，中继的学术基准测试不得不在 [Windows Vista](https://www.edgepedia.org/zh/windows-vista) 64 位上进行<sup>[9](https://ar5iv.labs.arxiv.org/html/1001.2575)</sup>。以无人值守模式将 Hamachi 作为服务运行——无头服务器所需的配置——需要付费订阅<sup>[1](https://secure.logmein.com/hamachi)</sup>。

## 数据一览

订阅按网络层级适用。免费版每个网络允许 5 名成员，标准版 32 名，高级版 256 名；一个账户可以任意组合持有无限数量的网络，订阅按网络单独购买<sup>[14](https://lmi-documentation-origin.azurewebsites.net/webhelp/EN/CentralUserGuide/LogMeIn/c_hamachi_subscriptions.html)</sup>。当前定价为：每网络 6–32 台计算机每年 49 美元，33–256 台每年 199 美元，最多 256 台计算机且网络数量不限每年 299 美元<sup>[1](https://secure.logmein.com/hamachi)</sup><sup> • </sup><sup>[7](https://www.techradar.com/reviews/hamachi-by-logmein)</sup>。无论购买多少订阅，一个 LogMeIn 账户最多可连接 256 个客户端<sup>[14](https://lmi-documentation-origin.azurewebsites.net/webhelp/EN/CentralUserGuide/LogMeIn/c_hamachi_subscriptions.html)</sup>。

实测性能数据来自不同时期和配置。一项约 2010 年的学术基准测试发现，Hamachi 中继在免费层级上的延迟约为 60.8 毫秒、带宽为 40.2 Kbit/s，在付费层级上延迟约为 60.2 毫秒、带宽约为 1 Mbit/s，唯一测得的差异是带宽上限<sup>[9](https://ar5iv.labs.arxiv.org/html/1001.2575)</sup>。SmallNetBuilder 对 Hamachi2 的评测测量到，在美国两个地点之间的文件传输中持续速度约为 15 Mbps，ping 平均为 20 毫秒，但会飙升至 400 毫秒<sup>[15](https://www.smallnetbuilder.com/cloud/cloud-services-apps/logmein-hamachi2-reviewed/)</sup>。TechRadar 后来的测试观察到下载速度取决于对等方的上传速度，有时仅能达到 5 Mbps<sup>[7](https://www.techradar.com/reviews/hamachi-by-logmein)</sup>。

## 安全架构与批评

Hamachi 使用 AES-256-CBC 加密通信，采用 RFC 2406 定义的 ESP 式填充，并使用 HMAC-SHA-1-96 变体（RFC 2404）对数据包进行认证，同时使用数据包编号防范重放攻击<sup>[7](https://www.techradar.com/reviews/hamachi-by-logmein)</sup>。根据供应商的安全白皮书，客户端-服务器认证基于密码，服务器以加盐哈希形式存储密码，而初始注册使用 RSA 认证服务器；客户端不在服务器上注册或存储其公钥，因此服务器永远不会看到客户端的公钥<sup>[16](https://support.logmeininc.com/download/hamachi-security-whitepaper)</sup>。客户端到客户端认证可以使用 RSA、预共享密钥或 PKI 证书，除非通过客户端到客户端的密钥交换加以保护，否则隧道从不用于批量流量<sup>[16](https://support.logmeininc.com/download/hamachi-security-whitepaper)</sup>。2.x 版本的隧道使用仿照 IPsec 术语建模的安全关联，每条隧道两个，每个方向一个，由 SPI 标识；链路可以是直接的或中继的，基于 UDP 或 TCP，并且可能借助也可能不借助 Hamachi 服务器建立<sup>[16](https://support.logmeininc.com/download/hamachi-security-whitepaper)</sup>。

一项对原始设计的学术分析将其描述为类似于密钥分发中心，要求所有安全会话都通过 Hamachi 的中央服务器发起；修订后的模型增加了外部 PKI，以避免中间人攻击，代价是需要维护外部证书颁发机构和吊销列表<sup>[6](https://ar5iv.labs.arxiv.org/html/1001.2569)</sup>。

**批评。** 由于 Hamachi 是闭源的，用户无法自行托管会话管理或中继基础设施<sup>[6](https://ar5iv.labs.arxiv.org/html/1001.2569)</sup>。SmallNetBuilder 的评测者指出，流量可能经过 LogMeIn 中继服务器这一可能性，使 Hamachi 不适合许多受 HIPAA 或其他合规制度约束的企业<sup>[15](https://www.smallnetbuilder.com/cloud/cloud-services-apps/logmein-hamachi2-reviewed/)</sup>。

## 与 Tailscale、ZeroTier 及其他替代方案的比较

主要对比点在于开放性、平台广度和免费层级规模。Hamachi 以闭源形式发布，仅针对 Windows、macOS 和 Linux 测试版编译，且需要连接到专有中央服务器，不允许自行托管其核心基础设施。[Tailscale](https://www.edgepedia.org/zh/tailscale) 的客户端支持 [Windows 7](https://www.edgepedia.org/zh/windows-7)/10/11、macOS 10.13 及更高版本、iOS 12 及更高版本、Android 6.0 及更高版本，以及广泛的 Linux 发行版和 CPU 架构；其 VPN 引擎是开源的，可以在 FreeBSD 和 OpenBSD 等非官方平台上运行，并且可以与开源控制服务器 Headscale 配合使用<sup>[17](https://tailscale.com/blog/hamachi)</sup>。

Hamachi 使用专有协议，当直接连接失败时可能通过集中式 LogMeIn 中继服务器路由流量，这会影响速度和隐私；Tailscale 则围绕基于 WireGuard 的网状模型构建，针对去中心化连接进行了优化<sup>[18](https://saasvssaas.com/tailscale-vs-hamachi/)</sup>。与 ZeroTier 相比，Hamachi 支持 Windows、macOS 和 Linux，而 ZeroTier 支持 Windows、macOS、Linux、Android 和 iOS，但 Hamachi 仅对最多 5 台设备免费，超出后需付费，而 ZeroTier 提供免费层级<sup>[19](https://www.compsmag.com/vs/logmein-hamachi-vs-zerotier/)</sup>。一份社区风格的比较将免费层级列为：Hamachi 每网络 5 台设备，ZeroTier 25 台受管设备，Tailscale 每用户 100 台设备<sup>[20](https://eathealthy365.com/a-deep-dive-into-hamachi-and-its-top-alternatives/)</sup>。

## 实际使用中的节点状态与性能

Hamachi 客户端用彩色状态点表示链路质量：绿点表示良好的直接连接，蓝点表示缓慢的中继连接。对于游戏等实时应用，使用中继连接往往会导致游戏无法正常进行<sup>[20](https://eathealthy365.com/a-deep-dive-into-hamachi-and-its-top-alternatives/)</sup>。中继隧道通常由对称 NAT、大学或企业防火墙以及限制性 ISP 引起<sup>[20](https://eathealthy365.com/a-deep-dive-into-hamachi-and-its-top-alternatives/)</sup>。

约 2010 年基准测试的中继隧道数据——免费层级约 40 Kbit/s，付费层级约 1 Mbit/s，延迟约 60 毫秒<sup>[9](https://ar5iv.labs.arxiv.org/html/1001.2575)</sup>——与 TechRadar 在后来的测试中观察到的最高 5 Mbps 下载速度<sup>[7](https://www.techradar.com/reviews/hamachi-by-logmein)</sup>以及 SmallNetBuilder 在直接传输中测得的 15 Mbps<sup>[15](https://www.smallnetbuilder.com/cloud/cloud-services-apps/logmein-hamachi2-reviewed/)</sup>形成鲜明对比。

## References

1. [Create virtual private networks on-demand — LogMeIn Hamachi](https://secure.logmein.com/hamachi)
2. [LogMeIn Acquires Applied Networking, Redmond Magazine](https://www.redmondmag.com/articles/2006/08/07/logmein-acquires-applied-networking.aspx)
3. [Hamachi: Stay Connected (original hamachi.cc site, archived August 2006)](https://web.archive.org/web/20060828184025if_/http:/hamachi.cc/)
4. [Softonic reveals rise in VPN Downloads, GlobeNewswire (Nov 29, 2024)](https://www.globenewswire.com/news-release/2024/11/29/2989107/0/en/Softonic-reveals-rise-in-VPN-Downloads-amid-global-push-for-privacy-and-unrestricted-connectivity.html)
5. [LogMeIn Hamachi Getting Started Guide (PDF)](https://lmistatic.blob.core.windows.net/document-library/logmein/pdf/en/hamachi-getting-started-guide.pdf)
6. [Virtual Private Overlays: Secure Group Communication in NAT-Constrained Environments (arXiv)](https://ar5iv.labs.arxiv.org/html/1001.2569)
7. [Hamachi by LogMeIn Review, TechRadar](https://www.techradar.com/reviews/hamachi-by-logmein)
8. [Hamachi — retrospective by its creator, swapped.cc](http://swapped.cc/content/hamachi/index.html?_=1648512000000&r=0&x=)
9. [On the Design and Implementation of Structured P2P VPNs (arXiv)](https://ar5iv.labs.arxiv.org/html/1001.2575)
10. [Peer-to-Peer Communication Across Network Address Translators, USENIX 2005](https://www.usenix.org/legacy/event/usenix05/tech/general/full_papers/ford/ford.pdf)
11. [LogMeIn Hamachi Gives Small Businesses Most of the VPN They Need for Free, PCWorld](https://www.pcworld.com/article/465894/logmein_hamachi_gives_small_businesses_most_of_the_vpn_they_need_for_free.html)
12. [LogMeIn Serves Up Hamachi VPN Service, CRN](https://www.crn.com/news/security/193600697/logmein-serves-up-hamachi-vpn-service)
13. [Changes to Hamachi on November 19th, LogMeIn blog (archived)](https://web.archive.org/web/20160604164838/https:/blog.logmein.com/products/changes-to-hamachi-on-november-19th)
14. [LogMeIn Hamachi Subscription Types, vendor webhelp](https://lmi-documentation-origin.azurewebsites.net/webhelp/EN/CentralUserGuide/LogMeIn/c_hamachi_subscriptions.html)
15. [LogMeIn Hamachi2 Reviewed, SmallNetBuilder](https://www.smallnetbuilder.com/cloud/cloud-services-apps/logmein-hamachi2-reviewed/)
16. [Hamachi Security Whitepaper, LogMeIn](https://support.logmeininc.com/download/hamachi-security-whitepaper)
17. [Tailscale vs. Hamachi, Tailscale blog](https://tailscale.com/blog/hamachi)
18. [Tailscale vs Hamachi: Mesh VPNs for Teams and Remote Access Compared, SaaS vs SaaS](https://saasvssaas.com/tailscale-vs-hamachi/)
19. [Logmein Hamachi vs Zerotier: which virtual LAN is better?, Compsmag](https://www.compsmag.com/vs/logmein-hamachi-vs-zerotier/)
20. [Hamachi in 2026: Is It Still the Best Virtual LAN?](https://eathealthy365.com/a-deep-dive-into-hamachi-and-its-top-alternatives/)
21. [About the Hamachi Virtual IP Address](https://lmi-documentation-origin.azurewebsites.net/webhelp/EN/CentralUserGuide/LogMeIn/c_hamachi_Virtual_IP.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Network defense and threats › Virtual private networks

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/logmein-hamachi

English original: https://www.edgepedia.org/logmein-hamachi
