# Firewall

## Firewall Configuration

The Firewall setting lets you define security rules for incoming and outgoing network traffic to your VM. Allow or deny access to specific IP addresses, ports, or protocols.

- Go to VM Settings → Firewall.
- Click Manage to change firewall configurations for the network.

Example use case: block all traffic except SSH (port 22) and web traffic (ports 80/443).

![Firewall configuration settings](https://docs.zcp.zsoftly.ca/_astro/firewall-firewall-configuration.B0rin0gI_ZoURDC.webp)

See also: [Networks](https://docs.zcp.zsoftly.ca/public-cloud/compute/settings/networks), [Port Forwarding](https://docs.zcp.zsoftly.ca/public-cloud/compute/settings/port-forwarding)
