> For the complete documentation index, see [llms.txt](https://docs.layerstack.com/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerstack.com/product-docs/quickstart/create-a-firewall-template-and-add-firewall-rules.md).

# Create a Firewall Template & Add Firewall Rules

1. Log in to [LayerPanel ](https://cp.layerpanel.com/). Go to the **Services** section and click **Firewalls** button.
2. Click **+ Create Firewall**.
3. Enter your **firewall name**. Then click **+ Add New Inbound Rules** and **+ Add New Outbound Rules** to apply the inbound and outbound rules.
4. Select your cloud server from the server list and assign it to this firewall. You can select multiple servers as needed.
5. Click **Save**.
