title: Microsoft DirectAccess: Unable to Get Forced Tunneling to Connect After Defining Proxy Server
body: <p>We are currently in the process of setting up a test environment to use Forced Tunneling with Direct Access.</p>
  
  <p>We have gone through the process of setting up the following steps from this <a href="https://directaccess.richardhicks.com/2017/07/27/directaccess-force-tunneling-and-proxy-server-configuration/" rel="nofollow noreferrer">blog</a>.</p>
  
  <p>Configure a Proxy Server</p>
  
  <p>Once force tunneling has been enabled, run the following PowerShell script to configure an on-premises proxy server for DirectAccess clients to use. Be sure to substitute the fully-qualified domain name (FQDN) and port for your proxy server in the $proxy variable below.</p>
  
  <pre class="lang-bsh prettyprint-override"><code>$gpo = (Get-RemoteAccess).ClientGpoName
  $gpo = $gpo.Split(‘\’)[1]
  
  $proxy = “proxy.corp.example.net:8080”
  
  $rule = (Get-DnsClientNrptRule -GpoName $gpo | Where-Object Namespace -eq “.” | Select-Object -ExpandProperty “Name”)
  
  Set-DnsClientNrptRule -DAEnable $true -DAProxyServerName $proxy -DAProxyType “UseProxyName” -Name $rule -GpoName $gpo
  </code></pre>
  
  <p>If multisite is enabled and Windows 7 clients are supported, run the following PowerShell script on one DirectAccess server in each entry point.</p>
  
  <pre class="lang-bsh prettyprint-override"><code>$downlevelgpo = (Get-RemoteAccess).DownlevelGpoName
  $downlevelgpo = $downlevelgpo.Split(‘\’)[1]
  
  $proxy = “proxy.corp.example.net:8080”
  
  $downlevelrule = (Get-DnsClientNrptRule -GpoName $downlevelgpo | Where-Object Namespace -eq “.” | Select-Object -ExpandProperty “Name”)
  
  Set-DnsClientNrptRule -DAEnable $true -DAProxyServerName $proxy -DAProxyType “UseProxyName” -Name $downlevelrule -GpoName $downlevelgpo
  </code></pre>
  
  <p>These settings are then applied to the machine and we can see that proxy server settings are valid however we get "no internet access" and it looks like Direct Access does not connect.</p>
  
  <p>I am unable to find any documentation to explain this issue we are having.</p>