Disable 6to4, Teredo, ISATAP, and IP-HTTPS in Windows

Microsoft Windows has included IPv6 transition technologies since Windows XP. These protocols were designed to provide IPv6 connectivity across IPv4-only networks by encapsulating IPv6 traffic in IPv4, UDP, or HTTPS. They served a purpose during the early days of IPv6 adoption, but today they are legacy technologies that offer little value and introduce operational and security risks. Microsoft has disabled most of them by default in Windows for years now, but that doesn’t mean administrators should rely on default settings. Explicitly disabling these protocols ensures consistent, predictable behavior across all endpoints, regardless of how they were deployed or what configuration changes may have been made along the way.

IPv6 Transition Technologies

Windows supports four IPv6 transition technologies, each designed for a different scenario, including the following.

  • 6to4: Automatically tunnels IPv6 traffic over the public IPv4 internet using 6to4 relay routers. Hosts with a public IPv4 address derive a 2002::/16 IPv6 address from their IPv4 address [RFC 3056].
  • Teredo: Tunnels IPv6 traffic in UDP (port 3544) to traverse IPv4 NAT devices. Teredo addresses use the 2001::/32 prefix [RFC 4380].
  • ISATAP: Intra-Site Automatic Tunnel Addressing Protocol (ISATAP) tunnels IPv6 traffic over an IPv4 intranet. Clients locate the ISATAP router by resolving the name “isatap” in DNS. ISATAP does not use a dedicated prefix. Instead, ISATAP addresses combine any IPv6 prefix with an interface identifier of ::0:5efe: followed by the host’s IPv4 address [RFC 5214].
  • IP-HTTPS: Tunnels IPv6 traffic in HTTPS (TCP port 443). IP-HTTPS was developed by Microsoft for DirectAccess and is defined in a Microsoft protocol specification rather than an RFC [MS-IPHTTPS]. It has no reserved prefix. Clients receive their IPv6 prefix from the DirectAccess server. IP-HTTPS is used only when a server URL has been configured, typically by DirectAccess Group Policy.

Disabled by Default

Microsoft began disabling IPv6 transition technologies by default early in the Windows 10 lifecycle. According to Microsoft’s deprecated features documentation, 6to4 has been disabled by default since Windows 10 1607 (Anniversary Update), ISATAP has been disabled by default since Windows 10 1703 (Creators Update), and Teredo has been disabled by default since Windows 10 1803. Microsoft formally deprecated these technologies in Windows 10 1803 and recommends using native IPv6 instead. All supported versions of Windows 10 and Windows 11 inherit these defaults. IP-HTTPS isn’t included in Microsoft’s deprecation notice. However, the IP-HTTPS client interface is dormant by default and becomes active only when a server URL is configured, which happens almost exclusively in DirectAccess deployments.

Why Disable Them Proactively

If these technologies are already disabled by default, it is fair to ask why administrators should bother disabling them explicitly. The answer is that “default” is not the same as “enforced”. Devices upgraded in place from older releases, images built years ago, third-party software, leftover DirectAccess Group Policy settings, or a local administrator running a single command can all change the state of these protocols. Explicitly disabling them through policy ensures they remain off and provides the following benefits.

Reliable Connectivity

Transition technologies depend on infrastructure that is increasingly unavailable or unreliable. Public 6to4 relays are operated by unknown third parties and have long been a source of connectivity failures, which led the IETF to deprecate the 6to4 anycast relay mechanism and recommend that 6to4 be disabled by default. Public Teredo servers are largely gone. When a transition interface is active but the path behind it is broken, applications may attempt IPv6 connections that time out before falling back to IPv4, resulting in slow application launches, intermittent failures, and difficult troubleshooting. Tunneling also reduces the effective MTU, which can cause fragmentation and path MTU discovery issues. Disabling these interfaces removes these variables entirely and ensures that endpoints use either native IPv6 or IPv4.

Reduced Attack Surface

IPv6 transition technologies can also be abused by attackers. Because they encapsulate IPv6 inside IPv4, UDP, or HTTPS, the inner traffic may not be visible to firewalls, intrusion detection systems, and other security controls that inspect only IPv4 traffic. Teredo is especially concerning because it is designed to traverse NAT, which can expose a host directly to unsolicited inbound IPv6 traffic from the internet and bypass perimeter security controls entirely. ISATAP clients locate their router by resolving the name “isatap” in DNS, which an attacker can hijack to insert themselves into the traffic path (this is why “isatap” is included in the Windows DNS Server global query block list by default). Attackers who gain a foothold on an endpoint can also enable these protocols to establish covert command-and-control or data exfiltration channels. Enforcing a disabled state through Group Policy or Intune ensures that any local change is reverted at the next policy refresh.

Important Considerations

Before disabling these technologies, administrators should confirm that nothing in the environment depends on them. DirectAccess clients rely on IP-HTTPS (and, in some deployments, Teredo and 6to4) for remote connectivity. Do NOT apply these settings to devices still using DirectAccess, or they will lose connectivity to the corporate network. Always On VPN does not use any of these technologies and is not affected. For organizations moving to IPv6, native IPv6 or IPv6-only networks with 464XLAT are the recommended path forward. On Windows, Windows CLAT (WinCLAT) provides the client-side component of 464XLAT, allowing IPv4 applications to continue working on IPv6-only networks.

Local Configuration with netsh.exe and PowerShell

