Security Groups

Security Groups

This article explains how to create and configure a security group for your Public Cloud Instances.

idea e1761126179182 A security group acts as a virtual firewall for your Public Cloud instances, allowing you to control inbound and outbound traffic.

Attaching a security group replaces all existing instance-level firewall rules.

Prerequisites

  • Access to the Customer Portal account
  • Enabled Leaseweb Public Cloud account.

Steps to follow

Log in to the Customer Portal

  1. Open your browser and go to the Customer Portal
  2. Sign in with your Leaseweb account credentials

Navigate to Security Groups

  1. From the left-hand menu, go to Public Cloud
  2. Under the submenu, click Security Groups
  3. You will see a list of all available security groups

Create a New Security Group

  1. Click the Create Security Group button
  2. Fill in the details:
    • Name: Provide a descriptive name (e.g., web-frontend-sg)
    • Description: Briefly explain the purpose (e.g., “Allows HTTP/HTTPS traffic for web servers”)

Add Firewall Rules

  1. Click + New Firewall Rule
  2. A pop-up window will appear
  3. Select the Protocol from the dropdown (TCP, UDP, ICMP, or ALL)
  4. Enter:
    1. Source Network: Define the IP/CIDR that can access 
    2. Start Port / End Port: Specify the port or range
  5. Click Save to add the rule

Save the Security Group

  1. Once you’ve added the necessary rules, click Create Group
  2. Your new security group will now appear in the list

Attach a security group while launching an instance

  1. Navigate to Instances -> Go to Public Cloud Instances.
  2. Launch a New Instance
    1. Click Launch an Instance
    2. Enter a name for your instance
    3. Select an OS image
    4. Choose an instance type
  3. Attach a Security Group
    1. In the Security Groups section, click Attach Groups
    2. Select a security group that has already been created
    3. Click Confirm
  4. Your selected security group will now be attached to the instance
  5. Continue with the remaining steps to launch your instance

Attach a security group to an existing instance

  1. Go to your Instance Details page
  2. Navigate to the Security tab
  3. Stop the instance if it is currently running
    • warning e1759326998735 Security group changes can only be applied when the instance is stopped
  4. Click on Attach Security Groups
    1. A list of available security groups will appear
    2. You can select one or multiple groups to attach
    3. Already attached groups will be marked as selected or greyed out
  5. After choosing the desired security groups, click Confirm to apply the changes.

Remove Security Groups from an instance

  1. Go to your Instance Details page
  2. Navigate to the Security tab
  3. Select the security groups you want to remove
  4. Click Detach
  5. A confirmation message will appear: “Are you sure you want to detach the selected Security Groups?”
  6. Confirm by clicking Detach again
  7. The selected security groups will be removed from your instance.