Topics Map > Active Directory

UWSADS Campus IPsec and Trust

The purpose of this document is to provide a high level step-by-step guide to establishing an IPsec tunnel and one-way forest trust with


Complete the following steps so a trust can be established.

  • Campus administrators have been in contact with UWSADS administrators to schedule collaboration of resources.
  • Campus administrators have administrative rights to establish a trust in their environment.
    • At a minimum, the firewall must be enabled to allow all inbound and outbound traffic.
    • Connection Profiles will not function if profiles (Public/Private/Domain) are set to disabled.
  • Appropriate firewall rules (at this time, IPsec ports) have been allowed through both host-based and physical firewalls to:
    • -
    • -
  • The trust NetBOIS names are unique - a full list of existing trust NetBIOS names can be found on the UWSADS KB site: UW System Active Directory Services Knowledge Base

IPsec Configuration:

We recommend configuring a GPO for your IPsec rules as opposed to modifying each individual host. The steps below can be extrapolated for both a local security policy, and a group policy object.

Using PowerShell:

  1. Create the group policy object and assign it to the Domain Controller's OU
    -> $gpo = New-GPO -Name 'Domain Controllers - IPsec for UWSADS' -comment 'IPsec settings for UWSADS trust'
    -> $gpo | New_GPLink -Target "ou=domain controllers,dc=contoso,dc=com" -LinkEnabled Yes
  2. Create the connection security rule.
    -> $gponame = '\Domain Controllers - IPsec for UWSADS'
    -> $proposal = New-NetIPsecAuthProposal -Machine -PreSharedKey 'som3 10ng PreSharedKey'
    -> $ipsecauth = New-NetIPsecPhase1AuthSet -DisplayName 'UWSADS IPsec PSK' -Proposal $proposal -PolicyStor GPO:$gponame
    -> $uwsadsips = @('', '')
    -> $campusips = @('', '')
    -> NewNetIPsecRule -DisplayName 'UWSADS <-> CAMPUS' -RemoteAddress $uwsadsips -LocalAddress $campusips -Phase1AuthSet $ipsecauth.InstanceID -InboundSecurity Require -OutboundSecurity Require -PolicyStore GPO:$gponame

Using gpmc.msc:

Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Windows Firewall with Advanced Security

  1. Right click "Connection Security Rules" and select "New Rule..."
  2. Under "Rule Type", select "Server-to-server"
  3. Click "Next"
  4. Under "Endpoints":
    1. Endpoint 1 contains the IP addresses of your local campus domain controllers - please share these addresses/friendly names with UWSADS administrators.
    2. Endpoint 2 contains the IP addresses of the domain controllers. The current addresses/FQDNs are specified in the prerequisites of this document.
  5. Click "Next"
  6. Under "Requirements", select the third radio dial, "Require authentication for inbound and outbound connections".
  7. Click "Next"
  8. Under "Authentication Method", select "Advanced", and then click "Customize..."
    Note: We will be using a pre-shared key which will require coordination between campus administrators and UWSADS administrators.
  9. Click "Next"
  10. Select all profiles you wish to configure the rule for.
  11. Click "Next"
  12. Under "Name", enter a descriptive name of the connection profile, e.g. "CAMPUS <-> UWSADS"
  13. Click "Finish"
  14. Ensure the policy is in place on your domain controllers.
    1. wf.msc -> Connection Security Rules
    2. wf.msc -> Monitoring -> Connection Security Rules
At this point, there should be ICMP communication between the campus domain controllers and UWSADS.
  1. This is testable by using ping tests from host to host.
  2. Connection statistics are able to be monitored in wf.msg -> Monitoring -> Security Associations -> Main Mode
  3. An initial troubleshooting task if there is no connectivity would be to restart the Windows Firewall service, or restart the host.

DNS Configuration

We will be configuring a conditional forwarder in both the local campus doamin and the UWSADS domain. This allows the resolution of DNS entries, which may not be public to the internet.

Using PowerShell:

-> Add-DnsServerConditionalForwarderZone -Name "" -ReplicationScope "Forest" -MasterServers,

Using the DNS Management console:
  1. Open the DNS management console and connect to an authoritative DNS server.
  2. Right click "Conditional Forwarders"
  3. Select "New Conditional Forwarder"
  4. The "DNS Domain" is "".
  5. "IP Addresses" are the UWSADS IP addresses specified in the prerequisites of this document.
  6. Select the option to "Store this conditional forwarder and replicate to all DNS servers in this forest"
  7. Click "Ok"
  8. Test DNS resolution of the FQDNs of the UWSADS domain controllers by using "nslookup".

Establish a one-way trust:

  1. With appropriate administrative credentials, open "Active Directory Domains and Trusts"
  2. Right click on the domain name and select "Properties"
  3. Click "New Trust..."
  4. Click "Next"
  5. Enter "
  6. Select "Forest Trust".
  7. Select "One-way incoming" (or outgoing if doing this from the UWSADS domain)
    Note: If working with a UWSADS administrator, there is the potential to establish the trust on both sides from either a campus domain controller, or UWSADS domain controller.
  8. Click "Next"
  9. Select "Forest-wide authentication".

KeywordsUWSADS SADS IPsec Trust System Active Directory Services AD   Doc ID72341
OwnerMST SupportGroupIdentity and Access Management
Created2017-04-05 12:22:38Updated2020-10-27 11:18:30
SitesIdentity and Access Management
Feedback  0   0