By default a new Gewape Cloud server blocks almost all incoming traffic. That is on purpose: it keeps the server safe until you decide what should reach it. When you want visitors to load a website, an app to accept connections, or to log in over SSH, you open the matching port by adding a rule to a security group, then attaching that group to the server.
A security group is a named set of firewall rules. You can reuse one group across many servers, so give them clear names like web for anything serving HTTP and HTTPS.
Open the port
- Sign in to the console at platform.gewape.cloud.
- In the left menu open Networking, then Security Groups.
- Open the security group your server already uses, or click Create Security Group and give it a name and short description.
- Go to the Rules tab and click Create Rule.
- Fill in the rule:
- Direction: Ingress (traffic coming into your server).
- Ether Type: IPv4.
- IP Protocol: TCP covers most web and SSH traffic. Choose UDP or ICMP only if your app needs them.
- Port or Port Range: the port to open. The common ones are
80for HTTP,443for HTTPS, and22for SSH. You can also open a range like8000:8010. - Remote Type: CIDR. Set Remote IP Prefix to
0.0.0.0/0if anyone on the internet should reach it, or lock it to a single address such as41.90.10.12/32for just your office.
- Click OK. The rule takes effect right away, with no reboot.
Attach the group to your server
A rule does nothing until its security group is attached to a server.
- Open Cloud Servers and click the server you want.
- From the actions menu choose Manage Security Group.
- Move your security group into the selected list and save.
If it still will not connect
Check that the server has a public address (see Give your server a public address) and that the service inside the server is running and listening on that port. My server cannot be reached covers the usual causes.
One habit worth keeping: open only the ports you use, and set Remote IP Prefix to specific addresses where you can. Leaving SSH open to the whole internet invites constant login attempts.