So I have been debugging an unexpected behaviour where WDE would create a DnsClientNrptRule when the identity only allowed to host a service.
I am currently working on trying to serve a Windows DC over a ziti network, and got into a very nasty issue where as soon as the identity enabled with the respective host config taken from here[1] it would break the DC DNS making it unable to make a query to a DC DNS while being on the DC.
Manually deleting DnsClientNrptRule which is automatically created by the WDE fixes the issue.
It goes without saying the the network is functional, and I cant telnet to ports 389 and so on.
Is this behaviour of creating DnsClientNrptRule expected if identity only has host.v1 config? Also seems related to [2].
[1] Conneting Remote Endpoints with a On-Prem AD - #6 by emoscardini
[2] Windows Edge Client - DNS not working - #4 by TheLumberjack
WDE: 2.4.0.0
Windows: Windows Server 2022
Steps to reproduce:
- Create and initialize a DC with a DNS server
- Run a WDE with identity able to host the necessary ports
- Open a powershell on that very same DC and execute:
Resolve-DnsName _ldap._tcp.dc._msdcs.mydomain.com -Type SRV
Expected behaviour:
After running a WDE with an identity as per[1] I expect for the above DNS query to be proxied on the host to the 'upstream' DNS server which would be Windows DNS Server in this case.
Actual behaviour:
I believe there is happenning a routing mess with the DNS query specifically. As DnsClientNrptRule exist at the moment of routing the request, I believe it just getting recursed.
Related logs:
Logs and debug data
ziti edge list service configs 1NaVms2ov3JhbNYZMLdOAp
โญโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฎ
โ ID โ NAME โ CONFIG TYPE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโค
โ 1aXbn9XkxZW7ps8UzzCerg โ windows-bayfut-dc.intercept.v1 โ intercept.v1 โ
โ VvU0ijDuYCBpCBX4YtP7K โ windows-bayfut-dc.host.v1 โ host.v1 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโฏ
intercept.v1
{
"addresses": [
"*.bayfut.net"
],
"portRanges": [
{
"high": 138,
"low": 138
},
{
"high": 53,
"low": 53
},
{
"high": 389,
"low": 389
},
{
"high": 445,
"low": 445
},
{
"high": 65535,
"low": 1024
},
{
"high": 88,
"low": 88
},
{
"high": 636,
"low": 636
},
{
"high": 123,
"low": 123
},
{
"high": 135,
"low": 135
}
],
"protocols": [
"udp",
"tcp"
]
}
host.v1
{
"allowedAddresses": [
"*.bayfut.net"
],
"allowedPortRanges": [
{
"high": 138,
"low": 138
},
{
"high": 53,
"low": 53
},
{
"high": 389,
"low": 389
},
{
"high": 445,
"low": 445
},
{
"high": 65535,
"low": 1024
},
{
"high": 88,
"low": 88
},
{
"high": 636,
"low": 636
},
{
"high": 123,
"low": 123
},
{
"high": 135,
"low": 135
}
],
"allowedProtocols": [
"udp",
"tcp"
],
"forwardAddress": true,
"forwardPort": true,
"forwardProtocol": true
}