The netsh.exe command and the PowerShell NetworkTransition module can be used to view and change the state of each transition technology locally. This is useful for ad-hoc configuration, testing, and validation before deploying settings at scale. All commands must be run from an elevated command prompt or PowerShell session. Note that settings configured using Group Policy or Intune take precedence over local settings.

View Current State

The current configuration of each transition technology can be viewed using the Get-Net6to4Configuration, Get-NetTeredoConfiguration, Get-NetIsatapConfiguration, and Get-NetIPHttpsConfiguration PowerShell commands.

Get-Net6to4Configuration
Get-NetTeredoConfiguration
Get-NetIsatapConfiguration
Get-NetIPHttpsConfiguration
PowerShell output of Get-Net6to4Configuration, Get-NetTeredoConfiguration, and Get-NetIsatapConfiguration showing Default state, with no output from Get-NetIPHttpsConfiguration

IPv6 Transition Technology Configuration

In the output above, 6to4, Teredo, and ISATAP each report a state of Default rather than Disabled. Default means the protocol follows the operating system’s built-in behavior, which on all supported versions of Windows 10 and Windows 11 is disabled. Explicitly setting the state to Disabled ensures the protocol stays off regardless of future changes to the default.

Note: By default, Get-NetIPHttpsConfiguration returns no output. IP-HTTPS has no configuration on a Windows client unless one has been applied, typically by DirectAccess.

The equivalent netsh.exe commands are as follows.

netsh.exe interface 6to4 show state
netsh.exe interface teredo show state
netsh.exe interface isatap show state
netsh.exe interface httpstunnel show interfaces

Disable 6to4

To disable 6to4, run the following netsh.exe command or the Set-Net6to4Configuration PowerShell command.

netsh.exe interface 6to4 set state state=disabled
Set-Net6to4Configuration -State Disabled

Disable Teredo

To disable Teredo, run the following netsh.exe command or the Set-NetTeredoConfiguration PowerShell command.

netsh.exe interface teredo set state type=disabled
Set-NetTeredoConfiguration -Type Disabled

Disable ISATAP

To disable ISATAP, run the following netsh.exe command or the Set-NetIsatapConfiguration PowerShell command.

netsh.exe interface isatap set state state=disabled
Set-NetIsatapConfiguration -State Disabled

Disable IP-HTTPS

To disable the IP-HTTPS client interface, run the Set-NetIPHttpsConfiguration PowerShell command.

Set-NetIPHttpsConfiguration -State Disabled

Validate Configuration

After disabling these technologies, administrators can confirm that no transition interfaces are active. The Get-NetTeredoState and Get-NetIPHttpsState PowerShell commands display the operational state of Teredo and IP-HTTPS, and the Get-NetIPInterface command lists any remaining tunnel interfaces.

Get-NetTeredoState
Get-NetIPHttpsState
Get-NetIPInterface -AddressFamily IPv6 | Where-Object InterfaceAlias -Match 'Teredo|isatap|6TO4|IPHTTPS'

If no transition technologies are active, these commands return no output. To confirm that each protocol is disabled, run the Get-Net6to4Configuration, Get-NetTeredoConfiguration, and Get-NetIsatapConfiguration commands again. The State (or Type, for Teredo) for each should now report Disabled.

PowerShell output of Get-Net6to4Configuration, Get-NetTeredoConfiguration, and Get-NetIsatapConfiguration showing each protocol in a Disabled state

IPv6 Transition Technologies Disabled

DisabledComponents Registry Value

Administrators may encounter guidance recommending the DisabledComponents registry value (HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters) to disable IPv6 tunnel interfaces. Setting bit 0 (0x01) disables all IPv6 tunnel interfaces, and bits 1 (0x02), 2 (0x04), and 3 (0x08) disable 6to4, ISATAP, and Teredo, respectively. However, changes to this value require a restart, and Microsoft does not recommend disabling IPv6 components this way. The per-technology netsh.exe, PowerShell, Group Policy, and Intune settings are the preferred approach.

Active Directory Group Policy

For domain-joined devices, administrators can enforce these settings using Active Directory Group Policy. The settings are located in the tcpip.admx administrative template and write to HKLM\SOFTWARE\Policies\Microsoft\Windows\TCPIP\v6Transition on the client. To configure them, open the Group Policy Management Console (GPMC), create or edit a GPO linked to the appropriate OU, and navigate to Computer Configuration > Policies > Administrative Templates > Network > TCPIP Settings > IPv6 Transition Technologies.

Next, configure the following settings.

SettingConfiguration
Set 6to4 StateEnabled, Disabled State
Set ISATAP StateEnabled, Disabled State
Set Teredo StateEnabled, Disabled State
Set IP-HTTPS StateEnabled, Disabled State

Group Policy Settings to Disable IPv6 Transition Technologies

Group Policy Management Editor IPv6 Transition Technologies settings with Set 6to4 State, Set IP-HTTPS State, Set ISATAP State, and Set Teredo State enabled

Group Policy IPv6 Transition Technologies Settings

Teredo, 6to4, and ISATAP

To disable Teredo, 6to4, and ISATAP, set each policy to Enabled and select Disabled State from the drop-down list. The Set Teredo State setting is shown below. Set 6to4 State and Set ISATAP State are configured the same way.

Set Teredo State Group Policy setting configured to Enabled with Disabled State selected from the drop-down list

