blog.back_article_list

How to secure an ispmanager server

How to secure an ispmanager server

Updated and tested 4 December 2026

An ispmanager server is safer once SSH accepts keys only, the panel answers only your own IP addresses, logins ask for a second factor and FTP runs over TLS. I made each of these changes on an ispmanager Pro server running Debian 12 and checked every one from a second connection before relying on it. All of them are done in the panel or over SSH.

Keep one SSH session open while you work through the first two sections. If a change locks you out of a new session, the open one is how you put it back.

Switch SSH to key-only logins

Set up your SSH key first and confirm it logs you in. Then add a drop-in file that turns off password logins. Its name matters: sshd reads the files in /etc/ssh/sshd_config.d/ in name order and the first value it finds wins. Cloud images often carry a cloud-init file there, 01-cloud-init.conf on my server, that sets password login on. A file named 10-hardening.conf lost to it, so start the name with 00-:

cat > /etc/ssh/sshd_config.d/00-hardening.conf <<'EOF'
PermitRootLogin prohibit-password
PasswordAuthentication no
EOF
sshd -t && systemctl reload ssh

Then check the values sshd really uses, which is the only test that counts:

sshd -T | grep -Ei 'permitrootlogin|passwordauthentication'

Mine answered permitrootlogin without-password and passwordauthentication no. From a second terminal, a key login still worked, and ssh -v without the key ended with "Authentications that can continue: publickey" and Permission denied (publickey).

Limit who can open the panel

The panel listens on port 1500 for anyone by default. Each user can restrict their own login to a list of addresses:

  1. Click your user name at the top right to open User settings.
  2. Set Access to control panel to Only IP addresses from the list.
  3. In List of IP addresses, enter your address. The field takes single addresses, a mask such as 198.51.100.0/24 or a range.
  4. Save.

ispmanager User settings with Access to control panel set to Only IP addresses from the list and one address in the list

Panel access limited to one address. The same form holds Bind session to IP and two-factor login.

A login from any other address then gets "Access from this IP denied". I tested this on a separate user and left root alone, which is how I'd try it on a live server too. If root ever locks itself out this way, the setting can be reset from SSH, because this command, run as root, changes root's own panel settings:

/usr/local/mgr5/sbin/mgrctl -m ispmgr usrparam sok=ok atype=atany

The same form has Bind session to IP, which ends a session if its address changes. That suits a fixed office connection more than a phone that hops between networks.

Turn on two-factor authentication

Set the server's host name under System settings first. The authenticator app labels the entry with it, as host.name(user), and a generic name is hard to pick out later.

  1. In User settings, click Set up two-factor authentication.
  2. Scan the QR code with an authenticator app, and save the key with Download key somewhere safe.
  3. Type the code the app shows into Temporary password and click Activate.

ispmanager two-factor setup panel with a blurred QR code and key, the account name and the Temporary password field

The setup panel. The key changes every time the form opens; the QR code and key are blurred here.

Activating ended the session, and the next login asked for a code under the title "Authorization". Too many wrong codes block the account for a while.

Keep the downloaded key. Switching two-factor off asks for a current code, and I found no way in the panel for an administrator to switch it off for a user who has lost their phone. Root can still get into that user's panel with a one-time login key made over SSH, so two-factor protects the login page, not the server from its own root.

Get ispmanager on a server of your own

Pick a plan by how many websites you host. The panel comes installed and licensed, ready for your first login.
Billing Cycle

Lite.VPS

72.72 kr packages.save  14 %
62.31 kr Monthly

Zyskaj 20% zniżki na licencję ispmanager

Najlepszy wybór do użytku osobistego lub małych projektów.

  • Do 10 stron
  • 50 GB NVMe przestrzeń dyskowa
  • 2 GB pamięć RAM
  • 2 vCPU AMD EPYC
  • ✔Nielimitowana sieć 1 Gbps
  • ✔ IPv4 & IPv6 w cenie Obsługa IPv6 jest obecnie niedostępna we France, Finland lub w the Netherlands.
  • ✔Automatyczna kopia zapasowa w cenie
  • ✔PHP, Python, Node.js obsługiwane
  • Licencja ispmanager jest dodawana przy kasie

Host.VPS

239.16 kr packages.save  22 %
187.15 kr Monthly

