Truth in IT
    • Sign In
    • Register
        • Videos
        • Channels
        • Pages
        • Galleries
        • News
        • Events
        • All
Truth in IT Truth in IT
  • Data Management ▼
    • Converged Infrastructure
    • DevOps
    • Networking
    • Storage
    • Virtualization
  • Cybersecurity ▼
    • Application Security
    • Backup & Recovery
    • Data Security
    • Identity & Access Management (IAM)
    • Zero Trust
    • Compliance & GRC
    • Endpoint Security
  • Cloud ▼
    • Hybrid Cloud
    • Private Cloud
    • Public Cloud
  • Webinar Library
  • TiPs
  • DRAW

Network Security Groups in OpenNebula: Setup & Testing

Open Nebula
04/06/2026
0 (0%)
Share
  • Comments
  • Download
  • Transcript
Report Like Favorite
  • Share/Embed
  • Email
Link
Embed

Transcript


In this screencast, we will walk through the process of creating the security groups, assigning them to the virtual network as well as assigning them to the individual VMs. Then we will verify the security groups in action by trying to establish a connection to the web server from two virtual machines on the same network. Consider security groups as a host-level firewall to stop the traffic flow before it reaches the virtual machine's virtual network cards. Each group is a set of individual rules. Security groups can operate in both directions, inbound and outbound. As a source or destination, you can use specific IPs, openable a virtual network, or target all networks. Security groups are restrictive by default, meaning that whatever is not explicitly allowed is denied. Be aware of the default security group. It has two rules to allow the traffic flow in both directions without any restrictions. You can find the following configuration options. Configuration that can be inbound or outbound. In the protocol field, you must pick the protocol from the list. In the port range field, you can define ports in a variety of methods. Ranges separated with a dash symbol, individual ports separated by a comma, or a combination of both. Alternatively, you can choose to allow all ports. The target network field is the tricky one. The meaning of this setting is defined by the direction setting. If the direction is set to outbound, then this parameter is going to define the destination. But if the direction is set to inbound, then this parameter is going to define the source network. For this demonstration, the environment has the following setup. One OpenSUSE 15 virtual machine with NGINX installed and a custom index.html page. Two Microsoft Windows-based virtual machines to act as client machines. All virtual machines are using the same VXLAN EVPN network and are located on three different hosts. The virtual network address range is set to 48 addresses starting with 172.17.2.200. In the scope of this demonstration, I'm going to add three security groups. A security group with the name outbound-sg to allow any outbound traffic from the VMs. This will ensure that VMs can communicate with the outside world. A security group named webserver-sg to allow the inbound traffic to port 22-tcp from any source and the inbound port 80-tcp, accessible from a specific IP address only. A security group named rdp-sg to allow RDP connections from any source. The outbound security group is going to be attached to the whole virtual network and will appear on all VMs. The rdp-sg security group is only going to be attached to the virtual network card on the client VMs. The webserver-sg is going to be attached to the virtual network card on the webserver VM. The management of security groups is located under Networks, Security Groups tab. By default, there is only the default security group. Press the Create button to start the security group creation wizard. I'm going to add the outbound-sg first. Proceed to the Rules Configuration screen. In the direction, select Outbound. Set the protocol to All. Port range to All and target network as any network. Don't forget to press the Add button and then Finish to save the changes. Start the wizard once again. The next security group is going to be named webserver-sg. Set the direction to inbound, protocol to TCP, port range to 22 and target network to any network. Now add another rule to the group. Direction and protocol should remain the same, while the port must be changed to 80 and the target network set to manual. With the first IP defined as 172.17.2.205 and the size of 1. Lastly, add a third security group named rdp-sg to permit inbound RDP connections from any source. In order for security groups to be effective, they must be attached to a virtual network or to an individual virtual network card on the VM. The outbound-sg is universal, thus it makes sense to attach it at the virtual network level. Navigate to the Virtual Networks page and select the virtual network. Press Update, navigate to the Security tab, remove the default security group and select the outbound-sg security group. Press the Finish button to save changes. Now it's time to instantiate three virtual machines and complete the verification. Navigate to the virtual machines and press the Create button. In the scope of this demonstration, I'm going to use Windows-based virtual machines as the client machines, however, any operating system with a browser or command line is suitable. Name the virtual machine as the client-0, verify that the virtual network card is attached to the correct virtual network, and press the Finish button to deploy. Deploy the second client virtual machine from the same template. Navigate to the Networks tab and this time press Edit. Skip to the Network Values tab to override the assigned IP address, since I'm allowing an access to the web server port 80 only from the IP address 172.17.2.205, I'm going to set this IP to be assigned to the second client machine. Press the Finish button to place the VM in the queue. Lastly, the web server VM needs to be deployed. This virtual machine already has the web server running, so no modifications are needed. Wait until the VMs are running and check the first client's Info tab. Switch to the Networks, expand Security Groups under the network card and press the Attach Security Group button. Select RDP-SG and press the Accept button. Perform the same action with the second client. Perform the same action with the web server, but this time select the web server SG security group instead. Once all VMs are ready and security groups are attached, it's time to verify the security groups in action. Open the VNC console of the client 0 machine, which is the VM that has its IP address assigned automatically by OpenNebula. In the browser, navigate to the web server IP, in my case it is 172.17.2.201. In a while, you are supposed to get an error message. Open the VNC console of the second client VM, the one that has its IP overridden. Visit the same page and you should be greeted with the landing page confirming that the web server is reachable. And this concludes the screencast where we've successfully implemented network traffic filtering using the security groups functionality of OpenNebula. Thank you for watching and see you in the next screencast.