Set Teredo State Group Policy Setting

Note: The help text for the Set Teredo State setting says the default state is Client. This description dates back to Windows 7 and is outdated. Teredo has been disabled by default since Windows 10 1803.

IP-HTTPS

The Set IP-HTTPS State policy requires a value in the IPHTTPS URL field, even when the state is set to Disabled. Enter about:blank in this field.

Set IP-HTTPS State Group Policy setting configured to Enabled with about:blank as the IPHTTPS URL and Disabled State selected

Set IP-HTTPS State Group Policy Setting

Intune Settings Catalog

For devices managed by Microsoft Intune, these settings are available in the Settings Catalog as ADMX-backed policies using the Policy CSP (ADMX_tcpip). To configure them, open the Microsoft Intune admin center, navigate to Devices > Configuration > Create > New Policy, select Windows 10 and later for the platform and Settings catalog for the profile type, and then click Create. Provide a name and description for the policy and click Next.

Intune Create a profile pane with Windows 10 and later selected as the platform and Settings catalog selected as the profile type

Intune Settings Catalog Profile

On the Configuration settings page, click Add settings and search for “IPv6 Transition Technologies”. Select the Administrative Templates Network TCPIP Settings | IPv6 Transition Technologies category and then select Set 6to4 State, Set IP-HTTPS State, Set ISATAP State, and Set Teredo State.

Intune Settings picker search for ipv6 transition technologies showing the Administrative Templates Network TCPIP Settings IPv6 Transition Technologies category

Intune Settings Picker

Enable each setting and select Disabled State from the drop-down list. As with Group Policy, the Set IP-HTTPS State setting requires a value in the IPHTTPS URL field. Enter about:blank in this field. Click Next, assign the profile to the appropriate device groups, and then click Create.

Intune Settings catalog configuration settings with Set Teredo State, Set IP-HTTPS State, Set ISATAP State, and Set 6to4 State enabled and set to Disabled State, with about:blank as the IPHTTPS URL

Intune IPv6 Transition Technologies Configuration Settings

Summary

The IPv6 transition technologies 6to4, Teredo, ISATAP, and IP-HTTPS have outlived their usefulness. Microsoft has disabled most of them by default since early Windows 10 releases, but relying on defaults leaves room for drift, misconfiguration, and abuse. Explicitly disabling them using Group Policy or Intune ensures reliable connectivity and removes a potential avenue for attackers, while netsh.exe and PowerShell provide a quick way to test and validate the configuration locally. Just be sure to exclude any devices that still rely on DirectAccess.

Additional Information

DirectAccess Manage Out and System Center Configuration Manager (SCCM)

The seamless and transparent nature of DirectAccess makes it wonderfully easy to use. In most cases, it requires no user interaction at all to access internal corporate resources while away from the office. This enables users to be more productive. At the same time, it offers important connectivity benefits for IT administrators and systems management engineers as well.

Always Managed

DirectAccess Manage Out and System Center Configuration Manager (SCCM)DirectAccess clients are automatically connected to the corporate network any time they have a working Internet connection. Having consistent corporate network connectivity means they receive Active Directory group policy updates on a regular basis, just as on-premises systems do. Importantly, they check in with internal management systems such as System Center Configuration Manager (SCCM) and Windows Server Update Services (WSUS) servers, enabling them to receive updates in a timely manner. Thus, DirectAccess clients are better managed, allowing administrators to more effectively maintain the configuration state and security posture for all their managed systems, including those that are predominantly field-based. This is especially crucial considering the prevalence WannaCry, Cryptolocker, and a variety of other types of ransomware.

DirectAccess Manage Out

DirectAccess Manage Out and System Center Configuration Manager (SCCM)When manage out is configured with DirectAccess, hosts on the internal network can initiate connections outbound to remote connected DirectAccess clients. SCCM Remote Control and Remote Desktop Connection (RDC) are commonly used to remotely connect to systems for troubleshooting and support. With DirectAccess manage out enabled, these and other popular administrative tools such as VNC, Windows Remote Assistance, and PowerShell remoting can also be used to manage remote DirectAccess clients in the field. In addition, enabling manage out allows for the proactive installation of agents and other software on remote clients, such as the SCCM and System Center Operation Manager (SCOM) agents, third-party management agents, antivirus and antimalware software, and more. A user does not have to be logged on to their machine for manage out to work.

IPv6

DirectAccess manage out requires that connections initiated by machines on the internal network to remote-connected DirectAccess clients must be made using IPv6. This is because DirectAccess clients use IPv6 exclusively to connect to the DirectAccess server. To enable connectivity over the public IPv4 Internet, clients use IPv6 transition technologies (6to4, Teredo, IP-HTTPS), and IPv6 translation components on the server (DNS64 and NAT64) enable clients to communicate with internal IPv4 resources. However, DNS64 and NAT64 only translate IPv6 to IPv4 inbound. They do not work in reverse.

Native or Transition?

It is recommended that IPv6 be deployed on the internal network to enable DirectAccess manage out. This is not a trivial task, and many organizations can’t justify the deployment for just this one specific use case. As an alternative, IPv6 can be configured with an IPv6 transition technology, specifically the Intrasite Automatic Tunnel Addressing Protocol (ISATAP). ISATAP functions as an IPv6 overlay network, allowing internal hosts to obtain IPv6 addresses and routing information from an ISATAP router to support manage out for DirectAccess clients.

