New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Running a webserver on IPv6 only?
So I am trying to get a webserver running on a NAT VPS trying to use IPv6 only!
I assume what I would need to do is create an AAAA Record to the IPv6 adress in my DNS manager and somehow make the webserver listen to IPv6 (via LAMPs sites-available?!). Something like "listen [::]:80" perhaps? I guess I would also need to reroute requests to 80 to my NAT port range as my port range (obviously) does not include the standard web port.
I'm a bit at a loss here so would be great if someone can point me into the right direction :- )
Comments
What web server are you going to use?
LAMP stack
Like
Listen [Your IPv6 address]:80
https://httpd.apache.org/docs/2.4/bind.html
It is pretty much exactly the same, but IPv6 addresses must be enclosed in brackets.
What about the issue that I do not have port 80 available on my NAT vps by default?
Common things forgotten to config:
Is the IPv6 setup correctly in the vnic?
Is the firewall config correctly?
On the shared IPv4 you won't have port 80, on the IPv6 you should have port 80...
I will try this then :- )
You can using the 80 port of your IPv6 address, directly. The NAT rules just be set for the IPv4 address.
Thanks for the help everyone Much appreciated!
Use cloudflare's 6-to-4 proxy to make your site accessible from ipv4-only connections after setting all this up.
if you only have IPv6 on port 80, you could try cloudflare to get both IPv4/IPv6 to your IPv6 port 80.
Is it the "IPv6 Compatibility" option in CF I need to enable?
NVM got it to work :P Was enabled by default^^
You should set your AAAA IPv6 record for this to work and you let IPv6 compatibility On.
Yep got it to work.. Thanks so much! This will be interesting for some of my projects to come :P
This is a good way to run a service over an IPv6 network only.
Yes indeed.