# [Configure firewall rules for Django on Google Cloud](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/firewall_setup/)

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/)
- [Get started with Django on Google Axion C4A](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/background/)
- [Configure firewall rules for Django on Google Cloud](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/firewall_setup/)
- [Create a Google Axion C4A Arm virtual machine on GCP](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/instance/)
- [Install Django on your Arm-based VM](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/installation/)
- [Verify Django installation and run the development server](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/baseline/)
- [Deploy Django on GKE Axion with managed data services](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/overview-and-infrastructure/)
- [Build a Django REST API with PostgreSQL and Redis](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/django_application/)
- [Containerize and deploy Django on Axion GKE](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/containerization-and-deploy/)
- [Benchmark Django application performance on Arm](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/benchmarking/)
- [Next Steps](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/_next-steps/)

## Open port 8000 for your Django application
Before you can access your Django development server from your browser, you need to configure Google Cloud’s firewall to allow inbound traffic on port 8000. This section walks you through creating a firewall rule that permits HTTP requests to reach your VM.

> **Note**  
> For support on GCP setup, see the Learning Path [Getting started with Google Cloud Platform](https://learn.arm.com/learning-paths/servers-and-cloud-computing/csp/google/).

## Create a firewall rule in Google Cloud Console
Navigate to the Google Cloud Console and create a new firewall rule:

- Go to the **Google Cloud Console**.
- Select **VPC network** > **Firewall**.
- Select **Create firewall rule**.

![Google Cloud Console Firewall page](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/images/firewall-rule.png)

## Configure the firewall rule
Fill in the rule details to allow traffic on port 8000:

- Set **Name** to `allow-tcp-8000`.
- Select your network (the default is `default`; your organization may use a different network).
- Set **Direction of traffic** to **Ingress**.
- Set **Action on match** to **Allow**.
- Set **Targets** to **Specified target tags**.
- Enter `allow-tcp-8000` in the **Target tags** field.
- Set **Source IPv4 ranges** to `0.0.0.0/0` (allows traffic from any IP address; restrict this in production).

![Firewall rule configuration](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/images/network-rule.png)

## Specify the port and protocol
Configure the protocol and port settings:

- Under **Protocols and ports**, select **Specified protocols and ports**.
- Check the **TCP** checkbox.
- Enter `8000` in the **Ports** field.
- Click **Create**.

![Specifying TCP port 8000](https://learn.arm.com/learning-paths/servers-and-cloud-computing/django-on-gcp/images/network-port.png)

## What you’ve accomplished and what’s next
In this section, you configured firewall rules to allow external HTTP traffic on port 8000, making your Django application accessible from the internet.

Next, you’ll provision a Google Axion C4A Arm VM to host your Django application.
