ZTNA - Active Directory services
Hi,
Has someone been able to configure and use ZTNA for the AD services ?
The scenario i'm trying to make use of is a remote user that needs to join his computer which for whatever reason it got removed/deleted from it.
I've created 2 ZTNA servers, 1 for TCP traffic and 1 for UDP traffic ( as per below ) , the domain name is resolvable locally in the internal 10.235.0.X IP and in the logs i can see enable_udp:1 flag for UDP services and also all the ZTNA destinations in FortiClient.
The proxy-policy uses the security tag of all_registered_clients which is assigned to the computer in question and has destination all and ZTNA servers the ones below.
relevant FGT config:
config firewall vip edit "LAB-AD_UDP" set type access-proxy set server-type https set extip PUB-IP set h3-support enable set extintf "wan1" set extport 11101 set ssl-certificate "wild-demo.lab" next edit "LAB-AD_TCP" set type access-proxy set server-type https set extip PUB-IP set extintf "wan1" set extport 11102 set ssl-certificate "wild-demo.lab" next end config firewall access-proxy edit "LAB-AD_UDP" set vip "LAB-AD_UDP" config api-gateway edit 1 set url-map "/tcp" set service tcp-forwarding config realservers edit 1 set address "demo.lab" set mappedport 53 88 123 137 138 389 636 next end next end next edit "LAB-AD_TCP" set vip "LAB-AD_TCP" config api-gateway edit 1 set url-map "/tcp" set service tcp-forwarding config realservers edit 1 set address "demo.lab" set mappedport 53 88 135 389 445 636 3268 3269 1024-65535 next end next end end end
Relevant FCT logs for part of the UDP services:
[2025-09-30 12:17:48.1501869] [fortitcs] *************************************** [2025-09-30 12:17:48.1501915] [fortitcs] name: demo.lab:53,88,123,137,138,389,636 [2025-09-30 12:17:48.1501961] [fortitcs] type: tcp-fwd [2025-09-30 12:17:48.1502001] [fortitcs] mode: transparent [2025-09-30 12:17:48.1502047] [fortitcs] destination: demo.lab:53,88,123,137,138,389,636 [2025-09-30 12:17:48.1502087] [fortitcs] gateway: PUB-IP:11101 [2025-09-30 12:17:48.1502133] [fortitcs] enable_udp: 1 [2025-09-30 12:17:48.1502173] [fortitcs] latencies: 8760h0m0s [2025-09-30 12:17:48.1502209] [fortitcs] encryption: 0 [2025-09-30 12:17:48.1502249] [fortitcs] enble_udp: 1 [2025-09-30 12:17:48.1502288] [fortitcs] FQDN: demo.lab [2025-09-30 12:17:48.1502321] [fortitcs] FQDN_flag: 0 [2025-09-30 12:17:48.1502358] [fortitcs] IPStart: 10.235.0.1 [2025-09-30 12:17:48.1502394] [fortitcs] IPEnd: 10.235.0.1 [2025-09-30 12:17:48.1502433] [fortitcs] SubnetMask: 255.255.255.255 [2025-09-30 12:17:48.1502476] [fortitcs] PortStart: 53 [2025-09-30 12:17:48.1502509] [fortitcs] PortEnd: 53
When I try to AD join the computer:
Note: This information is intended for a network administrator. If you are not your network's administrator, notify the administrator that you received this information, which has been recorded in the file C:\Windows\debug\dcdiag.txt. The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain "demo.lab": The error was: "DNS name does not exist." (error code 0x0000232B RCODE_NAME_ERROR) The query was for the SRV record for _ldap._tcp.dc._msdcs.demo.lab Common causes of this error include the following: - The DNS SRV records required to locate a AD DC for the domain are not registered in DNS. These records are registered with a DNS server automatically when a AD DC is added to a domain. They are updated by the AD DC at set intervals. This computer is configured to use DNS servers with the following IP addresses: 8.8.8.8 C:\Users\Administrator>ping demo.lab Pinging demo.lab [10.235.0.1] with 32 bytes of data: Reply from PUB-IP: Destination net unreachable.
