--- title: Load Balancer Security Group --- # Load Balancer Security Group A security group is a virtual firewall that controls the inbound and outbound traffic allowed to and from a load balancer. The **Security Group** tab lets you attach groups, review their rules, and detach them. The tab is available when the load balancer is Running or in Backend Connection Failure. When a load balancer is created, a default security group is attached automatically. You can attach additional groups at any time. :::tip If a conflict between the OS firewall and security-group rules blocks traffic, you can attach an **Allow All Traffic** group temporarily to restore connectivity while you isolate the problem, then tighten the rules again. ::: --- ## Attach a Security Group 1. On the **Security Group** tab, select **Attach Security Group**. 2. In the selector, choose one or more security groups (you can attach several at once). 3. Confirm with the tick (**✓**) icon. To cancel, use the **✕** icon. 4. On success the portal shows "Security Group attached successfully" and refreshes the list. If no more groups are available, the tab shows "No more Security Groups are available. Click here to create a new security group." --- ## Review Attached Groups and Rules Each attached security group is listed with its rules: - **Inbound rules** — what traffic may reach the load balancer. Columns: Protocol, Port Range, Network Type, First IP, and Size. - **Outbound rules** — what traffic the load balancer may send out, with the same columns. Inbound rules typically allow HTTP/HTTPS (or the listening port) from the networks that should reach the load balancer; outbound rules govern traffic to the backends. --- ## Detach a Security Group 1. Select the detach control on the security group you want to remove. 2. Confirm the action. 3. On success the list refreshes without that group. The default security group cannot be detached. :::note Security groups are a shared networking feature. For creating groups and writing rules, see [Security Groups](/docs/myaccount/network/security_grp). ::: --- ## Related Resources | Resource | Use it for | | ------------------------------------------------------------------------- | -------------------------------------------------- | | [Security Groups](/docs/myaccount/network/security_grp) | Create groups and define inbound/outbound rules. | | [Load Balancer Network](/docs/myaccount/load-balancer/manage/network) | Manage IPs and VPCs. | | [Troubleshoot Load Balancers](/docs/myaccount/load-balancer/troubleshoot) | Diagnose blocked traffic and backend reachability. |