Does the Hestia firewall manage IPv6 (ip6tables)?

Hi,

HestiaCP 1.10.8 on Ubuntu 24.04, nginx + PHP-FPM, server with IPv4 and IPv6.

I’ve restricted the panel port to a single IP from Server → Firewall, and it works fine on IPv4. However, I see that the panel also listens on IPv6, and the firewall rules don’t seem to create anything in ip6tables.

A few questions:

  1. Does the Hestia firewall only manage IPv4? Is IPv6 support planned?
  2. What’s the recommended way to restrict the panel port on IPv6? A custom ip6tables rule applied at boot, or making the panel listen on IPv4 only?
  3. If I change the panel’s nginx config to IPv4 only, will Hestia updates overwrite it?

I’d prefer not to disable IPv6 on the server.

Thanks!

Hi,

Yes.

Yes.

Create the file /usr/local/hestia/data/firewall/custom.sh with execution permissions and add there your rules.

Example:

#!/usr/bin/env bash

ipt6="/usr/sbin/ip6tables"

"$ipt6" -P INPUT DROP
"$ipt6" -A INPUT -s ::1 -j ACCEPT
"$ipt6" -A OUTPUT -d ::1 -j ACCEPT
"$ipt6" -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
"$ipt6" -A INPUT -p icmpv6 -j ACCEPT

sorry to be difficult. is it possible to restrict ‘all the sites’ EXCEPT the admin login panel?

(for ipv6). I like ipv6 for my putty sessions is all I know. Before I got rid of 1 layer of NAT, my putty would disconnect every 5-10 minutes. Now I just ssh into my url:port and it works perfectly.