this post was submitted on 23 Aug 2023
5 points (100.0% liked)

IPv6

316 readers
4 users here now

IPv6 Discussions

founded 1 year ago
MODERATORS
 

Wonder if it's possible to have a internal ipv4 local address range that is natted to ipv6 public address on your router...

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

You can get an IPv6/IPv4 tunnel, but you can't NAT a v4 subnet to a v6 address. They're different stacks and wholly incompatible with each other

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

It can be done, it's called NAT-PT.

NAT—PT is an IPv6-to-IPv4 translation mechanism, as defined in RFC 2765 and RFC 2766, that allows IPv6-only devices to communicate with IPv4-only devices and vice versa.

https://content.cisco.com/chapter.sjs?uri=/searchable/chapter/content/en/us/td/docs/ios-xml/ios/ipaddr_nat/configuration/15-mt/nat-15-mt-book/ip6-natpt.html.xml

https://ine.com/blog/2008-04-18-understanding-ipv6-nat-pt

But you most likely don't want it because you will lose information on the source IP address of the traffic. There is simply no way to cram a 128 bit source IP into a 32-bit field. So it will be hard to track down and report abuse.