kerberos from linux to Windows with domain trust where DCs are firewalled from the linux server

Andy Doran 1 Reputation point
2021-04-26T10:41:04.92+00:00

I have the following configuration: Windows domains DOMAINA and DOMAINB. A 2 way trust exists and I have an account in DOMAINA which is configured to be an admin in DOMAINB. This all works.

I have a linux box that uses kerberos to access DOMAINB using the account created in DOMAINA. This works perfectly fine if I configure /etc/krb5.conf to have:

DOMAINA.LOCAL = {
         kdc = dc1.domaina.local
}
DOMAINB.LOCAL = {
         kdc = dc1.domainb.local
}

But this needs both DOMAINA and DOMAINB DCs to be accessable to the linux box. In this situation, only the DC for DOMAINA is visible to the linux box. There are servers in DOMAINB that are visible to the linux box, but the DC for DOMAINB is NOT visible to the linux box.

The DCs from both domains can see each other

Can I configure kerberos on the linux box to only require access to the domain that has the account I want to use, and not to have to contact the DC in the domain where the account will be used?

Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,902 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Daisy Zhou 32,421 Reputation points Microsoft External Staff
    2021-04-27T07:01:32.803+00:00

    Hello @Andy Doran ,

    Thank you for posting here.

    Based on the description "Can I configure kerberos on the linux box to only require access to the domain that has the account I want to use, and not to have to contact the DC in the domain where the account will be used?", wo do not understand it clearly.

    Here are general suggestions:

    1.Please make sure all DNS can resolve each other.

    2.Please make sure all ports that should be open are open.

    Hope the information above is helpful.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


  2. Gary Nebbett 6,201 Reputation points
    2021-04-27T07:11:53.107+00:00

    Hello @Andy Doran ,

    The Linux client needs access to Key Distribution Centres (KDCs) in both domains. Typically this means that TCP and UDP access to the Kerberos port (88) of KDCs in each domain should be allowed.

    There might be some possibility of using a Kerberos "proxy" of some sort (perhaps Kerberos over HTTPS), but that does not seem appropriate for your scenario.

    Gary


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.