Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE

Please log in or register to answer this question.

1 Answer

+1 vote
by (178k points)

A Bastion Host, also known as a Jump Host or Jump Server, is a special-purpose server instance that acts as a secure gateway to provide controlled access to isolated environments or private networks within AWS or other cloud environments. Here are some key characteristics and uses of a Bastion Host:

  1. Secure Access Point: A Bastion Host is designed to provide a single entry point into a private network from an external network (like the internet) or from within a VPC (Virtual Private Cloud).

  2. Access Control: It enforces access control measures such as authentication, authorization, and auditing to ensure that only authorized users or systems can access the internal resources.

  3. Minimal Attack Surface: Bastion Hosts are configured to have minimal services and software installed, reducing their attack surface and enhancing security.

  4. Logging and Monitoring: They often include robust logging and monitoring capabilities to track access attempts and detect any suspicious activity.

  5. Proxying Connections: Users connect to the Bastion Host first, and from there, they can access other resources within the private network, acting as a proxy for SSH or RDP connections.

Example Use Case

In a multi-tier architecture within AWS, you might have web servers in a private subnet that need to be accessed for administrative purposes. A Bastion Host placed in a public subnet acts as the entry point for administrators to securely access these web servers via SSH or RDP, without exposing them directly to the internet.

Example Code: Setting up a Bastion Host using AWS CLI

  1. Launch an EC2 Instance for Bastion Host:

    aws ec2 run-instances --image-id ami-12345678 --instance-type t2.micro --subnet-id subnet-12345678 --key-name MyKeyPair
  2. Configure Security Group for Bastion Host: Ensure that the security group allows inbound SSH (port 22) or RDP (port 3389) access only from authorized IP addresses.

  3. Access Internal Resources via Bastion Host: Use SSH port forwarding or similar techniques to tunnel connections through the Bastion Host to reach internal resources securely.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...