Wanna get pwned using IPv6?

LOL Just use IPv4 as it's way safer, with IPv6 you are subject to exfiltration attacks surface, which can lead your VPS to be hacked in matter of seconds, you can find bunch of material on the matter on internet.
OTOH most of Retail Providers like AWS, Vultr, Heroku etc. all of them support IPv6 and allow you to choose if using both IPv4 & IPv6, just IPv4 or just IPv6. On Linux systems, you can disable IPv6 as follows:
Red Hat-based distributions
Here's how to disable IPv6 on Linux if you’re running a Red Hat-based system:
- Open the terminal window.
- Change to the root user.
- Type these commands:
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w net.ipv6.conf.eth0.disable_ipv6=1
- To re-enable IPv6, type these commands:
sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl -w net.ipv6.conf.default.disable_ipv6=0
sysctl -w net.ipv6.conf.eth0.disable_ipv6=0
sysctl -p
Debian-based distributions
Here's how to disable IPv6 on Linux if you’re running a Debian-based system:
- Open the terminal window.
- Type this command:
sudo nano /etc/sysctl.conf
- Add the following at the bottom of the file:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
- Save and close the file.
- Reboot your device.
- To re-enable IPv6, remove the above lines from
/etc/sysctl.conf
and reboot your device.
May I ask you which is the purpose for which you want to use IPv6? What's the reason behind it? It's strictly required or can you avoid the risk and just go with IPv4? I'm asking this questions to let you think twice before making mistakes that can lead to a disaster recovery.
Good luck!