HestiaCP update issues 1.10.10

These are the things I noticed gets broken on last couple of updates, not just to 1.10.10:

1. Security:

  • the update changes the firewall rule for the custom Hestia port. It replaces the previous IP address (for example, an IP address for WireGuard VPN) with 0.0.0.0. This change opens the port to public access.
  • after an update, the “Restrict phpMyAdmin to Hestia login” option stays set to Enabled. Public users can still get access to phpMyAdmin. I use a different “phpMyAdmin Alias”. When I disable the option and then enable it again, public access stops.

2. Other:

  • sometimes the update script shows “Error: ERROR: Restart of hestia failed.” because I disabled IPv6 on server. The script corrects this error automatically. It disables the applicable line in the configuration file and starts the Hestia service again. Maybe you can change the command sequence in the update script to prevent this error.

If you already have it changed to the right rule, show the output of these commands:

v-list-firewall json
iptables -S

That’s not a bug in Hestia core but a bug in the upgrade script 1.10.10.sh. This script recreated the pma-sso conf to fix a security bug but didn’t take care of users using pma restricted access. Disabling and enabling it again (as you did) recreates the right conf to restrict the access.

Right now I don’t have a machine to try to reproduce it.

Yes, I changed the rule alreday.

{
    "1": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "ICMP",
        "PORT": "0",
        "IP": "0.0.0.0/0",
        "COMMENT": "PING",
        "SUSPENDED": "no",
        "TIME": "18:04:40",
        "DATE": "2026-04-01"
    },
    "2": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "12341",
        "IP": "10.8.0.0/24",
        "COMMENT": "HESTIA",
        "SUSPENDED": "no",
        "TIME": "13:14:10",
        "DATE": "2026-11-25"
    },
    "3": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "143,993",
        "IP": "0.0.0.0/0",
        "COMMENT": "IMAP",
        "SUSPENDED": "no",
        "TIME": "07:40:16",
        "DATE": "2014-05-25"
    },
    "4": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "110,995",
        "IP": "0.0.0.0/0",
        "COMMENT": "POP3",
        "SUSPENDED": "no",
        "TIME": "07:40:16",
        "DATE": "2014-05-25"
    },
    "5": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "25,465,587",
        "IP": "0.0.0.0/0",
        "COMMENT": "SMTP",
        "SUSPENDED": "no",
        "TIME": "21:47:04",
        "DATE": "2018-11-07"
    },
    "9": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "80,443",
        "IP": "0.0.0.0/0",
        "COMMENT": "WEB",
        "SUSPENDED": "no",
        "TIME": "17:04:27",
        "DATE": "2014-09-24"
    },
    "10": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "12342",
        "IP": "10.8.0.0/24",
        "COMMENT": "SSH",
        "SUSPENDED": "no",
        "TIME": "17:36:43",
        "DATE": "2026-04-01"
    },
    "11": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:GlobalBlacklist",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "19:54:13",
        "DATE": "2026-03-14"
    },
    "12": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:cn",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "19:54:31",
        "DATE": "2026-03-14"
    },
    "13": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:id",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "19:54:41",
        "DATE": "2026-03-14"
    },
    "14": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:in",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "19:56:16",
        "DATE": "2026-03-14"
    },
    "15": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:ro",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "19:56:26",
        "DATE": "2026-03-14"
    },
    "16": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:ru",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "19:57:00",
        "DATE": "2026-03-14"
    },
    "17": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:tr",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "19:57:09",
        "DATE": "2026-03-14"
    },
    "18": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:ua",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "19:57:25",
        "DATE": "2026-03-14"
    },
    "19": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:tw",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "20:11:21",
        "DATE": "2026-03-14"
    },
    "20": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "UDP",
        "PORT": "12340",
        "IP": "0.0.0.0/0",
        "COMMENT": "WireGuard",
        "SUSPENDED": "no",
        "TIME": "17:22:56",
        "DATE": "2026-04-01"
    },
    "21": {
        "ACTION": "ACCEPT",
        "PROTOCOL": "TCP",
        "PORT": "3306",
        "IP": "10.100.0.5",
        "COMMENT": "DB_Replica",
        "SUSPENDED": "no",
        "TIME": "20:07:13",
        "DATE": "2026-05-13"
    },
    "22": {
        "ACTION": "DROP",
        "PROTOCOL": "TCP",
        "PORT": "0",
        "IP": "ipset:vn",
        "COMMENT": "",
        "SUSPENDED": "no",
        "TIME": "18:14:26",
        "DATE": "2026-05-18"
    }
}
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-N fail2ban-HESTIA
-N fail2ban-MAIL
-N fail2ban-RECIDIVE
-N fail2ban-SSH
-N fail2ban-WEB
-N hestia
-A INPUT -i lo -j ACCEPT
-A INPUT -s 10.100.0.4/32 -j ACCEPT
-A INPUT -s 10.200.0.7/32 -j ACCEPT
-A INPUT -s 10.8.0.1/32 -j ACCEPT
-A INPUT -s X.X.X.X/32 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m multiport --dports 1:65535 -j fail2ban-RECIDIVE
-A INPUT -p tcp -m tcp --dport 12342 -j fail2ban-SSH
-A INPUT -p tcp -m multiport --dports 25,465,587,110,995,143,993 -j fail2ban-MAIL
-A INPUT -p tcp -m tcp --dport 12341 -j fail2ban-HESTIA
-A INPUT -p tcp -m multiport --dports 80,443 -j fail2ban-WEB
-A INPUT -p tcp -m set --match-set vn src -j DROP
-A INPUT -s 10.100.0.5/32 -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p udp -m udp --dport 12340 -j ACCEPT
-A INPUT -p tcp -m set --match-set tw src -j DROP
-A INPUT -p tcp -m set --match-set ua src -j DROP
-A INPUT -p tcp -m set --match-set tr src -j DROP
-A INPUT -p tcp -m set --match-set ru src -j DROP
-A INPUT -p tcp -m set --match-set ro src -j DROP
-A INPUT -p tcp -m set --match-set in src -j DROP
-A INPUT -p tcp -m set --match-set id src -j DROP
-A INPUT -p tcp -m set --match-set cn src -j DROP
-A INPUT -p tcp -m set --match-set GlobalBlacklist src -j DROP
-A INPUT -s 10.8.0.0/24 -p tcp -m tcp --dport 12342 -j ACCEPT
-A INPUT -p tcp -m multiport --dports 80,443 -j ACCEPT
-A INPUT -p tcp -m multiport --dports 25,465,587 -j ACCEPT
-A INPUT -p tcp -m multiport --dports 110,995 -j ACCEPT
-A INPUT -p tcp -m multiport --dports 143,993 -j ACCEPT
-A INPUT -s 10.8.0.0/24 -p tcp -m tcp --dport 12341 -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A fail2ban-HESTIA -j RETURN
-A fail2ban-MAIL -j RETURN
-A fail2ban-RECIDIVE -j RETURN
-A fail2ban-SSH -j RETURN
-A fail2ban-WEB -j RETURN

Edit: thank you for pointing in right direction, error is in script /usr/local/hestia/bin/v-change-sys-port, line 78:

sed -i "/COMMENT='HESTIA'/c\RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='$PORT' IP='0.0.0.0/0' COMMENT='HESTIA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'" "$HESTIA/data/firewall/rules.conf"

As a workaround, changing the rules comment from HESTIA to HESTIA_VPN prevents the script from overwriting it. For a permanent fix, line 78 could update only the PORT value instead of replacing the whole line (e.g., sed -i "/COMMENT='HESTIA'/s/PORT='[^']*'/PORT='$PORT'/" "$HESTIA/data/firewall/rules.conf").

So, to understand the issue, Hestia removes this rule:

-A INPUT -s 10.8.0.0/24 -p tcp -m tcp --dport 12341 -j ACCEPT

and adds this:

-A INPUT -p tcp -m tcp --dport 12341 -j ACCEPT

or keeps your rule and adds the rule that doesn’t filter by source IP?

Show also the output of this command:

cat /etc/iptables.rules

I have edited previous answer at the same time you answered, please see if that is correct conclusion.

Hestia removes and addst the rule with incorrect/default IP (0.0.0.0)

Ok, thank you. I’ll take a look to see what’s the best approach.