# 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**.
