{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "name": "VM firewall | Edge Docs",
  "headline": "VM firewall | Edge Docs",
  "description": "Configure firewall rules for your VMs on Edge Network. Use security groups to control inbound and outbound traffic with a default-deny model.",
  "url": "https://edge.network/docs/compute/firewall",
  "image": "https://edge.network/og/docs__compute__firewall.png",
  "inLanguage": "en",
  "publisher": {
    "@type": "Organization",
    "name": "Edge Network",
    "url": "https://edge.network",
    "logo": "https://edge.network/favicon.svg"
  },
  "isPartOf": {
    "@type": "WebSite",
    "name": "Edge Network",
    "url": "https://edge.network"
  },
  "breadcrumb": {
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://edge.network"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Docs",
        "item": "https://edge.network/docs"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Compute",
        "item": "https://edge.network/docs/compute"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "Firewall",
        "item": "https://edge.network/docs/compute/firewall"
      }
    ]
  },
  "section": "documentation/compute",
  "articleBody": "Docs CDN Deployments, domains, caching, purging and on-the-fly image optimisation. Getting started \n Deployments \n Domains & SSL \n Compute Virtual machines in seconds: networking, firewalls, backups and SSH keys. Getting started \n Creating VMs \n Managing VMs \n DNS Zones, records, geo-routing, backups and development domains. Getting started \n Zone management \n DNS records \n Storage S3-compatible buckets, access keys, presigned URLs and multipart uploads. Getting started \n Buckets \n Access keys \n Shield Privacy-first bot protection: widget modes, siteverify and verified agents. Getting started \n Widget modes \n JavaScript API \n Assist AI answers from your own content: widget, ingestion and the API. Getting started \n Widget & embedding \n Content ingestion \n REST API Manage every Edge resource over HTTPS with API keys. Authentication \n Errors \n Versioning \n Compute \n CDN \n DNS \n CLI One binary for macOS, Linux and Windows to script every product. Installation \n Authentication \n Compute commands \n CDN commands \n DNS commands \n Storage commands \n Dev tooling Command palette and keyboard shortcuts across the console. Command palette \n Agent tooling Let AI agents deploy and manage infrastructure: discovery, MCP and access codes. Start with the overview MCP server \n MCP tool reference \n Connect your tool \n Framework wrappers \n Self-signup \n Access codes \n Discovery endpoint \n Deploy a static site \n Deploy an app \n Projects \n Bot protection \n AI answers \n Account & support Teams, security, audit logs, alerts, billing tools and support. Start with the overview Teams \n Referral programme \n Cost Advisor \n Security \n Two-factor auth \n Audit log \n Alerts \n Support tickets \n Search the docs ⌘K Console Products\n\n CDN Compute Overview Getting started Creating VMs Managing VMs Networking Firewall SSH keys Startup scripts Backups Monitoring DNS Storage Shield Assist Developer tools\n\n REST API CLI Dev tooling Agents\n\n Agent tooling Account\n\n Account & support Firewall security group with inbound rules Overview Copy Anchor Link \n\n The Edge Firewall controls inbound and outbound traffic to your VMs using security groups. Security groups are collections of rules that define which ports and protocols are allowed. Each VM can have multiple security groups attached.\n\n Security groups: reusable sets of firewall rules. Attach them to any VM to apply the same rules across your infrastructure instantly.\n Default deny: when enabled, the firewall blocks all inbound traffic except what&#x27;s explicitly allowed by attached security groups.\n Enabling the firewall Copy Anchor Link \n\n The Edge Firewall can be enabled or disabled per VM. When disabled, all traffic flows freely. When enabled, only traffic matching your security group rules is allowed through.\n\n Navigate to your VM in the console.\n Click the Firewall tab.\n Use the Enable / Disable button at the top of the page.\n Note\n\n New VMs. The firewall is enabled by default on newly created VMs. Make sure to attach the allow-ssh security group before enabling, or use the VNC console to access your VM.\n\n Warning\n\n Migrated VMs. VMs migrated from a previous infrastructure have the firewall disabled by default. This ensures uninterrupted access. Enable it when you&#x27;re ready and have confirmed the right security groups are attached.\n\n Security groups Copy Anchor Link \n\n Security groups are reusable collections of firewall rules. Each account comes with a set of default security groups that cover common use cases.\n\n Default security groups Copy Anchor Link \n\n Name Ports Description allow-ssh TCP 22 SSH access allow-web TCP 80, 443 HTTP and HTTPS allow-ping ICMP Ping / ICMP echo allow-all-outbound All Unrestricted outbound traffic Attaching security groups Copy Anchor Link \n\n Navigate to your VM&#x27;s Firewall tab.\n Under Available Security Groups , click Attach next to the group you want.\n The rules take effect immediately.\n Creating custom security groups Copy Anchor Link \n\n Go to Compute → Firewall in the console.\n Click Create Security Group .\n Add rules specifying protocol, port range, source CIDR and action.\n Save and attach the group to your VMs.\n Common firewall rules Copy Anchor Link \n\n Here are example rules for common use cases.\n\n Web server (HTTP/HTTPS) Copy Anchor Link \n\n Protocol Port Source Action TCP 80 0.0.0.0/0 (any) Allow TCP 443 0.0.0.0/0 (any) Allow SSH (restricted to your IP) Copy Anchor Link \n\n More secure than allowing SSH from anywhere.\n\n Protocol Port Source Action TCP 22 YOUR_IP/32 Allow Database (private network only) Copy Anchor Link \n\n Allow database connections only from your private network.\n\n Protocol Port Source Action TCP 5432 (PostgreSQL) 10.185.0.0/24 Allow Allow ping (ICMP) Copy Anchor Link \n\n Protocol Type Source Action ICMP Echo Request 0.0.0.0/0 (any) Allow How it works Copy Anchor Link \n\n When the firewall is enabled, it operates on a default-deny basis:\n\n All inbound traffic is blocked unless a security group explicitly allows it.\n Established connections (return traffic) are always allowed.\n ICMP is allowed when the allow-ping group is attached.\n Outbound traffic is allowed when allow-all-outbound is attached.\n ARP and DHCP traffic is always permitted for network connectivity.\n Rules from all attached security groups are combined: if any group allows a port, it&#x27;s open.\n\n Best practices Copy Anchor Link \n\n Principle of least privilege: only open ports that your application needs. Close everything else.\n Restrict SSH access: limit SSH to your IP address or a VPN range instead of allowing it from anywhere.\n Use private networks for internal services: databases and other internal services should only be accessible via private networks.\n Review rules regularly: remove rules for services you no longer use.\n Troubleshooting Copy Anchor Link \n\n Can&#x27;t connect to my service Copy Anchor Link \n\n Check that you have an inbound rule allowing traffic on the correct port. Make sure the service is actually running on your VM ( sudo netstat -tlnp ).\n\n Locked out of SSH Copy Anchor Link \n\n Use the VNC console in the Edge console to access your VM and fix the firewall rules. The VNC console works regardless of firewall settings.\n\n Rules not taking effect Copy Anchor Link \n\n Check that the Edge Firewall is enabled on the VM&#x27;s Firewall tab. When disabled, all traffic flows freely regardless of security groups. Also verify that the correct security groups are attached.\n\n Firewall disabled after migration Copy Anchor Link \n\n VMs migrated from a previous infrastructure have the firewall disabled by default. Navigate to the Firewall tab and click Enable to activate it. Make sure allow-ssh is attached first to avoid being locked out.\n\n Something unclear or out of date? Tell us , or read this page as Markdown .\n\n Networking\n\n Previous\n\n SSH keys\n\n Next",
  "headings": [
    {
      "level": 1,
      "text": "Firewall"
    }
  ],
  "relatedLinks": [
    {
      "@type": "WebPage",
      "name": "Network",
      "url": "https://edge.network/network"
    },
    {
      "@type": "WebPage",
      "name": "Pricing",
      "url": "https://edge.network/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Docs",
      "url": "https://edge.network/docs"
    },
    {
      "@type": "WebPage",
      "name": "Sign in",
      "url": "https://edge.network/console/access"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/cdn/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Deployments",
      "url": "https://edge.network/docs/cdn/deployments"
    },
    {
      "@type": "WebPage",
      "name": "Domains &amp; SSL",
      "url": "https://edge.network/docs/cdn/domains"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/compute/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Creating VMs",
      "url": "https://edge.network/docs/compute/creating-vms"
    },
    {
      "@type": "WebPage",
      "name": "Managing VMs",
      "url": "https://edge.network/docs/compute/managing-vms"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/dns/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Zone management",
      "url": "https://edge.network/docs/dns/zones"
    },
    {
      "@type": "WebPage",
      "name": "DNS records",
      "url": "https://edge.network/docs/dns/records"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/storage/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Buckets",
      "url": "https://edge.network/docs/storage/buckets"
    },
    {
      "@type": "WebPage",
      "name": "Access keys",
      "url": "https://edge.network/docs/storage/access-keys"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/shield/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Widget modes",
      "url": "https://edge.network/docs/shield/widget-modes"
    },
    {
      "@type": "WebPage",
      "name": "JavaScript API",
      "url": "https://edge.network/docs/shield/js-api"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/assist/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Widget &amp; embedding",
      "url": "https://edge.network/docs/assist/widget"
    },
    {
      "@type": "WebPage",
      "name": "Content ingestion",
      "url": "https://edge.network/docs/assist/ingestion"
    },
    {
      "@type": "WebPage",
      "name": "Authentication",
      "url": "https://edge.network/docs/api/authentication"
    },
    {
      "@type": "WebPage",
      "name": "Errors",
      "url": "https://edge.network/docs/api/errors"
    },
    {
      "@type": "WebPage",
      "name": "Versioning",
      "url": "https://edge.network/docs/api/versioning"
    },
    {
      "@type": "WebPage",
      "name": "Compute",
      "url": "https://edge.network/docs/api/compute"
    },
    {
      "@type": "WebPage",
      "name": "CDN",
      "url": "https://edge.network/docs/api/cdn"
    },
    {
      "@type": "WebPage",
      "name": "DNS",
      "url": "https://edge.network/docs/api/dns"
    },
    {
      "@type": "WebPage",
      "name": "Installation",
      "url": "https://edge.network/docs/cli/installation"
    },
    {
      "@type": "WebPage",
      "name": "Authentication",
      "url": "https://edge.network/docs/cli/authentication"
    }
  ],
  "alternateFormats": [
    {
      "@type": "MediaObject",
      "contentType": "text/html",
      "url": "https://edge.network/docs/compute/firewall",
      "name": "HTML version"
    }
  ],
  "dateModified": "2026-11-23T08:56:45.507Z"
}