Hello @theskyisthelimit99,
Thanks for reaching out to Microsoft Q&A.
I understand that you're experiencing issues with Kerberos authentication through Azure Bastion while accessing your Windows Server 2022 domain controller. When using the full UPN format, you get an "unstable connection" error, whereas using the short domain format with NTLM works fine.
- Since you're working with Kerberos, make sure that the Bastion service and the domain controllers can communicate without issues. Also, verify that there are no network problems or firewall settings blocking Kerberos traffic.
- Kerberos usually operates over UDP, but in some cases, changing to TCP may help resolve problems. You could try configuring Kerberos to use TCP instead of UDP by updating the appropriate settings.
- Please check that Kerberos is set up properly so users can log in using UPNs. Make sure the domain controller can resolve the full UPN address and that the service principal names (SPNs) for the domain are configured correctly. If there are any DNS issues, it might prevent the Kerberos authentication from succeeding.
- If a user belongs to many groups, the ticket could become too large. You might consider increasing the
MaxTokenSizesetting in the domain controller's registry. - Check the event logs on both the domain controller and the client. Error codes can help identify the cause of the issue. For example, the unknown username or bad password status (0xc000006d) suggests that the Kerberos authentication request is failing, which could be due to replication problems or incorrectly configured security policies.
Reference Document:
https://quic.hkg1.meaqua.org/en-us/azure/bastion/kerberos-authentication-portal
In addition to the Azure Policy setup, the OP also resolved the issue by configuring the NSG on the outgoing Bastion host. Specifically, they opened the standard set of Kerberos ports, which enabled seamless connectivity. The virtual network was correctly selected for the interfaces, and everything worked without further issues.”
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the Answer" if the information helped you. This will help us and others in the community as well.