ISATAP

When DirectAccess is installed, the server is automatically configured as an ISATAP router. Guidance for configuring ISATAP clients can be found here. Using ISATAP can be an effective approach to enabling DirectAccess manage out for SCCM when native IPv6 is not available, but it is not without its drawbacks.

• Using the DirectAccess server for ISATAP is only supported with single server DirectAccess deployments.
• Using the DirectAccess server for ISATAP does work when using Network Load Balancing (NLB) with some additional configuration, but it is not supported.
• Using the DirectAccess server for ISATAP does not work when an external load balancer is used, or if multisite is enabled.

ISATAP with Load Balancing and Multisite

It is technically possible to enable DirectAccess manage out for SCCM using ISATAP in load-balanced and multisite DirectAccess deployments, however. It involves deploying a separate ISATAP router and some custom configuration, but once in place it works perfectly. I offer this service to my customers as part of a consulting engagement. If you’re interested in restoring DirectAccess manage out functionality to support SCCM remote control, RDC, or VNC in load-balanced or multisite DirectAccess deployments, fill out the form below and I’ll provide you with more information.

Additional Resources

ISATAP Recommendations for DirectAccess Deployments
DirectAccess Manage Out with ISATAP Fails on Windows 10 and Windows Server 2016
DirectAccess Client Firewall Rule Configuration for ISATAP Manage Out
Video: Windows 10 DirectAccess in action (includes manage out demonstration)

← Back

Thank you for your response. ✨

IPv6 Recommend Reading for DirectAccess Administrators

IPv6 Recommended ReadingDirectAccess uses IPv6 exclusively for communication between the DirectAccess client and server. The DNS64 and NAT64 services running on the DirectAccess server allow the client to connect to IPv4-only resources on the corporate network. Although no IPv6 knowledge is necessary to implement DirectAccess, it is most certainly required to support it going forward. A fundamental understanding of IPv6 is vital when it comes to troubleshooting DirectAccess connectivity issues, so learning IPv6 is critically important for the DirectAccess administrator.

To help you learn more about IPv6, here are three essential resources I think you will find helpful!

Understanding IPv6 Practical IPv6 for Windows Administrators IPv6 Address Planning


Understanding IPv6
(Joe Davies) – This is an excellent reference for the IPv6 protocol and should be on every DirectAccess administrator’s desk. This book provides detailed documentation and explanations for the IPv6 protocol including IPv6 transition protocols, which are commonly used with DirectAccess.

Practical IPv6 for Windows Administrators (Ed Horley) – Another essential title for learning IPv6. This book focuses on the use of IPv6 for a variety of popular Windows workloads, including DirectAccess.

IPv6 Address Planning (Tom Coffeen) – This book is an optional read for DirectAccess administrators, but a recommended one still. There is no IPv6 address planning required to implement DirectAccess, as most commonly IPv6 addressing happens automatically. However, this book will help you understand IPv6 subnetting, which can be helpful for fully understanding DirectAccess.

If you prefer video training, be sure to check out this great course on Pluralsight from Ed Horley. Don’t be afraid of IPv6. Embrace it! Start learning IPv6 today!

Enable Teredo Support after DirectAccess Has Been Configured

DirectAccess leverages IPv6 transition protocols to enable clients to connect to the DirectAccess server when both are located on the IPv4 Internet. When the DirectAccess server is located in a perimeter or DMZ network behind a NAT device, only the IP-HTTPS IPv6 transition protocol is used. When the DirectAccess server is edge facing with public IPv4 addresses assigned to the external interface, the 6to4 and Teredo IPv6 transition protocols are also supported.

Note: It is generally recommended that the 6to4 IPv6 transition protocol be proactively disabled. More details here.

To support Teredo, the DirectAccess server must be configured with two consecutive public IPv4 addresses. When you configure DirectAccess for the first time, Teredo will automatically be configured if the installation detects the proper requirements for it. If you neglect to add the second consecutive public IPv4 address to the external network interface and configure DirectAccess, the installation will complete successfully without enabling Teredo support and Teredo will not appear in the list of services operations status, as shown here.

Enable Teredo Support after DirectAccess Has Been Configured

To enable Teredo support after you’ve configured DirectAccess, add the second consecutive public IPv4 address to the external network interface and then execute the following PowerShell command from an elevated command prompt.

Set-DAServer –TeredoState Enabled

Enable Teredo Support after DirectAccess Has Been Configured

Once complete, you’ll receive a warning message that states:

WARNING: Two consecutive IPv4 addresses have been detected on the Remote Access server, and Teredo is enabled. To use Teredo, ensure that internal servers allow inbound ICMP traffic.

Teredo requires that ICMPv4 Echo Requests be allowed inbound to any Intranet resource that a DirectAccess client will access. Ensure that all firewalls (host and network) are configured to allow ICMPv4 Echo Request inbound and outbound to ensure proper Teredo operation.

Once complete, close and then reopen the Remote Access Management console (in some cases a server restart may be required) to confirm Teredo support.

Enable Teredo Support after DirectAccess Has Been Configured

ISP Address Field is Blank in DirectAccess Status and Reports

When viewing DirectAccess client status in the Remote Access Management console, you will notice that the ISP address field is blank for clients using the IP-HTTPS IPv6 transition protocol. However, the ISP Address information is displayed for clients using the 6to4 or Teredo IPv6 transition protocols.

