Firewall and SSH
Every server has a firewall and automatic blocking from the moment it is created. You don’t need to set anything up. To see them, open the server and go to Security.
What the Security section shows
Section titled “What the Security section shows”Four tiles at the top: Firewall (active or not), Automatic blocking, Banned now and Blocked in the last 24 h.
- Banned now: addresses banned automatically for an hour after repeated failures, with the reason and when the ban ends.
- Automatic protection: what the server watches for, how many addresses each rule has banned, and the known attacker networks it blocks.
- Firewall rules: what can reach the server. Web traffic (HTTP and HTTPS, ports 80 and 443) and SSH and SFTP (port 22) are listed; everything else is blocked unless you open it under Extra open ports. These rules are managed by Netkeel and marked Managed.
- Extra open ports: ports you open yourself.
- Blocked addresses: your own blocks.
SSH and SFTP are open to every address, but only for the keys you add, never with a password, and repeated failures are banned automatically. To keep one address out completely, add it under Blocked addresses.
Unban an address
Section titled “Unban an address”An address can get banned after several wrong passwords, even yours. If your own address is banned, a red notice at the top of the section says so.
- Find the address under Banned now.
- Click Unban.
It is banned again only if it keeps failing.
Block an address
Section titled “Block an address”Your blocks apply to the whole server: every application and SSH.
- Under Blocked addresses, type an IP address or a range, such as
192.0.2.44or2001:db8:1234::/48. - Click Block. Add more if you need to.
- Click Save changes. Nothing applies until you save.
To unblock, click the × next to an address and click Save changes.
You can block up to 200 entries. Private addresses, the server’s own addresses and your own current address can’t be blocked.
Open a port
Section titled “Open a port”If you run something that needs its own port, such as a custom application, open it under Extra open ports.
- Enter the port, such as
8080, and choose TCP or UDP. - Choose who can reach it: Everyone or Only these addresses. For the second, enter an IP address or a range, such as
203.0.113.10or198.51.100.0/24. - Click Open port. Add more if you need to.
- Click Save changes. Nothing applies until you save.
To close a port, click Close next to it and click Save changes.
You can open up to 20 ports. Ports 22, 80 and 443 are managed by Netkeel. Database and cache ports (such as 3306, 5432 and 6379) can only be opened to chosen addresses. Netkeel opens each port on the server and at the cloud provider.
SFTP and SSH access
Section titled “SFTP and SSH access”SFTP and SSH logins belong to each application, not to the server. Each application has its own login that only reaches that application. There is no root login.
To connect:
- Open the application and go to SSH / SFTP (under Files).
- Click Add key, give it a Friendly name, and paste your OpenSSH public key (or click Upload file). No key yet? See Create an SSH key. Click Add key, then confirm with your password (and your authenticator code if two-factor authentication is on).
- Connect with any SFTP client, such as FileZilla, Cyberduck or WinSCP. Use the host, port (22) and user shown on the page, and your private key. The page also shows an
sftpcommand you can copy.
SFTP is always available to the application’s keys. For a command-line shell, turn on the SSH access switch. The same keys then also open a shell inside the application, as the site’s own account, with tools such as git and rsync. The page shows the ssh command to copy.
To revoke access, open the key’s ⋮ menu and click Remove key.
Create an SSH key
Section titled “Create an SSH key”An SSH key is a pair of files: a private key that stays on your computer, and a public key you paste into the panel. You create it once and can use it for all your applications.
On Windows 10 or 11, macOS or Linux:
- Open Terminal (on Windows, PowerShell).
- Run
ssh-keygen -t ed25519. - Press Enter to save the key in the suggested place. Type a passphrase to protect the key, or press Enter twice for none.
- Show the public key:
cat ~/.ssh/id_ed25519.pub(in PowerShell,type $env:USERPROFILE\.ssh\id_ed25519.pub). - Copy the whole line, which starts with
ssh-ed25519, and paste it under SSH / SFTP › Add key.
With PuTTYgen (Windows):
- Open PuTTYgen, choose EdDSA (Ed25519) and click Generate. Move the mouse until it finishes.
- Copy the text under Public key for pasting into OpenSSH authorized_keys file and paste it under SSH / SFTP › Add key.
- Click Save private key and keep the
.ppkfile somewhere safe.
Connect with FileZilla:
- Open File › Site Manager and click New site.
- Choose SFTP as the protocol, and type the host and user shown under SSH / SFTP, with port 22.
- Under Logon Type, choose Key file and pick your private key:
id_ed25519in the.sshfolder of your user folder, or the.ppkfile. - Click Connect.
Never share or upload your private key. Only the public key goes into the panel.