TL;DR

  • OpenNebula Security Groups act as host-level firewalls that filter traffic before it reaches VM network cards, operating on a restrictive-by-default model where all traffic is denied unless explicitly allowed.
  • Security groups can be attached at the virtual network level to apply rules universally, or at the individual VM network card level for granular control over specific workloads.
  • Rules support flexible configuration including protocol selection, port ranges (individual, ranges, or all), and target networks defined by specific IPs, network ranges, or any network.
  • The demonstration successfully validates security group functionality by blocking one client VM from accessing a web server while allowing another client with a whitelisted IP address to connect.

Security Groups Fundamentals

This screencast demonstrates how to implement network security in OpenNebula using Security Groups, which function as host-level firewalls that filter traffic before it reaches virtual machine network cards. Security Groups operate on a restrictive-by-default model, meaning all traffic is denied unless explicitly allowed through defined rules. The demonstration covers the complete workflow from creating security groups with specific inbound and outbound rules to assigning them at both the virtual network level and individual VM level. The tutorial uses a practical scenario with three VMs on a VXLAN EVPN network to illustrate how security groups control access to a web server running on OpenSUSE 15.

Implementation and Verification

The implementation process involves creating three distinct security groups: an outbound-sg for general internet access attached at the network level, a webserver-sg with SSH and HTTP rules for the server VM, and an rdp-sg for Windows client access. The demonstration shows how to configure rules with various parameters including protocol selection, port ranges, and target networks defined by IP addresses or network ranges. Verification is performed by deploying three VMs and testing connectivity, where one client VM with an automatically assigned IP is blocked from accessing the web server on port 80, while a second client with a specifically allowed IP address successfully connects, confirming that the security group rules are functioning as intended.

Chapters

0:00 - Introduction
0:21 - Security Groups Overview
0:55 - Configuration Options
1:33 - Demo Environment Setup
2:02 - Creating Security Groups
4:44 - Attaching to Virtual Networks
5:18 - VM Deployment and Configuration
7:29 - Testing and Verification

Key Quotes

0:21 "Consider security groups as a host-level firewall to stop the traffic flow before it reaches the virtual machine's virtual network cards."
0:41 "Security groups are restrictive by default, meaning that whatever is not explicitly allowed is denied."
1:19 "The target network field is the tricky one. The meaning of this setting is defined by the direction setting."
4:44 "In order for security groups to be effective, they must be attached to a virtual network or to an individual virtual network card on the VM."

Categories:
  • » Cybersecurity » Network Security
  • » Cybersecurity » Cloud Security
  • » Data Protection
Channels:
News:
Events:
Tags:
  • Cloud Security
  • Network Security
  • Technical Deep Dive
  • How-To
  • Demo
  • Security Groups
  • Virtual Network Security
  • Firewall Rules
  • Network Access Control
  • Cloud Infrastructure Security
  • VM Network Configuration
  • OpenNebula Administration
  • Network Segmentation
Show more Show less