ISP Address Field is Blank in DirectAccess Status and Reports

This is expected behavior and occurs as a result of the way in which the DirectAccess reports obtain the client’s public ISP address information. The ISP address is derived from the IPv6 address used to establish the DirectAccess client’s IPsec Security Associations (SAs) on the DirectAccess server. For clients using the 6to4 or Teredo IPv6 transition protocols, the client’s public IPv4 address is embedded in its IPv6 address. This information is displayed in the ISP Address field. However, the IP-HTTPS IPv6 transition protocol uses completely random IPv6 addresses. Without an embedded IPv4 address, the Remote Access Management console lacks the information to display in the ISP Address field.

Updated 3/22/2015: With a little extra work it is possible to find the IPv4 ISP address for DirectAccess clients using the IP-HTTPS IPv6 transition protocol. For more information, please refer to Microsoft PFE Martin Solis’ excellent blog post on the subject here.

Disable 6to4 IPv6 Transition Protocol for DirectAccess Clients

Update: IPv6 transition technologies have been disabled by default since early Windows 10 releases. For current guidance on disabling 6to4, Teredo, ISATAP, and IP-HTTPS using PowerShell, Group Policy, and Intune, see Disable 6to4, Teredo, ISATAP, and IP-HTTPS in Windows.

Introduction

DirectAccess client to server connections are established exclusively over IPv6. To allow for this communication to take place over the public IPv4 Internet, DirectAccess uses IPv6 transition protocols – 6to4, Teredo, and IP-HTTPS – to tunnel IPv6 communication over IPv4. 6to4 is supported when the DirectAccess server is edge facing with a public IPv4 address assigned to its external network interface. Two consecutive public IPv4 addresses are required to support Teredo. IP-HTTPS is used in all scenarios, and exclusively when the DirectAccess server is located in a perimeter or DMZ network behind a NAT device.

6to4 and Teredo Advantages

Not all IPv6 transition protocols are created equal. For Windows 7 clients, 6to4 and Teredo provide significant performance advantages when compared to IP-HTTPS (Windows 8.x clients can use null encryption for IP-HTTPS, which eliminates this performance advantage). 6to4 and Teredo offer nearly identical performance, but 6to4 suffers from some unique challenges and should be disabled by default for all DirectAccess deployments.

Note: IP-HTTPS null encryption is disabled for all clients when client-based remote access VPN or one-time password (OTP) authentication is configured on the DirectAccess server, which can impact performance for Windows 8.x clients using IP-HTTPS.

Unreliable Fallback

The 6to4 IPv6 transition protocol is used when a DirectAccess client has a public IPv4 address assigned to its network interface. 6to4 uses IP protocol 41 for transport, and does not work when the client is behind a NAT. If outbound IP protocol 41 is blocked (a common scenario) then the client should fallback to Teredo or IP-HTTPS. In my experience this doesn’t always happen. In fact, the protocol fallback fails with enough regularity that it is the primary reason I recommend disabling it by default.

Active Directory IP Subnet Assignment

6to4 is also problematic when it comes to configuring Active Directory IP subnets for clients in a multisite DirectAccess deployment. 6to4 addresses begin with the 2002::/16 prefix followed by the IPv4 address of the client represented in hexadecimal using the form WWXX:YYZZ::WWXX:YYZZ. For example, if the DirectAccess client’s public IPv4 address is 198.51.100.83, its 6to4 address would be 2002:c633:6453::c633:6453. Since this IPv6 address is created using only the client’s IPv4 address, there is no way to associate the client to a specific entry point. The administrator is left with assigning the 2002::/16 prefix to the most centrally located AD site. This will undoubtedly result in some DirectAccess clients using domain controllers that are not ideal, which will ultimately lead to slow log on times and mapped drive failures.

Summary

In some deployment scenarios, 6to4 and Teredo offer performance advantages when compared to IP-HTTPS. Performance is identical for both 6to4 and Teredo, and considering the challenges that 6to4 poses, it should be disabled by default for DirectAccess deployments. This eliminates the possibility of associated connectivity issues, while still allowing DirectAccess clients to use the Teredo IPv6 transition protocol and not incur any performance penalty. Details about disabling IPv6 transition protocols can be found here.

Active Directory IP Subnets for DirectAccess Clients

Introduction

When deploying Windows Server 2012 R2 DirectAccess I’m often asked which Active Directory (AD) site a client is associated with when it establishes DirectAccess connectivity. The answer depends on the client’s operating system. Windows 8.x and later clients automatically associate themselves with the site to which the DirectAccess server they are connected to belongs. Windows 7 clients lack this capability, and depending on current AD configuration, Windows 7 clients may associate with an incorrect site. This can lead to potential problems such as slow logon times and mapped drive failures. To address this issue it is important to configure IP subnets in AD for DirectAccess clients to eliminate any potential problems. In this article I’ll demonstrate how to create IP subnets in AD and how to identify IPv6 subnets used by DirectAccess clients.

Active Directory IP Subnets

Configuring IP subnets in AD is relatively straightforward. In the Active Directory Sites and Services management console, right-click Subnets and choose New Subnet. Enter the IP subnet prefix and select the AD site where the DirectAccess server for this subnet resides.

Active Directory IP Subnets for DirectAccess Clients

IPv6 Subnets for DirectAccess Clients

To configure AD IP subnets for DirectAccess clients, it will be necessary to identify all potential IP subnets that may be in use. IP subnets used by DirectAccess clients depend on the IPv6 transition protocols supported by the DirectAccess configuration. DirectAccess supports 6to4, Teredo, and IP-HTTPS for client to server communication, and the Intrasite Automatic Tunnel Addressing Protocol (ISATAP) for manage-out connectivity. Any or all of these protocols may be used for a particular DirectAccess configuration.

  • 6to4 – Supported if the DirectAccess server is edge-facing with a public IPv4 address assigned to its external network interface.
  • Teredo – Supported if the DirectAccess server is edge-facing with two consecutive public IPv4 addresses assigned to its external network interface.
  • IP-HTTPS – Supported in all deployment scenarios, and is used exclusively if the DirectAccess server is located behind a NAT device in a perimeter or DMZ network.
  • ISATAP – Optionally used when manage out is enabled and configured.

IP subnets should be configured in AD for all IPv6 transition protocols supported for the DirectAccess deployment.

Identify the 6to4 IPv6 Subnet

Note: Information for the 6to4 protocol is provided here for completeness. However, it is generally recommended that 6to4 be disabled for DirectAccess deployments, making this configuration unnecessary. More information about disabling 6to4 can be found here.

The 6to4 IPv6 transition protocol is only supported when the DirectAccess server is edge-facing with a public IPv4 address assigned to its external network interface. 6to4 IPv6 addresses are assigned using the 2002::/16 prefix. For single site DirectAccess deployments, an administrator should create an IP subnet in AD using this prefix and assign it to the AD site where the DirectAccess server resides. If public IPv4 addressing is used internally and the 6to4 transition protocol has not been disabled, it is essential that more specific IP subnets for internal 6to4 clients also be configured.

6to4 and DirectAccess Multisite Challenges

The 6to4 IPv6 transition protocol presents a challenge for multisite DirectAccess deployments. When a client creates a 6to4 IPv6 address, it appends the 2002::/16 prefix with its public IPv4 address represented in hexadecimal using the form WWXX:YYZZ::WWXX:YYZZ. For example, if the DirectAccess client’s public IPv4 address is 198.51.100.83, its 6to4 address would be 2002:c633:6453::c633:6453. Since this IPv6 address is created using only the client’s IPv4 address, there is no way to associate the client to a specific entry point. This is one of the reasons why 6to4 is not recommended for use in DirectAccess deployments. If you must support the 6to4 IPv6 transition protocol in a multisite configuration, assign the 2002::/16 IP subnet to the most centrally located AD site.

Identify the Teredo IPv6 Subnet

The Teredo IPv6 transition protocol is only supported when the DirectAccess server is edge facing with two consecutive public IPv4 addresses assigned to its external network interface. Teredo IPv6 addresses begin with 2001: followed by the primary public IPv4 address (represented in hexadecimal) of the DirectAccess server. For example, if the DirectAccess server’s primary public IPv4 address is 203.0.113.240, the DirectAccess client will be assigned a Teredo IPv6 address using the 2001:cb00:71f0::/48 prefix. An administrator should create an IP subnet in AD using this prefix and assign it to the AD site where the DirectAccess server resides. For multisite deployments, repeat these steps for each DirectAccess entry point.

Identify the IP-HTTPS IPv6 Subnet

The IP-HTTPS IPv6 transition protocol is supported in all DirectAccess configurations and its IPv6 subnet should always be assigned to an AD site. The IP-HTTPS IPv6 prefix assignment differs between single site and multisite deployments.

Single Site Deployment

For single site deployments, a /64 IPv6 prefix is assigned for DirectAccess clients. To identify this subnet, run the Get-RemoteAccess PowerShell command on the DirectAccess server and locate the value of ClientIPv6Prefix

Active Directory IP Subnets for DirectAccess Clients

Multisite Deployment

For multisite deployments, a unique /64  IPv6 subnet is assigned to single node entry points. If load balancing is enabled, a /59 IPv6 subnet is assigned to the entry point, and each server within the entry point is assigned a /64 prefix for DirectAccess clients. To identify the IPv6 prefixes for each entry point, highlight DirectAccess and VPN below the Configuration node in the Remote Access Management console, and then select the DirectAccess entry point.

Active Directory IP Subnets for DirectAccess Clients

For edge facing deployments with a public IPv4 address assigned to the external network interface, the IPv6 prefix assigned to DirectAccess clients is from the 2002::/16 globally unique address (GUA) range. If the DirectAccess server is configured using a private IPv4 address with a single network interface or with two network interfaces behind a NAT, the IPv6 prefix assigned to DirectAccess clients will be from the fd00::/8 unique local address (ULA) range. An administrator should create an IP subnet in AD using this prefix and assign it to the AD site where the DirectAccess server resides.

Note: Uninstalling and reinstalling DirectAccess will result in a new IP-HTTPS network ID being created. If these changes are made, be sure to update AD IP subnets accordingly.

Identify the ISATAP IPv6 Subnet

Although this article focuses primarily on the IPv6 subnets used by remote DirectAccess clients, it is also important not to overlook AD IP subnet configuration for internal clients if ISATAP is configured for manage out. IP subnets used by ISATAP clients vary depending on the network configuration of the DirectAccess server.

Edge Deployment

