Firewall and SSH
Firewall manages nftables. The firewall is off by default. Turn off ufw or firewalld before you turn it on: the panel notices them and warns.
- The Accept policy (default) blocks only what rules forbid; Drop lets only what is allowed through.
- Actions: accept, drop, reject, and “only”: on these ports only the listed sources get through.
- Service ports (panel, SSH, web server, site streams) are always open. Sources for each of them can be limited separately. The panel limit applies to every request to the panel, through its domain too, and works even with the firewall off.
- Container ports are filtered by the same firewall by default.
Safe apply
Section titled “Safe apply”- Every change has to be confirmed within 60 seconds with Access works, or the previous rules come back.
- The panel will not save a change that blocks your address.
- If access is lost anyway:
sudo ingrest firewall reset, see Panel access.
- Inbound: rules and policy.
- Ports: which ports listen and who can connect to them.
- Forwarding: port forwarding; works with the firewall off too.
- Outbound: bans on outbound connections; they do not apply with the firewall off.
- Addresses: allow and block lists, including Shield autoban bans.
- Countries and lists: blocking countries and external address lists, updated every 6 hours. Needs GeoIP databases.
- fail2ban: install and settings: 5 failed logins in 10 minutes mean a one-hour ban, repeat bans grow up to 30 days.
The dropped packet log is off by default; when on, entries show in Logs.
sshd settings are in Settings → SSH: port, addresses, password login, root login.
- A new port or address has to be confirmed within 3 minutes, or sshd returns to the previous settings.
- The panel will not save a change after which neither root nor any sudo user can sign in.
- Every 10 minutes the panel checks for accounts with uid 0, new users with a shell and SSH keys added outside the panel, and reports them.