Skip to content

Commit 22294fc

Browse files
authored
Merge pull request #101454 from assandu/patch-2
Updating include/exclude routes and DNS server/suffixes behavior for Mac
2 parents bf65189 + 54e1445 commit 22294fc

File tree

1 file changed

+113
-0
lines changed

1 file changed

+113
-0
lines changed

articles/vpn-gateway/openvpn-azure-ad-client-mac.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,119 @@ You can remove the VPN connection profile from your computer.
9898
1. On the **Remove VPN connection?** box, click **Remove**.
9999
:::image type="content" source="media/openvpn-azure-ad-client-mac/remove-2.png" alt-text="Screenshot of removing.":::
100100

101+
## FAQ
102+
103+
### How do I add DNS suffixes to the VPN client?
104+
105+
You can modify the downloaded profile XML file and add the **\<dnssuffixes>\<dnssufix> \</dnssufix>\</dnssuffixes>** tags.
106+
107+
```
108+
<azvpnprofile>
109+
<clientconfig>
110+
111+
<dnssuffixes>
112+
<dnssuffix>.mycorp.com</dnssuffix>
113+
<dnssuffix>.xyz.com</dnssuffix>
114+
<dnssuffix>.etc.net</dnssuffix>
115+
</dnssuffixes>
116+
117+
</clientconfig>
118+
</azvpnprofile>
119+
```
120+
121+
### How do I add custom DNS servers to the VPN client?
122+
123+
You can modify the downloaded profile XML file and add the **\<dnsservers>\<dnsserver> \</dnsserver>\</dnsservers>** tags.
124+
125+
```
126+
<azvpnprofile>
127+
<clientconfig>
128+
129+
<dnsservers>
130+
<dnsserver>x.x.x.x</dnsserver>
131+
<dnsserver>y.y.y.y</dnsserver>
132+
</dnsservers>
133+
134+
</clientconfig>
135+
</azvpnprofile>
136+
```
137+
138+
### <a name="split"></a>Can I configure split tunneling for the VPN client?
139+
140+
Split tunneling is configured by default for the VPN client.
141+
142+
### <a name="forced-tunnel"></a>How do I direct all traffic to the VPN tunnel (forced tunneling)?
143+
144+
You can configure forced tunneling using two different methods; either by advertising custom routes, or by modifying the profile XML file.
145+
146+
> [!NOTE]
147+
> Internet connectivity is not provided through the VPN gateway. As a result, all traffic bound for the Internet is dropped.
148+
>
149+
150+
* **Advertise custom routes:** You can advertise custom routes 0.0.0.0/1 and 128.0.0.0/1. For more information, see [Advertise custom routes for P2S VPN clients](vpn-gateway-p2s-advertise-custom-routes.md).
151+
152+
* **Profile XML:** You can modify the downloaded profile XML file to add the **\<includeroutes>\<route>\<destination>\<mask> \</destination>\</mask>\</route>\</includeroutes>** tags.
153+
154+
155+
```
156+
<azvpnprofile>
157+
<clientconfig>
158+
159+
<includeroutes>
160+
<route>
161+
<destination>0.0.0.0</destination><mask>1</mask>
162+
</route>
163+
<route>
164+
<destination>128.0.0.0</destination><mask>1</mask>
165+
</route>
166+
</includeroutes>
167+
168+
</clientconfig>
169+
</azvpnprofile>
170+
```
171+
172+
173+
### How do I add custom routes to the VPN client?
174+
175+
You can modify the downloaded profile XML file and add the **\<includeroutes>\<route>\<destination>\<mask> \</destination>\</mask>\</route>\</includeroutes>** tags.
176+
177+
```
178+
<azvpnprofile>
179+
<clientconfig>
180+
181+
<includeroutes>
182+
<route>
183+
<destination>x.x.x.x</destination><mask>24</mask>
184+
</route>
185+
</includeroutes>
186+
187+
</clientconfig>
188+
</azvpnprofile>
189+
```
190+
191+
### How do I block (exclude) routes from the VPN client?
192+
193+
You can modify the downloaded profile XML file and add the **\<excluderoutes>\<route>\<destination>\<mask> \</destination>\</mask>\</route>\</excluderoutes>** tags.
194+
195+
```
196+
<azvpnprofile>
197+
<clientconfig>
198+
199+
<excluderoutes>
200+
<route>
201+
<destination>x.x.x.x</destination><mask>24</mask>
202+
</route>
203+
</excluderoutes>
204+
205+
</clientconfig>
206+
</azvpnprofile>
207+
```
208+
209+
> [!NOTE]
210+
> - The default status for clientconfig tag is <clientconfig i:nil="true" />, which can be modified based on the requirement.
211+
> - Duplicate clientconfig tag is not supported on macOS, so make sure the clientconfig tag is not duplicated in the XML file.
212+
>
213+
101214
## Next steps
102215
103216
For more information, see [Create an Azure AD tenant for P2S Open VPN connections that use Azure AD authentication](openvpn-azure-ad-tenant.md).

0 commit comments

Comments
 (0)