Advertisement
Guest User

Untitled

a guest
Oct 10th, 2023
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <VPNProfile>
  2. <NativeProfile>
  3. <Servers>vpn-1.contoso.com</Servers>
  4. <NativeProtocolType>IKEv2</NativeProtocolType>
  5. <Authentication>
  6. <MachineMethod>Certificate</MachineMethod>
  7. </Authentication>
  8. <RoutingPolicyType>SplitTunnel</RoutingPolicyType>
  9. <!-- disable the addition of a class based route for the assigned IP address on the VPN interface -->
  10. <DisableClassBasedDefaultRoute>true</DisableClassBasedDefaultRoute>
  11. </NativeProfile>
  12.  
  13. <DomainNameInformation>
  14. <DomainName>.contoso.com</DomainName>
  15. <DnsServers>10.1.1.100,10.1.1.101,10.1.2.100</DnsServers>
  16. </DomainNameInformation>
  17.  
  18. <DnsSuffix>contoso.com</DnsSuffix>
  19. <TrustedNetworkDetection>contoso.com</TrustedNetworkDetection>
  20.  
  21. <!-- use host routes(/32) to prevent routing conflicts -->
  22. <Route>
  23. <Address>10.0.0.0</Address>
  24. <PrefixSize>8</PrefixSize>
  25. </Route>
  26. <Route>
  27. <Address>172.16.0.0</Address>
  28. <PrefixSize>12</PrefixSize>
  29. </Route>
  30. <Route>
  31. <Address>192.168.0.0</Address>
  32. <PrefixSize>16</PrefixSize>
  33. </Route>
  34.  
  35. <!-- traffic filters for the routes specified above so that only this traffic can go over the device tunnel -->
  36. <TrafficFilter>
  37. <RemoteAddressRanges>10.0.0.0, 172.16.0.0, 192.168.0.0</RemoteAddressRanges>
  38. </TrafficFilter>
  39.  
  40. <!-- need to specify always on = true -->
  41. <AlwaysOn>true</AlwaysOn>
  42.  
  43. <!-- new node to specify that this is a device tunnel -->
  44. <DeviceTunnel>true</DeviceTunnel>
  45.  
  46. <!--new node to register client IP address in DNS to enable manage out -->
  47. <RegisterDNS>true</RegisterDNS>
  48.  
  49. <RememberCredentials>true</RememberCredentials>
  50. </VPNProfile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement