Back to Blog
RealPanel 22 (Free)

How to Disable IPv6 So IP Whitelist Always Works in Real Panel

nguyen
March 15, 2024
## Disable IPv6 for Reliable IP Whitelisting If your IP whitelist is not working consistently in RealPanel, IPv6 is likely the cause. Here's how to disable it permanently. ### Step 1: Disable IPv6 Immediately ```bash echo -e "net.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1\n" >> /etc/sysctl.conf && sysctl -p ``` This disables IPv6 immediately. ### Step 2: Disable Auto-Update (Prevents Config Reset) ```bash sudo systemctl stop apt-daily-upgrade.timer sudo systemctl disable apt-daily-upgrade.timer sudo systemctl daemon-reload ``` This prevents the daily apt upgrade from re-enabling IPv6. ### Why This Works RealPanel's IP whitelist checks IPv4 addresses. When clients connect over IPv6, the whitelist check fails. Disabling IPv6 forces all connections to use IPv4, making whitelisting work as expected.