Applicable to:
- Plesk Onyx for Linux
- Plesk for Linux
Question
How to enable IPv6 addresses on a Plesk server?
Answer
To enable IPv6 addresses support on Plesk Server
-
Log in to the server via SSH
-
Create a backup of the configuration file:
# cp -a /etc/sysctl.conf{,.bak}
-
Add the following lines into
/etc/sysctl.conf
:CONFIG_TEXT: net.ipv6.conf.all.disable_ipv6=0
net.ipv6.conf.default.disable_ipv6=0 -
Apply the settings from the
/etc/sysctl.conf
via the following command:# sysctl -p
OR
# sysctl -w net.ipv6.conf.default.disable_ipv6=0
# sysctl -w net.ipv6.conf.all.disable_ipv6=0 -
Add required IPv6 addresses in Plesk UI via Tools & Settings > IP Addresses .
- To enable IPv6 for Plesk UI itself create a configuration file
/etc/sw-cp-server/conf.d/ipv6_ports.inc
and fill it with below content:CONFIG_TEXT: listen [::]:8443 ipv6only=on ssl;
listen [::]:8880 ipv6only=on; - Restart Plesk service:
# service sw-cp-server restart
To disable IPv6 support follow the article How to disable IPv6 addresses on a Plesk server
Comments
2 comments
also you must to disable bind lookup for ipv6. please add this howto in the article.
Hello @Luis Zubeldia.
Disabling or enabling BIND lookups for IPv6 is a purely optional step and depends on the exact use case.
It is not related to enabling IPv6 functionality for the system.
In order to completely disable BIND lookups for IPv6, it is required to start BIND with "-4" option and enable "filter-aaaa-on-v4" in BIND configuration. It is not recommended by BIND developers though.
Locations for configuration files where options should be specified may vary depending on the operating system. Please refer to BIND manual and the documentation for the operating system in use.
Please sign in to leave a comment.