For edge deployments, ISATAP addresses are assigned from the 2002::/16 GUA range. This is appended with the public IPv4 address of the DirectAccess server in hexadecimal using the form WWXX:YYZZ:1:0:5efe and the IPv4 address of the ISTAP client in familiar dotted-decimal notation. For example, if the DirectAccess server’s primary public IPv4 address is 203.0.113.240 and the client’s IP address is 172.16.1.77, the DirectAccess client will be assigned the ISATAP address 2002:cb00:71f0:1:0:5efe:172.16.1.77. The subnet to be created by the administrator in AD will then be 2002:cb00:71f0:1:0:5efe::/96 plus the IPv4 network prefix. For example, if the client’s IP address uses a /24 prefix, the AD IP subnet would be configured using 2002:cb00:71f0:1:0:5efe:172.16.1.0/120. This IP subnet should be assigned to the same site where the corresponding IPv4 subnet is assigned.

Perimeter/DMZ Deployment

For perimeter/DMZ deployments, ISATAP addresses are assigned randomly from the fd00::/8 ULA range and begin with fdXX:XXXX:XXXX:1:0:5efe followed by the IPv4 address of the ISTAP client in dotted-decimal notation. For example, if the DirectAccess client’s IP address is 172.16.1.77, its ISATAP address might look like fdca:3ce5:b0a:1:0:5efe:172.16.1.77. The subnet to be created by the administrator in AD will then be fdca:3ce5:b0a:1:0:5efe::/96 plus the IPv4 network prefix. If the clients’ IP address uses a /24 prefix, the AD IP subnet would be configured using fdca:3ce5:b0a:1:0:5efe:172.16.1.0/120. This IP subnet should be assigned to the same site where the corresponding IPv4 subnet is assigned.

Summary

The configuration of Active Directory IP subnets for DirectAccess clients is an often overlooked aspect of DirectAccess deployments. Proper IP subnet mapping to AD sites is critical, especially for large enterprise deployments with complex networks spanning multiple physical locations. It ensures that Windows 7 DirectAccess clients communicate with the closest AD domain controller when they establish a DirectAccess connection, which can eliminate potential issues. In addition, it is recommended to disable 6to4 for DirectAccess clients to avoid the pitfalls that come with the use of this IPv6 transition protocol. Also, don’t forget to configure IP subnets for any internal clients that use ISATAP for manage out.

Forwarding is Disabled on the DirectAccess Teredo Server

Recently while working with a customer to configure Windows Server 2012 R2 DirectAccess I encountered an issue with Teredo failing after enabling multisite. The remote access management console reported the following error:

Teredo: Not working properly
Error: Forwarding is disabled on the Teredo server.

Forwarding is Disabled on the DirectAccess Teredo Server

The resolution is simple enough. Enable forwarding on the Teredo interface! To do this we’ll need to identity the interface index of the Teredo Tunneling Pseudo-Interface and then enable forwarding using netsh.exe. Open an elevated command prompt and issue the following command:

netsh interface ipv6 show interface

Forwarding is Disabled on the DirectAccess Teredo Server

Make a note of the Teredo tunneling interface index and then enable forwarding on this interface by issuing the following command:

netsh interface ipv6 set interface  forwarding=enabled

Forwarding is Disabled on the DirectAccess Teredo Server

DirectAccess IPv6 Transition Protocols Explained

Update: IPv6 transition technologies have been disabled by default since early Windows 10 releases. For current guidance on disabling 6to4, Teredo, ISATAP, and IP-HTTPS using PowerShell, Group Policy, and Intune, see Disable 6to4, Teredo, ISATAP, and IP-HTTPS in Windows.

From a client perspective, DirectAccess is an IPv6-only solution. The DirectAccess client communicates with the DirectAccess server exclusively using IPv6. However, IPv6 is not widely deployed, so the most common scenario will find your DirectAccess clients and servers on the IPv4 Internet.

To facilitate DirectAccess client to server communication with IPv6 when the client is on the IPv4 Internet, IPv6 transition protocols are employed. These protocols effectively tunnel IPv6 packets in IPv4 packets. DirectAccess makes use of three IPv6 transition protocols for client to server connections: 6to4, Teredo, and IP-HTTPS.

DirectAccess Transition Protocols

Each IPv6 transition protocol has different network requirements and limitations, as described in the following sections.

6to4

The 6to4 IPv6 transition protocol works by encapsulating IPv6 packets in IPv4 packets using IP protocol 41. 6to4 does not work when the client or the server is behind a Network Address Translation (NAT) device, so this IPv6 transition protocol is only used when the client and server are assigned public IPv4 addresses. DirectAccess clients with public IPv4 addresses aren’t common though, and there are some challenges with the stability of 6to4. From experience I can tell you that 6to4 often fails when clients use a cellular Wi-Fi hotspot, for example. For this reason it is generally recommended that you proactively disable this transition protocol to avoid potential issues in the future.

Teredo

Teredo is an IPv6 transition protocol that is designed to work when a DirectAccess client (but not the DirectAccess server) is behind a NAT. It works by encapsulating IPv6 packets in IPv4 packets using UDP on port 3544. Teredo will be used any time the DirectAccess client has a private IPv4 address, or when the client has a public IPv4 address and the 6to4 protocol is unavailable (e.g. 6to4 is disabled, or outbound access to IP protocol 41 is restricted by firewall policy). To support Teredo, the DirectAccess server must be configured with two consecutive public IPv4 addresses. In addition, Teredo uses Internet Control Message Protocol (ICMP) for NAT detection (e.g. cone, restricted, symmetric), so ICMPv4 echo requests must be allowed inbound to any host with which the DirectAccess client communicates.