Zyskaj 20% zniżki na licencję ispmanager

Stworzony dla agencji, resellerów i środowisk hostingowych o dużej skali.

  • Bez limitu stron
  • 200 GB NVMe przestrzeń dyskowa
  • 8 GB pamięć RAM
  • 4 vCPU AMD EPYC
  • ✔Nielimitowana sieć 1 Gbps
  • ✔ IPv4 & IPv6 w cenie Obsługa IPv6 jest obecnie niedostępna we France, Finland lub w the Netherlands.
  • ✔Automatyczna kopia zapasowa w cenie
  • ✔PHP, Python, Node.js obsługiwane
  • Licencja ispmanager jest dodawana przy kasie

Add firewall rules in ispmanager

Open Firewall and click Create rule. The "Add a new rule" form asks for:

  • Action: Allow or Deny
  • Protocol: Any, TCP or UDP. The Port field only appears once you pick TCP or UDP
  • IP address: one address or a network
  • Comment: say what the rule is for, since the list shows it

ispmanager Add a new rule form allowing TCP port 2222 from one address, with a comment

A rule that opens one port to one address.

I added a rule allowing TCP 2222 from one address. It was in the list at once and in iptables, in the panel's own ispmgr_allow_ip chain. Deleting it asks for confirmation and shows the exact iptables rule it will remove, with a warning that rules depending on it go too.

Two things to know about the list. It shows only rules made in ispmanager, so rules added by hand or by other software don't appear there. And Country blocking needs a geolocation database first, Ip2Location or MaxMind, chosen in its settings. I opened it and didn't block anything.

Check the fail2ban jails

fail2ban comes with the panel. See what it's watching:

fail2ban-client status

Mine had two jails running, sshd and exim-isp, and the sshd one had already banned over a thousand addresses, which says a lot about how busy port 22 is on any public server. More jails ship with it but were off, for ProFTPD, Dovecot, nginx, Apache and MariaDB among them. Turn on the ones for services you expose.

No jail watches the panel's own login on port 1500, so the address list and two-factor login above are what guard it.

Encrypt FTP with FTPS

On Debian 12, ProFTPD's TLS support is a separate package. Install it and load the module:

apt-get install -y proftpd-mod-crypto
sed -i 's/^#\s*LoadModule mod_tls.c/LoadModule mod_tls.c/' /etc/proftpd/modules.conf
proftpd -t && systemctl restart proftpd

Then give FTP a trusted certificate in the panel, through its SSL certificate setting for FTP ("SSL certificate for FTP" in ispmanager's documentation). I chose "Select from the list of available options", then a site and its Let's Encrypt certificate. The panel copied that certificate and its chain into ProFTPD's configuration and reloaded it.

I needed both steps. The panel setting alone left FTPS refused because the module wasn't loaded, and the package alone would have served a certificate no client trusts. With both in place, an FTP client connecting by the site's domain name logged in over TLS 1.2 on port 21 with no warning. Connecting by the IP address gives a name mismatch, because the certificate names the domain.

The stock tls.conf still allows TLS 1.0 and 1.1 in its TLSProtocol line. I'd cut it down to TLSv1.2 and newer, a change I haven't tested yet. The cron and FTP guide covers the FTP users themselves.

Questions?

What happens to ispmanager two-factor login if I change phones?

Move the code to the new phone before the old one goes, either with your authenticator app's own transfer or by adding the key you downloaded during setup. ispmanager asks for a current code to switch two-factor off, so without the old phone or the key you can't turn it off yourself. On a server you run, root can still enter your panel with a one-time login key over SSH.

About the author

Madison Blake

Maddie says she came to technical writing through customer support, after several years supporting developer-facing products. Developer education followed: workshops, onboarding material, case studies, live training sessions. She has worked independently since 2022 and mostly writes hands-on tutorials.

The support years still show up in how she approaches a procedure. She tests failure paths, permissions problems and clean-up steps because the official installation procedure is often only half the story. Maddie grew up in Colorado and now works while travelling, usually staying somewhere for several weeks at a time. She has played games for most of her life, especially RPGs and strategy games. She also goes to live music when she can and cooks "with more enthusiasm than consistency".

Run your sites on an ispmanager VPS

The panel comes installed and licensed, with full root access when you need it. Support is available 24/7.