Today in our newest take on “older technology is better”: why NAT rules!

You are viewing a single thread.
View all comments
43 points

You can still NAT IPv6

permalink
report
reply
69 points

I haven’t read anything this cursed in a while

permalink
report
parent
reply
26 points
*

Yes, but why would you want to? We have enough addresses for the foreseeable future.

permalink
report
parent
reply
26 points

So you don’t need to change your network if your isp changes.

permalink
report
parent
reply
8 points

You shouldn’t have to?? Maybe you might need to change the mask in your firewall settings if the ipv6 allocation block size changes but that should be it.

Everything else should just work as normal.

permalink
report
parent
reply
2 points

You should only assign static ipv6 to servers, in theory you could just define a host id and use a prefix too. But, most people at home really aren’t running enough servers to make that worthwhile. Everything else should just pick up new addresses fine using ND.

permalink
report
parent
reply
1 point
*

You can use ULAs (unique local addresses) or that purpose. Your devices can have a ULA IPv6 address that’s constant, and a public IPv6 that changes. Both can be assigned using SLAAC (no manual config required).

I do this because the /56 IPv6 range provided by my ISP is dynamic, and periodically changes.

permalink
report
parent
reply
0 points

The solution to that is to buy a net block. IPV6 address space is very affordable.

permalink
report
parent
reply
15 points
*

1:1 stateless NAT is useful for static IPs. Since all your addresses are otherwise global, if you need to switch providers or give up your /64, then you’ll need to re-address your static addresses. Instead, you can give your machines static private IPs, and just translate the prefix when going through NAT. It’s a lot less horrible than IPv4 NAT since there’s no connection tracking needed.

This is something I probably should have done setting up my home Kubernetes cluster. My current IPv6 prefix is from Hurricane Electric, and if my ISP ever gives me a real IPv6 prefix, I will have to delete the entire cluster and recreate it with the new prefix.

permalink
report
parent
reply
7 points

It should only be needed if your ISP is brain-dead and only gives you a /64 instead of what they should be doing and also giving you a /56 or /48 with prefix delegation (I.e it should be getting both a 64 for the wan interface, and a delegation for routing)

You router should be using that prefix and sticking just a /64 on the lan interface which it advertises appropriately (and you can route the others as you please)

Internal ipv6 should be using site-local ipv6, and if they have internet access they would have both addresses.

permalink
report
parent
reply
1 point

That’s what they thought for IPv4… and for 2-year digits… and for…

permalink
report
parent
reply
10 points

Only if you’re a masochist.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 9.4K

    Monthly active users

  • 860

    Posts

  • 33K

    Comments