Shall I use IPv4 or IPv6 for my VPS
My VPS comes with a dedicated IPv4 and IPv6/64 subnet. Is it wise to enable IPv6 or just use IPv4 in the traditional way. I would like to know what are implications of both ways in terms of security and performance.
Sort by:
Best
Open comment sort options
Comments Section
In most cases, there is no "IPv4 OR IPv6". You could use both just fine. Every server I host has a dedicated IPv4 and IPv6 /64. On the server interface, both are assigned, therefore the server is reachable via IPv4 and IPv6.
For security you have to keep in mind that you then have two IP address spaces to keep in mind when allowing or blocking ports. I use ufw on my servers which applies rules for IPv4 and IPv6 both at the same time. The only thing to keep in mind is to allow services to bind both to IPv4 and IPv6.
So far everything runs smoothly, no hacks or anything.
Both IPv4 and IPv6 have their advantages, and using both can be beneficial. IPv4 is widely supported and compatible with most devices and services, making it a safe choice. However, IPv6 offers more IP addresses, better security features like IPsec, and more efficient routing. Enabling IPv6 alongside IPv4 on your VPS is generally a good practice, ensuring future-proofing and improved performance. A provider like Cloudzy, which offers both IPv4 and IPv6, allows you to take advantage of these benefits seamlessly.
I think IPv4 is a bit more expensive and picking IPv6 can cut costs a bit (with most providers). If you are a person that likes to memorize their IP, IPv4 may be better for you because it is shorter. Other than that I don't think there's much of a difference.
Comment removed by moderator
That just means you need to do v4, not that you shouldn't do v6. You should be doing v6 at this point.
The security implications are basically the same as v4. v6 in general basically works the same as v4, just with longer addresses.
Comment deleted by user