# 堡垒主机

堡垒主机是网络中一种具有特定用途的计算机，专门设计并配置用于抵御攻击<sup>[1](https://csrc.nist.gov/glossary/term/bastion_host)</sup>。在实践中，它是一台经过加固的服务器，有时被称为跳板机或跳板服务器，充当外部网段（如互联网或内部IT网络）与受保护的内部网络之间的唯一访问点。通过检查和过滤进出流量，它旨在阻止未经授权的访问和横向移动，从而只有经过身份验证和授权的用户才能与内部系统交互<sup>[2](https://www.cisa.gov/sites/default/files/2025-08/joint-advisory-cisa-identifies-areas-for-cyber-hygiene-improvement-after-conducting-proactive-threat-hunt-508c.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 网络中专门设计并配置用于抵御攻击的特定用途计算机（CNSSI 4009-2022，经由NIST CSRC）<sup>[1](https://csrc.nist.gov/glossary/term/bastion_host)</sup> |
| 其他名称 | 跳板机、跳板服务器<sup>[2](https://www.cisa.gov/sites/default/files/2025-08/joint-advisory-cisa-identifies-areas-for-cyber-hygiene-improvement-after-conducting-proactive-threat-hunt-508c.pdf)</sup> |
| 核心功能 | 从外部网络访问私有网络资源的单一访问点，通常通过SSH或RDP<sup>[3](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/access-a-bastion-host-by-using-session-manager-and-amazon-ec2-instance-connect.html)</sup> |
| 典型部署位置 | VPC的公有子网或周边网络的公网侧，目标实例位于私有子网<sup>[4](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/vpc-bastion-host.html)</sup><sup> • </sup><sup>[5](https://learn.microsoft.com/en-us/azure/bastion/design-architecture)</sup> |
| 托管变体 | Azure Bastion（PaaS，四种SKU：Developer、Basic、Standard、Premium）<sup>[6](https://learn.microsoft.com/azure/bastion/bastion-overview?trk=article-ssr-frontend-pulse_little-text-block)</sup>；AWS提供Session Manager作为无堡垒机的替代方案<sup>[7](https://docs.aws.amazon.com/prescriptive-guidance/latest/migration-sas-grid/target-architecture.html)</sup> |
| OT角色 | 受监控的中间层（配合防火墙和隔离区），IT到OT的连接必须经过它<sup>[8](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8576.ipd.pdf)</sup> |

## 目的与部署

堡垒主机解决的核心问题是可达性。私有子网中的实例没有通往互联网的路由，因此管理员无法远程连接它们；放置在公有子网中的堡垒服务器充当代理，例如作为SSH端口转发器或RDP网关，将流量转发到数据库服务器和其他私有实例<sup>[4](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/vpc-bastion-host.html)</sup>。AWS的Elastic Beanstalk示例将堡垒机的安全组配置为允许来自互联网的入站SSH和到私有子网的出站SSH，而实例安全组仅接受来自堡垒主机安全组的RDP<sup>[4](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/vpc-bastion-host.html)</sup>。

由于暴露在外部公共网络中的服务器存在未经授权访问的潜在安全风险，保护和管控对堡垒机本身的访问是核心设计任务<sup>[3](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/access-a-bastion-host-by-using-session-manager-and-amazon-ec2-instance-connect.html)</sup>。微软对RDP和SSH描述了同样的权衡：在互联网上暴露这些端口被视为重大的攻击面，通常是由于协议漏洞，因此堡垒主机（也称为跳板服务器）部署在周边网络的公网侧<sup>[5](https://learn.microsoft.com/en-us/azure/bastion/design-architecture)</sup>。

## 加固与运维

堡垒主机应当承载超出普通服务器的安全配置。在CISA和美国海岸警卫队的一次威胁狩猎中，有几台主机被指定为用于远程访问SCADA和HVAC系统的堡垒主机，但它们缺乏堡垒主机应有的增强安全配置、专用监控和专门审查；该公告将此视为网络安全基础防护的缺失，因为SCADA和HVAC系统控制物理过程，其被攻陷可能对人员安全、基础设施完整性和设备功能带来风险<sup>[2](https://www.cisa.gov/sites/default/files/2025-08/joint-advisory-cisa-identifies-areas-for-cyber-hygiene-improvement-after-conducting-proactive-threat-hunt-508c.pdf)</sup>。

CISA的《互联网暴露缩减指南》将跳板主机列为对必须保持互联网可访问的资产进行安全、受监控访问的推荐机制，同时配合补丁管理、默认密码更改和进出流量监控；它建议尽可能实施多因素认证（MFA），即使仅在跳板主机层面<sup>[9](https://www.cisa.gov/resources-tools/resources/exposure-reduction)</sup>。CISA的Trusted Internet 3.0指南同样建议使用VPN、跳板服务器和堡垒主机等方法限制管理访问，跟踪管理登录和活动，并制定快速撤销管理访问的程序<sup>[10](https://www.cisa.gov/sites/default/files/2023-04/CISA%20TIC%203.0%20Remote%20User%20Use%20Case_508c.pdf)</sup>。

日志记录是一项反复出现的要求。AWS针对Windows实例的EC2安全最佳实践建议使用带增强日志记录的堡垒主机来记录与Windows实例的所有交互，以便所有事件和任务被自动记录<sup>[11](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-windows-security-best-practices.html)</sup>。在NIST的水和废水参考架构中，堡垒主机对远程用户进行身份验证，根据定义的角色授予对授权资源的访问权限，并在syslog-ng日志管理器中记录所有远程用户操作<sup>[12](https://nvlpubs.nist.gov/nistpubs/TechnicalNotes/NIST.TN.2283.ipd.pdf)</sup>。

## 运营技术中的堡垒主机

在工业环境中，堡垒主机是IT到OT流量必须流经的受监控中间层之一。NIST的公共交通网络安全社区概况引用CISA的网络安全性能目标，要求默认拒绝所有到OT网络的连接，并将必要的IT到OT通信通过受监控的中间层（如防火墙、堡垒主机、跳板机或隔离区）传递，这些中间层捕获网络日志并仅允许来自已批准资产的连接<sup>[8](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8576.ipd.pdf)</sup>。NIST的水和废水指南将专用跳板或堡垒服务器与加密、MFA和分段一起列为管理到达OT资产的网络流量的技术控制措施<sup>[13](https://www.nist.gov/blogs/cybersecurity-insights/securing-water-and-wastewater-operational-technology-environments)</sup>。CISA的拨款手册将同样的模式应用于拨款资助项目：默认拒绝所有IT到OT连接，必要路径通过密切监控的中间层（如正确配置的防火墙、堡垒主机、跳板机或隔离区）<sup>[14](https://www.cisa.gov/sites/default/files/2024-12/2024-Playbook-Grants-Cyber-508c.pdf)</sup>。

托管服务产品也围绕堡垒机构建了其访问模型。在AWS托管服务（AMS）Advanced中，对AMS管理账户内资源的所有访问（包括客户和AMS操作员）都通过堡垒主机进行门控；堡垒机只能通过VPN或Direct Connect等私有连接访问，对入站流量设有防火墙，并按固定时间表定期使用现有凭证重新配置<sup>[15](https://docs.aws.amazon.com/managedservices/latest/userguide/using-bastions.html)</sup>。

## 托管堡垒服务

云提供商将堡垒模式作为托管服务提供。Azure Bastion是一种完全托管的平台即服务，通过TLS从Azure门户直接提供到虚拟机的RDP和SSH连接，或通过原生SSH或RDP客户端连接，部署在虚拟网络中，因此虚拟机无需公共IP地址、代理或特殊客户端软件<sup>[6](https://learn.microsoft.com/azure/bastion/bastion-overview?trk=article-ssr-frontend-pulse_little-text-block)</sup>。它提供四种SKU：Developer、Basic、Standard和Premium<sup>[6](https://learn.microsoft.com/azure/bastion/bastion-overview?trk=article-ssr-frontend-pulse_little-text-block)</sup>。Basic SKU提供两个专用主机实例，支持40个并发RDP或80个并发SSH会话；Standard增加了原生客户端支持、文件传输、可共享链接、基于IP的连接、自定义入站端口以及2到50个可扩展主机实例；Premium增加了仅私有部署（Bastion资源本身没有公共IP）和会话录制<sup>[16](https://learn.microsoft.com/en-us/azure/networking/design-guide/developer-admin-access)</sup>。部署按虚拟网络而非按订阅或虚拟机进行，因此中心虚拟网络中的一个Bastion可以服务于对等分支网络中的虚拟机<sup>[17](https://learn.microsoft.com/en-us/azure/bastion/vnet-peering/?WT.mc_id=AZ-MVP-4038163)</sup>。

## 移除堡垒机的替代方案

同一批云提供商现在将基于身份的隧道定位为堡垒模式的替代方案。AWS明确建议考虑使用Systems Manager Session Manager来完全消除堡垒主机，这减少了攻击面，消除了管理SSH密钥的需要，并提供所有访问会话的集中审计日志<sup>[7](https://docs.aws.amazon.com/prescriptive-guidance/latest/migration-sas-grid/target-architecture.html)</sup>。AWS安全参考架构使用Session Manager进行交互式、基于浏览器的Shell和CLI访问，无需开放入站端口、维护堡垒主机或管理SSH密钥<sup>[18](https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture/application.html)</sup>。AWS的Well-Architected框架更进一步，建议移除交互式访问而改用自动化，使用Systems Manager管理EC2实例，而不是允许直接访问或通过堡垒主机访问<sup>[19](https://docs.aws.amazon.com/wellarchitected/2023-04-10/framework/sec_protect_data_rest_use_people_away.html)</sup>。

Google Cloud的身份感知代理（IAP）TCP转发控制谁可以从公共互联网访问SSH和RDP等管理服务，将客户端流量封装在HTTPS中并使用内部IP地址，因此目标资源上无需公共可路由[IP地址](https://www.edgepedia.org/zh/ip-address)<sup>[20](https://docs.cloud.google.com/iap/docs/tcp-forwarding-overview?hl=en)</sup>。Google将此描述为无需堡垒主机、静态SSH密钥或长期凭证即可保护SSH和RDP访问<sup>[21](https://cloud.google.com/blog/products/identity-security/cloud-iap-enables-context-aware-access-to-vms-via-ssh-and-rdp-without-bastion-hosts/)</sup>。

## 软件与漏洞

堡垒功能也可以作为自托管软件使用。JumpServer是一个开源堡垒主机和运维安全审计系统<sup>[22](https://nvd.nist.gov/vuln/detail/cve-2024-29024)</sup>。由于堡垒机集中了对内部系统的访问，其自身缺陷具有重大影响：CVE-2023-43652允许未经身份验证的用户仅使用用户名和SSH公钥（无需密码或对应私钥）即可通过JumpServer核心API的身份验证，已在2.28.20和3.7.1版本中修复，无已知变通方法<sup>[23](https://nvd.nist.gov/vuln/detail/cve-2023-43652)</sup>。CVE-2024-29024是文件管理器批量传输中的不安全直接对象引用漏洞，允许已认证用户通过操纵作业ID上传恶意文件，已在v3.10.6中修复<sup>[22](https://nvd.nist.gov/vuln/detail/cve-2024-29024)</sup>。

[Red Hat](https://www.edgepedia.org/zh/red-hat)的securing-networks文档展示了OpenSSH中堡垒机使用的客户端侧配置：使用`ProxyJump`指令将跳板服务器添加到`~/.ssh/config`中，并针对跳板服务器与远程主机之间不同的用户名或SSH端口进行调整<sup>[24](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/pdf/securing_networks/Red_Hat_Enterprise_Linux-10-Securing_networks-en-US.pdf)</sup>。

## References

1. [bastion host, NIST CSRC Glossary (source: CNSSI 4009-2022)](https://csrc.nist.gov/glossary/term/bastion_host)
2. [Joint Advisory: CISA Identifies Areas for Cyber Hygiene Improvement After Conducting Proactive Threat Hunt (CISA/USCG)](https://www.cisa.gov/sites/default/files/2025-08/joint-advisory-cisa-identifies-areas-for-cyber-hygiene-improvement-after-conducting-proactive-threat-hunt-508c.pdf)
3. [Access a bastion host by using Session Manager and Amazon EC2 Instance Connect, AWS Prescriptive Guidance](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/access-a-bastion-host-by-using-session-manager-and-amazon-ec2-instance-connect.html)
4. [Example: Launching an Elastic Beanstalk application in a VPC with bastion hosts, AWS Elastic Beanstalk Developer Guide](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/vpc-bastion-host.html)
5. [About Azure Bastion design and architecture, Microsoft Learn](https://learn.microsoft.com/en-us/azure/bastion/design-architecture)
6. [What is Azure Bastion?, Microsoft Learn](https://learn.microsoft.com/azure/bastion/bastion-overview?trk=article-ssr-frontend-pulse_little-text-block)
7. [Target architecture, AWS Prescriptive Guidance (SAS Grid on AWS)](https://docs.aws.amazon.com/prescriptive-guidance/latest/migration-sas-grid/target-architecture.html)
8. [Transit Cybersecurity Framework Community Profile, NIST IR 8576 (initial public draft)](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8576.ipd.pdf)
9. [Internet Exposure Reduction Guidance, CISA](https://www.cisa.gov/resources-tools/resources/exposure-reduction)
10. [Trusted Internet Connections (TIC) 3.0 Remote User Use Case, CISA, April 2023](https://www.cisa.gov/sites/default/files/2023-04/CISA%20TIC%203.0%20Remote%20User%20Use%20Case_508c.pdf)
11. [Security best practices for Windows instances, Amazon EC2 User Guide](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-windows-security-best-practices.html)
12. [Cybersecurity for the Water and Wastewater Sector: Build Architecture. Operational Technology Remote Access, NIST TN 2283 (initial public draft)](https://nvlpubs.nist.gov/nistpubs/TechnicalNotes/NIST.TN.2283.ipd.pdf)
13. [Securing Water and Wastewater Operational Technology Environments, NIST Cybersecurity Insights blog](https://www.nist.gov/blogs/cybersecurity-insights/securing-water-and-wastewater-operational-technology-environments)
14. [Playbook for Strengthening Cybersecurity in Grant Programs, CISA](https://www.cisa.gov/sites/default/files/2024-12/2024-Playbook-Grants-Cyber-508c.pdf)
15. [Accessing instances using bastions, AWS Managed Services Advanced User Guide](https://docs.aws.amazon.com/managedservices/latest/userguide/using-bastions.html)
16. [Developer and admin access to Azure VMs, Azure Virtual Network design guide, Microsoft Learn](https://learn.microsoft.com/en-us/azure/networking/design-guide/developer-admin-access)
17. [VNet peering and Azure Bastion architecture, Microsoft Learn](https://learn.microsoft.com/en-us/azure/bastion/vnet-peering/?WT.mc_id=AZ-MVP-4038163)
18. [Workloads OU, Application account, AWS Security Reference Architecture](https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture/application.html)
19. [SEC08-BP05 Use mechanisms to keep people away from data, AWS Well-Architected Framework](https://docs.aws.amazon.com/wellarchitected/2023-04-10/framework/sec_protect_data_rest_use_people_away.html)
20. [TCP forwarding overview, Identity-Aware Proxy, Google Cloud documentation](https://docs.cloud.google.com/iap/docs/tcp-forwarding-overview?hl=en)
21. [Cloud IAP enables context-aware access to VMs via SSH and RDP without bastion hosts, Google Cloud Blog](https://cloud.google.com/blog/products/identity-security/cloud-iap-enables-context-aware-access-to-vms-via-ssh-and-rdp-without-bastion-hosts/)
22. [CVE-2024-29024 Detail, NVD](https://nvd.nist.gov/vuln/detail/cve-2024-29024)
23. [CVE-2023-43652 Detail, NVD](https://nvd.nist.gov/vuln/detail/cve-2023-43652)
24. [Red Hat Enterprise Linux 10: Securing networks](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/pdf/securing_networks/Red_Hat_Enterprise_Linux-10-Securing_networks-en-US.pdf)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bastion-host

English original: https://www.edgepedia.org/bastion-host