Browse videos

  • Related
  • Featured
  • By date
  • Most viewed
  • Top rated
  •  

              Video's comments: Network Security Groups in OpenNebula: Setup & Testing

              XStreaminars (watch here)

              • Jul
                28

                Illumio + Netskope: Zero Trust in the Age of AI Autonomy

                07/28/202601:00 PM ET
                • Jul
                  29

                  Ask Your Cloud Anything: Unlocking Governance Silos in your Environments

                  07/29/202601:00 PM ET
                  More events

                  Industry Events (watch there)

                  • Aug
                    06

                    Mitigating Risks of Sensitive Data Exposure in AI Platforms

                    08/06/202604:00 AM ET
                    • Aug
                      06

                      Same Tactics, Enhanced Velocity: The Impact of AI Agents on Identity Attacks

                      08/06/202602:00 PM ET
                      • Aug
                        07

                        Discover DLP Memories: The Evolving Triage Agent That Learns Each Shift

                        08/07/202611:00 AM ET
                        More events

                        Upcoming Webinar Calendar

                        • 07/28/2026
                          01:00 PM
                          07/28/2026
                          Illumio + Netskope: Zero Trust in the Age of AI Autonomy
                          https://www.truthinit.com/index.php/channel/2031/illumio-netskope-zero-trust-in-the-age-of-ai-autonomy/
                        • 07/29/2026
                          04:00 AM
                          07/29/2026
                          Real-Time Strategies for Safeguarding Against Prompt Injections
                          https://www.truthinit.com/index.php/channel/1968/real-time-strategies-for-safeguarding-against-prompt-injections/
                        • 07/29/2026
                          01:00 PM
                          07/29/2026
                          Ask Your Cloud Anything: Unlocking Governance Silos in your Environments
                          https://www.truthinit.com/index.php/channel/2048/ask-your-cloud-anything-unlocking-governance-silos-in-your-environments/
                        • 08/06/2026
                          04:00 AM
                          08/06/2026
                          Mitigating Risks of Sensitive Data Exposure in AI Platforms
                          https://www.truthinit.com/index.php/channel/2058/mitigating-risks-of-sensitive-data-exposure-in-ai-platforms/
                        • 08/06/2026
                          02:00 PM
                          08/06/2026
                          Same Tactics, Enhanced Velocity: The Impact of AI Agents on Identity Attacks
                          https://www.truthinit.com/index.php/channel/2064/same-tactics-enhanced-velocity-the-impact-of-ai-agents-on-identity-attacks/
                        • 08/07/2026
                          11:00 AM
                          08/07/2026
                          Discover DLP Memories: The Evolving Triage Agent That Learns Each Shift
                          https://www.truthinit.com/index.php/channel/2062/discover-dlp-memories-the-evolving-triage-agent-that-learns-each-shift/
                        • 08/07/2026
                          11:30 AM
                          08/07/2026
                          Refreshing Beverage Ideas Paired with Essential Cybersecurity Insights
                          https://www.truthinit.com/index.php/channel/2063/refreshing-beverage-ideas-paired-with-essential-cybersecurity-insights/
                        • 08/13/2026
                          12:00 PM
                          08/13/2026
                          Harnessing AI for Secure Innovation in the Enterprise with Netskope & Omada
                          https://www.truthinit.com/index.php/channel/2065/harnessing-ai-for-secure-innovation-in-the-enterprise-with-netskope-omada/
                        • 08/19/2026
                          12:00 PM
                          08/19/2026
                          Becoming Agent Ready: Insights and Strategies with Cyera
                          https://www.truthinit.com/index.php/channel/2036/becoming-agent-ready-insights-and-strategies-with-cyera/
                        • 09/02/2026
                          12:00 PM
                          09/02/2026
                          Unified Data Security in Action: Uncover, Analyze, and Resolve Threats
                          https://www.truthinit.com/index.php/channel/2045/unified-data-security-in-action-uncover-analyze-and-resolve-threats/
                        • 09/30/2026
                          04:00 AM
                          09/30/2026
                          AI Command Center: Optimizing Visibility and Control in Your Operations
                          https://www.truthinit.com/index.php/channel/2024/ai-command-center-optimizing-visibility-and-control-in-your-operations/
                        Truth in IT
                        • Sponsor
                        • About Us
                        • Terms of Service
                        • Privacy Policy
                        • Contact Us
                        • Preference Management
                        Desktop version
                        Standard version