• العربية
  • Azerbaijani
  • Català
  • 中文
  • Hrvatski
  • Čeština
  • Dansk
  • Nederlands
  • English
  • Estonian
  • Persian
  • Français
  • Deutsch
  • עברית
  • Magyar
  • Italiano
  • Macedonian
  • Norwegian
  • Português
  • Português
  • Română
  • Русский
  • Español
  • Svenska
  • Türkçe
  • Українська
  • Account
    • Login
    • Register
    • Forgot Password?
  • FairyHosting.com
    • Services
      • My Services
      • Order New Services
      • Domains
      • DNS MANAGER
    • Payment
      • Invoices
      • Add funds
      • Mass Payment
    • Support
    • Knowledgebase
    • Affiliates

      Categories

    Hestia CP
    2
    ISPmanager
    9
    Linux Server
    25
    Plesk
    14
    Windows Server
    15
    Fairy Disk Services
    4
    Mikrotik (RouterOS)
    8
    Server management
    19
    For a new client
    13

      Categories

      Tag Cloud

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Support

    My Support Tickets
    Knowledgebase
    Open Ticket

    How to connect to a VPN (L2TP) on Windows 10, Android, and iPhone Print

    • 1

    In order to connect to a VPN using different operating systems, you need to set up a VPN server. In this example, we will look at how to connect to an L2TP/IPsec VPN server on a MikroTik device. However, you can also use PPTP or other types of servers.

    Earlier in Chapter 3, we discussed how to create an account for a VPN connection. Now we just need to go over how to set up the VPN server, and then step by step we’ll look at how to connect it.Log in to your router using WinBox and navigate to PPP Interface tab L2TP Server. As shown in the screenshot below, to activate the server, it’s enough to check Enable and select a Default Profile. 

    Note: Step 3 (Use IPsec) is optional! (See Screenshot 3.)
    You only need to configure it if you're connecting to the VPN server from an iOS-based device (for example: iPhone or MacBook).

    (Screenshot 3)

    Connecting to an L2TP VPN using Windows 10

    To do this, you need to go to the Start menu and select Options.

    Next, go to the ‘Network and Internet’ tab.

    After that, select the ‘VPN’ tab and click ‘Add VPN Connection’.

    In the ‘Add VPN Connection’ window, you will need to fill in the fields.

    VPN service provider (Windows built-in by default).

    Connection name - any convenient name for you, which is displayed among other VPN connections.

    Then set the IP address of the server you want to connect to.( router's external IP)

    Type-VPN - select L2TP/IPsec with certificate.

    For the Type of sign-in info, leave it as Username and password.

    Username - enter the required username. 

    Password – enter the required password.

    After you've configured the connection, you will see your newly added VPN connection in the list. However, before connecting, you need to make a change in the routing settings.

    Attention!
    If you don’t change anything, the system will start using the new VPN connection as the default gateway, and all other routes — including your internet connection — will become unavailable.

    To make the necessary changes, go to the Advanced TCP/IP Settings tab and uncheck the option "Use default gateway on remote network".

    To speed up the connection process, you need to change the VPN type and click OK, as shown in this example:

    You can then connect via the network connection menu

    If you need to change the settings of this VPN connection, click on the ‘Advanced Settings’ button

    Click the Change button, adjust the necessary settings, and try connecting again.

    After that, the VPN connection setup is complete.

    Connecting to an L2TP VPN using Android (example: Huawei P20 Pro)

    In this example, we will explain how to connect to a VPN using the Android operating system. Typically, the VPN function is located in the Settings menu. You can use the Google search engine to find out exactly where the VPN feature is on your specific device. In this example, the VPN option is found under Settings → Wireless & Networks.

    Tap the VPN button. After that, a blank window will appear, allowing you to add a new VPN network. Tap Add VPN network.

    In the Edit VPN network field

    Name – the connection name (any name convenient for you)

    Type – L2TP (If PPTP is enabled on your router, you can use that as well)

    Server – the IP address of your router

    Next, your new VPN connection will appear in the list. Tap on it, then enter your username and password. Finally, tap the Connect button.

    After that, you should see the message Connected. A key icon or the word VPN will appear at the top of the screen.

    Connecting to an L2TP VPN Using an iPhone

    Let's make one thing clear right away. It is not possible to connect to VPN on iPhone smartphones using PPTP protocol. Apple has disabled the ability to connect to PPTP VPN servers in iOS 10 on iPhone, iPad and iPod Touch.

    In this example, we are using L2TP/IPsec VPN for the connection. Since L2TP is already configured, we now need to enable IPsec and perform a few additional settings.

    Первым делом перейдите в настройки L2TP сервера и разрешите использование IPsec + введите IPsec Secret (см. Скриншот 3, глава 7). После этого приступаем к настройке непосредственно IPsec.

    Attention! In this example we will configure L2TP/IPsec VPN for access from outside from any IP address (0.0.0.0.0/0). In your case it will be necessary to replace these numbers with other ones, if you want to restrict access.

    Let's create the "l2tp" group.

    Go to the IP → IPsec menu, and under the Policies tab, click the “+” button to add a new policy.

    Scr. Address - Enter your external IP address in the appropriate field.

    Dst. Address - remote IP from which the connection will be made.

    Group - Select the previously created group named "l2tp".

    Go to the Action tab.

    Action - encrypt

    IPsec Protocols - esp

    SA Scr. Address - Enter your external IP address.

    SA Dst. Address - Enter the remote IP address.

    Proposal - default

    Go to the Peers tab and click the "+" button to add a new peer.

    On the General tab, in the Address field, enter the remote IP address.

    Port - 500

    Auth. Method - pre shared key

    Exchange Mode - main l2tp

    Passive - tick the checkbox

    Secret - Encryption key

    Go to the Advanced tab and configure it as follows

    The last setting is the Proposal tab (set the following parameters)

    Now you can connect to the L2TP VPN server using your iPhone. Go to Settings and select General.

    Next, select the VPN tab.

    Добавьте новую конфигурацию VPN.

    After that, fill in the fields:

    Type - L2TP

    Description – any name convenient for you

    Server – the IP address of the server

    Account – the user account created in PPP → Secrets

    Password - created password

    Shared key - IP->IPsec->Peers->Secret

    Once the entry has been added, click connect.

    Once successfully connected, you will see the ‘VPN’ icon at the top of the screen.


    Was this answer helpful?

    Related Articles

    How to connect to Mikrotik via Winbox WinBox is an application for managing Mikrotik RouterOS, which uses a lightweight and... How to an additional account for the VPN Server To create an additional user, you need to go to the PPP menu → Secrets → + → New PPP Secret.... How to enable access to Winbox and other services through SSH Connect to the router via SSH and enter the command, but do not press Enter: # ip service Next,... Creating a backup for MikroTik To create a backup of the router settings, click on the "Files" button. In the opened "File List"... Account on Router OS We recommend our clients to create separate accounts for our technical support if needed. By...
    « Back

      Tag Cloud

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Support

    My Support Tickets
    Knowledgebase
    Open Ticket
    • Billing
      • Services
      • Invoices
      • Support
      • Knowledgebase
    • Services
      • Virtual servers
      • Dedicated servers
      • Colocation
      • Business hosting
      • Fairy Disk
      • Routers for rent
      • SSL-Certificates
    • News
    • Company
      • About Us
      • Contacts
      • User agreement
      • Privacy policy
    • Technologies

      RJ Network OÜ
      Reg.nr 14694302
      VAT ID: EE102147829

      Narva: P. Kerese tn 5, 20309
      Tallinn: Paul Pinna 8, 13615

    Telegram Chat

    +372 6647001

    info@fairyhosting.com

    Copyright © 2025 FairyHosting.com. All Rights Reserved.


    Loading...
    Loading...
    Choose language
    العربية
    Azerbaijani
    Català
    中文
    Hrvatski
    Čeština
    Dansk
    Nederlands
    English
    Estonian
    Persian
    Français
    Deutsch
    עברית
    Magyar
    Italiano
    Macedonian
    Norwegian
    Português
    Português
    Română
    Русский
    Español
    Svenska
    Türkçe
    Українська

    Generate Password

    Please enter a number between 8 and 64 for the password length