// This is the primary configuration file for the BIND DNS server named.
options {
directory "/tmp";
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on port 9453 { 127.0.0.1; 10.7.2.254; 10.7.3.254; };
};
Starting Nmap 7.93 ( https://nmap.org ) at 2025-03-18 11:20 UTC
Nmap scan report for <ipv6 prefix>-1--1.fixed6.kpn.net (<ipv6 prefix>:1::1)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp closed domain
54/udp open|filtered xns-ch
9453/udp closed unknown
Nmap scan report for <ipv6 prefix>--1.fixed6.kpn.net (<ipv6 prefix>::1)
Host is up (0.022s latency).
PORT STATE SERVICE
53/udp open|filtered domain
54/udp open|filtered xns-ch
9453/udp open|filtered unknown
Nmap scan report for <ipv6 prefix>-1--2.fixed6.kpn.net (<ipv6 prefix>:1::2)
Host is up (0.022s latency).
PORT STATE SERVICE
53/udp open|filtered domain
54/udp filtered xns-ch
9453/udp open|filtered unknown
Nmap scan report for <ipv6 prefix>--31.fixed6.kpn.net (<ipv6 prefix>::31)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp filtered domain
54/udp filtered xns-ch
9453/udp filtered unknown
Nmap scan report for <ipv6 prefix>--32.fixed6.kpn.net (<ipv6 prefix>::32)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp open|filtered domain
54/udp filtered xns-ch
9453/udp filtered unknown
Nmap scan report for <ipv6 prefix>--40.fixed6.kpn.net (<ipv6 prefix>::40)
Host is up (0.022s latency).
PORT STATE SERVICE
53/udp filtered domain
54/udp open|filtered xns-ch
9453/udp open|filtered unknown
Nmap scan report for <ipv6 prefix>--41.fixed6.kpn.net (<ipv6 prefix>::41)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp filtered domain
54/udp filtered xns-ch
9453/udp filtered unknown
Nmap scan report for [my internet host] (<ipv6 prefix>:2::42:42)
Host is up (0.021s latency).
Other addresses for [my internet host] (not scanned): 86.92.61.120
rDNS record for <ipv6 prefix>:2::42:42: <ipv6 prefix>-2--42-42.fixed6.kpn.net
PORT STATE SERVICE
53/udp open|filtered domain
54/udp closed xns-ch
9453/udp open|filtered unknown
Ideally I would ony want the following responses from nmap from WAN to LAN:
Starting Nmap 7.93 ( https://nmap.org ) at 2025-03-18 11:20 UTC
Nmap scan report for <ipv6 prefix>-1--1.fixed6.kpn.net (<ipv6 prefix>:1::1)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp closed domain
54/udp closed xns-ch
9453/udp closed unknown
(...)
Nmap scan report for [my internet host] (<ipv6 prefix>:2::42:42)
Host is up (0.021s latency).
Other addresses for [my internet host] (not scanned): 86.92.61.120
rDNS record for <ipv6 prefix>:2::42:42: <ipv6 prefix>-2--42-42.fixed6.kpn.net
PORT STATE SERVICE
53/udp closed domain
54/udp closed xns-ch
9453/udp closed unknown
2::42:42 is the external ipv6 address.
The DNS services only bind to the internal interfaces.
This works great with ipv4, but somehow, the ipv6 addresses keep getting exposed and although they're possibly filtered, I just don't want them to be able to be reached at all except if I do an explicit port forward.
So the question comes down to: How do I get openwrt only exposing the WAN ipv6 address on the WAN interface and not all the other ipv6 addresses?
weird, have you tried setting 'nvkh' fowarding to reject ?
if the openvpn connection is strictly ipv4 perhaps forcing ipv6 off for it at the device level would be a good move, though you'd probably have to create a 'tun0' in devices for that, i'm not sure how finicky openvpn is about creating the device itself, or maybe there's an option to disable ipv6 in openvpn
root@monitor:~# nmap -6 -v -sU [ipv6 prefix]:1::1 [ipv6 prefix]::1 my.home.server [ipv6 prefix]:1::2 [ipv6 prefix]::31 [ipv6 prefix]::32 [ipv6 prefix]::40 [ipv6 prefix]::41 [ipv6 prefix]::45 -p 53,54,9453
Starting Nmap 7.93 ( https://nmap.org ) at 2025-03-18 15:50 UTC
Initiating Ping Scan at 15:50
Scanning 9 hosts [3 ports/host]
Completed Ping Scan at 15:50, 0.06s elapsed (9 total hosts)
Initiating Parallel DNS resolution of 9 hosts. at 15:50
Completed Parallel DNS resolution of 9 hosts. at 15:50, 0.00s elapsed
Initiating UDP Scan at 15:50
Scanning 9 hosts [3 ports/host]
Completed UDP Scan at 15:50, 2.35s elapsed (27 total ports)
Nmap scan report for [ipv6 prefix]-1--1.fixed6.kpn.net ([ipv6 prefix]:1::1)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp open|filtered domain
54/udp open|filtered xns-ch
9453/udp closed unknown
Nmap scan report for [ipv6 prefix]--1.fixed6.kpn.net ([ipv6 prefix]::1)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp closed domain
54/udp open|filtered xns-ch
9453/udp open|filtered unknown
Nmap scan report for my.home.server ([ipv6 prefix]:2::42:42)
Host is up (0.021s latency).
Other addresses for my.home.server (not scanned): 86.92.61.120
rDNS record for [ipv6 prefix]:2::42:42: [ipv6 prefix]-2--42-42.fixed6.kpn.net
PORT STATE SERVICE
53/udp closed domain
54/udp closed xns-ch
9453/udp closed unknown
Nmap scan report for [ipv6 prefix]-1--2.fixed6.kpn.net ([ipv6 prefix]:1::2)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp open|filtered domain
54/udp open|filtered xns-ch
9453/udp open|filtered unknown
Nmap scan report for [ipv6 prefix]--31.fixed6.kpn.net ([ipv6 prefix]::31)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp filtered domain
54/udp filtered xns-ch
9453/udp filtered unknown
Nmap scan report for [ipv6 prefix]--32.fixed6.kpn.net ([ipv6 prefix]::32)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp open|filtered domain
54/udp open|filtered xns-ch
9453/udp filtered unknown
Nmap scan report for [ipv6 prefix]--40.fixed6.kpn.net ([ipv6 prefix]::40)
Host is up (0.022s latency).
PORT STATE SERVICE
53/udp open|filtered domain
54/udp open|filtered xns-ch
9453/udp filtered unknown
Nmap scan report for [ipv6 prefix]--41.fixed6.kpn.net ([ipv6 prefix]::41)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp filtered domain
54/udp filtered xns-ch
9453/udp filtered unknown
Nmap scan report for [ipv6 prefix]--45.fixed6.kpn.net ([ipv6 prefix]::45)
Host is up (0.021s latency).
PORT STATE SERVICE
53/udp open|filtered domain
54/udp open|filtered xns-ch
9453/udp filtered unknown
Read data files from: /usr/bin/../share/nmap
Nmap done: 9 IP addresses (9 hosts up) scanned in 2.48 seconds
Raw packets sent: 78 (4.488KB) | Rcvd: 32 (2.604KB)
Should I drop the incoming packages?
[ipv6 prefix]:1::1 and [ipv6 prefix]::1 are internal LAN addresses.
[ipv6 prefix]:2::42:42 is the external WAN address.