피드로 돌아가기
Understanding Bastion Hosts: The Quite Gatekeepers of Modern Infrastructure
Dev.toDev.to
Infrastructure

공격 표면 최소화를 위한 Single Entry Point 기반 Bastion Host 설계

Understanding Bastion Hosts: The Quite Gatekeepers of Modern Infrastructure

Amin Haiqal2026년 5월 3일6intermediate

Context

개별 VPS에 Public IP를 할당하고 Port 22를 개방하는 분산 접속 구조의 보안 취약점 발생. 관리 서버 증가에 따른 SSH Key 관리 복잡도 상승 및 비인가 접근 시도 증가로 인한 중앙 집중식 제어 필요성 대두.

Technical Solution

  • 외부 노출 서버를 단일 Bastion Host로 제한하여 Attack Surface를 최소화한 구조 설계
  • Internal VPS를 Private Network에 배치하여 Public Internet으로부터의 직접 접근을 완전히 차단
  • Bastion Host 내 SSH Key 기반 인증 강제 및 Password Authentication 비활성화를 통한 진입 장벽 강화
  • 모든 접속 트래픽이 단일 지점을 통과하는 구조를 통한 Centralized Logging 및 Auditing 체계 구축
  • WebSocket 기반 Web-based Terminal 레이어를 추가하여 모바일 등 다양한 디바이스에서의 접근성 확장
  • HTTPS 및 Session Token 기반의 인증 계층을 적용하여 Application Layer의 보안성 확보

- 모든 Internal Server의 Public IP 제거 및 Private Subnet 배치 검토 - SSH 접근 시 Password 인증을 금지하고 Key-based Authentication 전면 도입 - Bastion Host 내의 접속 이력을 추적할 수 있는 Audit Log 수집 설정 - Web-based 접근 도입 시 HTTPS 강제 및 Rate Limiting 적용 여부 확인

원문 읽기