IP-HTTPS

IP-HTTPS is an IPv6 transition protocol that works by encapsulating IPv6 packets in IPv4 packets using HTTP with Secure Sockets Layer (SSL) or Transport Layer Security (TLS). It is the IPv6 transition protocol of last resort, and will be used any time that 6to4 or Teredo aren’t available. The advantage to using IP-HTTPS is ubiquitous firewall access. Any network with access to the public Internet should, at a minimum, allow outbound HTTP and HTTPS. In some deployment scenarios, IP-HTTPS can be disadvantageous. For example, when Windows 7 DirectAccess clients leverage this IPv6 transition protocol, IPsec-encrypted traffic is encrypted again using SSL/TLS. This double encryption results in high processing overhead and often translates to poor performance and limited scalability. Windows 8 and later clients do not suffer this limitation, as they support null encryption which eliminates the negative effects imposed by double encryption. For the best results using IP-HTTPS, use an application delivery controller to offload SSL, or deploy Windows 8 or later clients. In any case, do not collocate the client-based VPN role on the DirectAccess server, as doing so will remove support for null encryption completely and force even Windows 8 and later clients to perform double encryption for IP-HTTPS traffic.

DirectAccess Server Configuration

To support the 6to4 and Teredo IPv6 transition protocols, the DirectAccess server must be configured with two network interfaces, one internal and one external. The DirectAccess server must have public IPv4 addresses assigned to its external network interface. For Teredo in particular, the DirectAccess server requires two consecutive public IPv4 addresses. Beginning with Windows Server 2012, DirectAccess provides support for perimeter network (DMZ) deployment behind a NAT device using RFC 1918 private IPv4 addresses with either one or two network interfaces. In this deployment scenario, the DirectAccess server only supports the use of the IP-HTTPS IPv6 transition protocol. 6to4 and Teredo are not available when the DirectAccess server is located behind a NAT device and these IPv6 transition protocols should be disabled on all DirectAccess clients.

Additional Information

Disabling Unused IPv6 Transition Technologies for DirectAccess Clients

Update: IPv6 transition technologies have been disabled by default since early Windows 10 releases. For current guidance on disabling 6to4, Teredo, ISATAP, and IP-HTTPS using PowerShell, Group Policy, and Intune, see Disable 6to4, Teredo, ISATAP, and IP-HTTPS in Windows.

From a client perspective, DirectAccess is an IPv6-only solution and requires IPv6 connectivity end to end. To enable the solution to work on IPv4-only networks, DirectAccess makes use of one of several IPv6 transition technologies: 6to4, Teredo, or IP-HTTPS. By leveraging these IPv6 transition technologies, a DirectAccess client can communicate with the DirectAccess server when they are both connected to the public IPv4 Internet, which is the most common deployment scenario today.

DirectAccess Behind NAT

The first two IPv6 transition technologies, 6to4 and Teredo, both require that the DirectAccess server be directly connected to the public Internet. Beginning with Windows Server 2012, placing the DirectAccess server behind a border router or edge firewall performing Network Address Translation (NAT) is now supported. However, in this deployment model only the IP-HTTPS IPv6 transition protocol can be utilized. In this scenario, it is recommended to disable the unused IPv6 transition protocols to prevent potential connectivity issues. You can disable them on a per-host basis using PowerShell, which is fine for individual client testing purposes, or globally using Active Directory Group Policy Objects (GPOs), which is recommended for enterprise-wide production deployment.

Disable Using PowerShell

To disable unused IPv6 transition protocols on a per-host basis on Windows 8 clients using PowerShell, open an elevated PowerShell prompt and execute the following commands.

Set-Net6to4Configuration -State Disabled
Set-NetTeredoConfiguration -Type Disabled
Set-NetIsatapConfiguration -State Disabled

Disable Using netsh

To disable unused IPv6 transition protocols on a per-host basis on Windows 7 clients using netsh, open an elevated command prompt and execute the following commands.

netsh interface 6to4 set state disabled
netsh interface teredo set state disabled
netsh interface isatap set state disabled

Disable Using Group Policy

To disable unused IPv6 transition protocols using Active Directory Group Policy, open the Group Policy Management Console (gpmc.msc) and create a new GPO. Edit the GPO by navigating to Computer Configuration > Policies > Administrative Templates > Network > TCPIP Settings > IPv6 Transition Technologies. Double-click Set 6to4 State and enable the policy, then select Disabled State from the list of states. Repeat these steps for Teredo and ISATAP.

Set 6to4 State Group Policy setting enabled with Disabled State selected

Set 6to4 State Group Policy Setting

Change the security filtering for the GPO and specify the security group for your DirectAccess clients. Once complete, link the new GPO to the domain.

GPO security filtering scoped to the DirectAccess clients security group

GPO Security Filtering

Summary

As a reminder, the steps above are for disabling unused IPv6 transition protocols in a deployment scenario where the DirectAccess server is running Windows Server 2012 or 2012 R2 and is deployed behind a NAT device. If your DirectAccess server is connected directly to the public Internet, disabling these IPv6 transition protocols is not required.

Additional Information