# Instructions for Creating VPN Connection on Mobile Devices

Before configuring a VPN connection, in the user tree, open the card of the required user and set the **Allow remote access via VPN** flag. To do this, go to the **Users -&gt; User &amp; Group** section:  
[![1. Instructions for Creating VPN Connection on Mobile Devices.png](https://docs.safedns.com/uploads/images/gallery/2022-09/scaled-1680-/wrpo4a4WgzzWvDsB-1-instructions-for-creating-vpn-connection-on-mobile-devices.png)](https://docs.safedns.com/uploads/images/gallery/2022-09/wrpo4a4WgzzWvDsB-1-instructions-for-creating-vpn-connection-on-mobile-devices.png)

---

<details id="bkmrk-connecting-via-stron"><summary>Connecting via the StrongSwan app</summary>

1\. Click **Add a VPN profile**:  
[![2. Instructions for Creating VPN Connection on Mobile Devices.png](https://docs.safedns.com/uploads/images/gallery/2022-09/scaled-1680-/YbtgYQVs380VOJtj-2-instructions-for-creating-vpn-connection-on-mobile-devices.png)](https://docs.safedns.com/uploads/images/gallery/2022-09/YbtgYQVs380VOJtj-2-instructions-for-creating-vpn-connection-on-mobile-devices.png)

2 . Fill in the fields:

- Server – the domain specified in SafeUTM in **Users -&gt; VPN connections -&gt; IKEv2/IPsec Connection**;
- VPN type – IKEv2 EAP (Login/Password).
- Login – the name of the user allowed to connect via VPN.
- Password – the user's password.  
    [![3. Instructions for Creating VPN Connection on Mobile Devices.png](https://docs.safedns.com/uploads/images/gallery/2022-09/scaled-1680-/MCUDM3c1wjYUeq9G-3-instructions-for-creating-vpn-connection-on-mobile-devices.png)](https://docs.safedns.com/uploads/images/gallery/2022-09/MCUDM3c1wjYUeq9G-3-instructions-for-creating-vpn-connection-on-mobile-devices.png)

3\. Click **Save** and then click on the created connection.

</details>---

<details id="bkmrk-connecting-on-androi"><summary>Connecting on Android</summary>

1\. Go to VPN in **Settings -&gt; Connections -&gt; Other settings.** If necessary, use the settings search bar.  
2\. Select the connection type and fill in the following fields:

**For PPTP:**

- Name – connection name.
- Server address – the address of the VPN server.
- Username – the name of the user allowed to connect via VPN.
- Password – the user's password.

**For IKEv2/IPsec MSCHAPv2:**

- Name – connection name.
- Server address – the address of the VPN server.
- IPsec ID – user's login.
- Server Certificate – received from the server.
- IPsec CA Certificate – do not check the server.
- User name – the name of the user allowed to connect via VPN.
- Password – the user's password.  
    [![4. Instructions for Creating VPN Connection on Mobile Devices.png](https://docs.safedns.com/uploads/images/gallery/2022-09/scaled-1680-/ptGDZ3vnRwi5vu3Y-4-instructions-for-creating-vpn-connection-on-mobile-devices.png)](https://docs.safedns.com/uploads/images/gallery/2022-09/ptGDZ3vnRwi5vu3Y-4-instructions-for-creating-vpn-connection-on-mobile-devices.png)

**For L2TP/IPsec PSK:**

- Name – connection name.
- Server address – the address of the VPN server.
- IPsec shared key – the value of the **PSK** line in **Users -&gt; VPN Connections -&gt; L2TP/IPsec Connection**

4\. Click **Save** and activate the connection.

</details>---

<details id="bkmrk-connecting-on-ios-1."><summary>Connecting on iOS</summary>

1\. Go to **Settings -&gt; General -&gt; VPN:  
[![5. Instructions for Creating VPN Connection on Mobile Devices.PNG.png](https://docs.safedns.com/uploads/images/gallery/2022-09/scaled-1680-/X2eNxerFgxMYSntH-5-instructions-for-creating-vpn-connection-on-mobile-devices-png.png)](https://docs.safedns.com/uploads/images/gallery/2022-09/X2eNxerFgxMYSntH-5-instructions-for-creating-vpn-connection-on-mobile-devices-png.png)**

2\. Click **Add VPN configuration**:  
[![6. Instructions for Creating VPN Connection on Mobile Devices.PNG.png](https://docs.safedns.com/uploads/images/gallery/2022-09/scaled-1680-/KIjfdzVXdfJeTQkZ-6-instructions-for-creating-vpn-connection-on-mobile-devices-png.png)](https://docs.safedns.com/uploads/images/gallery/2022-09/KIjfdzVXdfJeTQkZ-6-instructions-for-creating-vpn-connection-on-mobile-devices-png.png)

3\. Select **Type** and fill in the corresponding fields:

**For PPTP:** Starting with iOS 10, Apple has removed support for the PPTP protocol.

- Description – connection name.
- Server – VPN server address.
- Account – the name of the user allowed to connect via VPN.
- Password – the user's password

**For L2TP:**

- Description – connection name.
- Server – VPN server address.
- Account – the name of the user allowed to connect via VPN.
- Password – the user's password.
- The shared key – the value of the **PSK** line in **Users -&gt; VPN connections -&gt; L2TP/IPsec Connection**.  
    [![7. Instructions for Creating VPN Connection on Mobile Devices.PNG.png](https://docs.safedns.com/uploads/images/gallery/2022-09/scaled-1680-/wsSwFKCIy5DVnk2x-7-instructions-for-creating-vpn-connection-on-mobile-devices-png.png)](https://docs.safedns.com/uploads/images/gallery/2022-09/wsSwFKCIy5DVnk2x-7-instructions-for-creating-vpn-connection-on-mobile-devices-png.png)

**For IKEv2:**

- Description – connection name.
- Server – VPN server address.
- Remote ID – VPN server address.
- User name – the name of the user allowed to connect via VPN.
- Password – the user's password.  
    [![8. Instructions for Creating VPN Connection on Mobile Devices.PNG.png](https://docs.safedns.com/uploads/images/gallery/2022-09/scaled-1680-/kT3i2EAzPC33fCLb-8-instructions-for-creating-vpn-connection-on-mobile-devices-png.png)](https://docs.safedns.com/uploads/images/gallery/2022-09/kT3i2EAzPC33fCLb-8-instructions-for-creating-vpn-connection-on-mobile-devices-png.png)

4\. Click **Done**.  
5\. To connect, slide the **Status** switch to the right.

</details>