How to disable IP version 6 on Hiddify - Xen-neX/Hiddify-Manager GitHub Wiki
IP version 6 is a new IP structure that was introduced after IP version 4. This structure is 64 bits and contains 6 sections of 4 hex characters. Hex is based on 16 numbers.
Its structure is as follows:
1ec2:5b7a:9fab:cdef:cfab:5a7c
Because IP version 6 has a wide range, it is much harder to filter than IP version 4. But sometimes, despite the advantages of IP version 6, it is necessary to turn off this version of IP. For example, the Google search error (403 error) is solved by turning off IP version 6. There are two ways to do this.
Just enter the general settings in the panel settings and activate the IP version 4 only
option.
-
If for any reason you need to turn off IP version 6 via SSH, connect to your server via SSH, and exit the Hiddify menu with
ctrl+c
. -
Open the system settings file with nano text editor.
sudo nano /etc/sysctl.conf
- At the end of the opened file, put the following three lines.
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
- Save the file with
ctrl+s
and pressctrl+x
to exit. - Finally, reset the settings file with the command below.
sudo sysctl -p
- By doing this, IP version 6 will be turned off on your server and the server will only work with IP version 4.