OPNsense Forum

English Forums => General Discussion => Topic started by: juantxorena on October 10, 2021, 05:20:50 PM

Title: Internal IPv6 network with DNS setup help
Post by: juantxorena on October 10, 2021, 05:20:50 PM
I have a local network with a bunch of hosts composed of linux, windows and android clients. I'm trying to have ipv6 working locally with DNS resolution. i.e., I want to be able to e.g. go to local-computer.local-domain.com, and have the DNS server resolve its IPv6 address, and access using it. Because of android, I am forced to use, or at least support, SLAAC.

My current setup:


What works:

What doesn't work:
What I have tried:

What I'm trying:

Other possibilities:

I'm a bit surprised that I haven't found anything on the internet about this, it seems like a quite basic thing to do. Here are some links I've read and haven't helped. I have read way more things, but I cannot find them right now:
https://www.reddit.com/r/OPNsenseFirewall/comments/gnsa1t/multiple_ipv6_prefixes_per_interface/
https://forum.opnsense.org/index.php?topic=15529.0
Title: Re: Internal IPv6 network with DNS setup help
Post by: bimbar on October 10, 2021, 08:00:09 PM
You can use IPv4 internally, but that is pretty much the same as using ULA internally. The ULA you would configure the same as the internal IPv4, only as a virtual IP on the internal interface.
Not sure if you are aware but to configure DHCPv6 and radvd parameters you need to check "Manual configuration" in the interface.
Title: Re: Internal IPv6 network with DNS setup help
Post by: juantxorena on October 10, 2021, 08:37:42 PM
Quote from: bimbar on October 10, 2021, 08:00:09 PM
You can use IPv4 internally, but that is pretty much the same as using ULA internally. The ULA you would configure the same as the internal IPv4, only as a virtual IP on the internal interface.

Well, it's not the same. As I explained, I can use ULAs with virtual IPs, but I cannot configure them with DHCPv6 because they aren't the "main"  address and it shows an "valid range" error. And it doesn't work with slaac anyway.


Quote from: bimbar on October 10, 2021, 08:00:09 PM
Not sure if you are aware but to configure DHCPv6 and radvd parameters you need to check "Manual configuration" in the interface.

I am aware of that, I couldn't have tried to use DHCPv6 if I weren't .
Title: Re: Internal IPv6 network with DNS setup help
Post by: bimbar on October 10, 2021, 10:02:48 PM
Quote from: juantxorena on October 10, 2021, 08:37:42 PM
Quote from: bimbar on October 10, 2021, 08:00:09 PM
You can use IPv4 internally, but that is pretty much the same as using ULA internally. The ULA you would configure the same as the internal IPv4, only as a virtual IP on the internal interface.

Well, it's not the same. As I explained, I can use ULAs with virtual IPs, but I cannot configure them with DHCPv6 because they aren't the "main"  address and it shows an "valid range" error. And it doesn't work with slaac anyway.


Quote from: bimbar on October 10, 2021, 08:00:09 PM
Not sure if you are aware but to configure DHCPv6 and radvd parameters you need to check "Manual configuration" in the interface.

I am aware of that, I couldn't have tried to use DHCPv6 if I weren't .

I couldn't make sense out of which address range the DHCPv6 server chooses to display if the interface has multiple prefixes.
Title: Internal IPv6 network with DNS setup help
Post by: Greelan on October 11, 2021, 08:29:43 AM
I use ULAs for all local IPv6 communications. OPNsense advertises ULA prefixes and capable local devices get ULAs via SLAAC (as well as GUAs via SLAAC)

I have a separate box running pihole and unbound for DNS. Pihole listens on an IPv4 local (RFC1918) address and an IPv6 ULA. OPNsense gives out those addresses as DNS servers to all local clients via DHCP and RA/RDNSS (and in fact I have OPNsense force the use of those addresses). The pihole has local DNS entries configured for various local hosts, configured to return their IPv4 local address and IPv6 ULA