I have a server which responds differently to requests from the general internet as opposed to the intranet. For IPv4 I can simply check if the address begins with 192.168. This works for my needs. What is the equivalent for IPv6?
Asked
Active
Viewed 1.8k times
2 Answers
10
First of all "intranet" is not limited to 192.168. There are 3 private networks defined in RFC-1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
In IPv6, it is called a Unique local address: http://en.wikipedia.org/wiki/Unique_local_address and covered in RFC-4193 -- all addresses matching FC00::/7. Basically, you should be able to search for IPv6 addresses starting with fc or fd.
bmhkim
- 162
user996142
- 1,555
0
The “intranet” is your local subnet, ie. your servers address/64. IPv6 RFCs strongly discourage networks smaller than /64, so it’s unlikely you’ll encounter any.
While there are link-local addresses, they aren’t really relevant here, because you wouldn’t use them.
An additional ULA network might be an option, although it poses additional management overhead.
user219095
- 65,551