Servers in your own private cloud (OpenStack or CloudStack) have a Firewall card on their page. It lists the traffic the cloud lets reach the server. Anything not listed is blocked.
Adding a rule#
- Direction: Incoming traffic to the server, or Outgoing traffic from it. Outgoing rules are offered only where the cloud supports them per server.
- Protocol: TCP, UDP, ICMP (ping) or all traffic.
- Port or range: for TCP and UDP, one port such as
22, or a range such as8000-8100. - From / to: the other side's address range.
0.0.0.0/0means anywhere on IPv4 and::/0anywhere on IPv6;203.0.113.4/32is a single address.
Common rules: TCP 22 for SSH, TCP 80 and 443 for a website, TCP 3389 for Windows remote desktop. Allow SSH or remote desktop from your own address only, where you can.
How each cloud applies it#
- OpenStack: each server gets its own security group the first time you add a rule, so your changes affect only this server. Rules from groups the server shares with others, such as the project's
defaultgroup, are shown with the group's name but can't be changed here. - CloudStack: rules are set on the server's public IPs, so attach a public IP first. A new rule goes on every public IP attached to the server. Outgoing traffic is set per network in the cloud itself.
Remove deletes a rule; the traffic it allowed is blocked from then on. Owners, Admins and Developers can change rules; everyone else can see them. Every change is in the audit log.