-
-
Notifications
You must be signed in to change notification settings - Fork 362
How to Setup Private IKEv2 IPSec MSCHAPv2 VPN on Windows Server to Connect From Android 12 Phone
Full tutorial link > https://www.youtube.com/watch?v=5jzmXwZgx5U
✔️ If you are frustrated since #L2TP/PPTP is gone after MIUI 13 Update, or after your phone's / tablet's / device's Android Version update, then this full guide tutorial is for you. If your phone, tablet, or mobile device's Android version is above 11 and you can't find the #PPTP VPN protocol to connect your private #VPN, then don't worry. Because I am explaining the easiest way to set up our VPN to connect from your device in this tutorial guide.
✔️ Point-to-Point Tunneling Protocol (PPTP) was so easy to set up on Windows Server and you were able to connect your private VPN easily through your phone. But this is not possible anymore since PPTP is removed from the majority of phones and mobile devices.
✔️ So instead of setting up our private VPN through features of Windows Server, we are going to use open source #SoftEther VPN Project.
✔️ In this video I will show you thoroughly from scratch:
1: Generate a new virtual server on Hyper-V and install Windows Server 2019 evaluation version.
2: Install SoftEther VPN Project on Windows Server 2019.
3: Make the necessary configuration of SoftEther.
4: Generate and export the #OpenVPN configuration file.
5: Modify the OpenVPN configuration file which ends with the .ovpn extension.
6: Install the OpenVPN app through Google Play Market and import the .ovpn configuration.
7: Connect to your VPN from your phone. I demonstrate this with my Xiaomi Poco X3 Pro - Android 12
8: With this methodology, we don't have to deal with complex and very hard-to-set-up IKEv2 / #IPSec #MSCHAPv2, #IKEv2 / IPSec #PSK, and IKEv2 / IPSec #RSA VPN protocols. These are the only available protocols on my mobile device.
00:00:00 Introduction
00:01:17 New Virtual Machine
00:03:28 Setting up Windows Server 2019
00:07:20 SoftEther Download & Installation
00:11:56 How to Setup OpenVPN on the Phone and Use VPN
✔️ The reason why I made this video is, it was so hard and there wasn't any up-to-date guide/tutorial for setting up your private VPN and connecting from your mobile phone.
✔️ The subtitle of the video is manually corrected so please watch with subtitles.
✔️ Please join Our Discord server for asking questions and have discussions: 🔗 https://discord.gg/rfttctFewW
✔️ Please follow us on Twitter: 🔗 https://twitter.com/SECourses
✔️ Please follow us on Facebook: 🔗 https://www.facebook.com/OfficialSECourses
✔️ If you are interested in programming our playlists will teach you how to program and code from scratch: 🔗 https://www.youtube.com/c/SECourses/playlists
1️⃣ Introduction to Programming Full Course with C# playlist ⭐⭐⭐⭐⭐
2️⃣ Advanced Programming with C# Full Course Playlist ⭐⭐⭐⭐⭐
3️⃣ Object Oriented Programming Full Course with C# playlist ⭐⭐⭐⭐⭐
4️⃣ Asp NETCore V5 - MVC Pattern - Bootstrap V5 - Responsive Web Programming with C# Full Course Playlist ⭐⭐⭐⭐⭐
5️⃣ Artificial Intelligence (AI) and Machine Learning (ML) Full Course with C# Examples playlist ⭐⭐⭐⭐⭐
6️⃣ Software Engineering Full Course playlist ⭐⭐⭐⭐⭐
7️⃣ Security of Information Systems Full Course playlist ⭐⭐⭐⭐⭐
Thumbnail : freepik : Gradient vpn illustration
-
00:00:00 Hello everyone, I am Dr. Furkan Gözükara. In this tutorial video,
-
00:00:04 I am going to show you the easiest way of setting up your own private virtual private
-
00:00:09 network a.k.a. VPN server or any Windows operating system. The tricky part is that after Android 12,
-
00:00:16 the Android operating system not anymore supports the older VPN protocols. Therefore,
-
00:00:22 now it is much harder to set up your own VPN that you can connect through your modern mobile phone.
-
00:00:28 So with this video, you will be able to set up your own dedicated IP having VPN by using any
-
00:00:34 virtual private server a.k.a. VPS or dedicated server. Here you are seeing the Hyper-V virtual
-
00:00:42 server manager of my dedicated server. I will generate a new virtual server and install a fresh
-
00:00:48 Windows Server 2019 trial operating system on it for demonstration purposes. So this is actually a
-
00:00:56 tutorial video that will teach you everything from scratch on a real server, not an emulation server.
-
00:01:02 I will also show you how to connect from a real phone by using my personal phone
-
00:01:07 instead of an emulator. Setting up your own VPN server has lots of advantages over using
-
00:01:13 free or commercial VPN services. So let's start with generating the virtual machine.
-
00:01:21 Let's say test VPN. You can use either generation. I will use the
-
00:01:30 most recent one. Let's give it 4,096 megabytes of memory and I will connect it to a virtual switch.
-
00:01:43 Everything looks good. Let's pick up the trial. This is an official Windows Server
-
00:01:53 2019 image that I have downloaded from Microsoft's official website. It is a trial version. Okay.
-
00:02:05 All right. Let's connect it. Okay, let's start it.
-
00:02:14 By the way,: if you already have set up your operating system,
-
00:02:19 then you can skip these parts in the video with forwarding.
-
00:02:25 All right. I will also pause video here for installation and we will continue.
-
00:02:31 All right. So the installation has been completed.
-
00:02:35 So let's copy paste our password to login into the freshly installed server.
-
00:02:48 All right, so let's say action.
-
00:02:57 All right, let's type the password. Okay, first of all, we need to enter our IP details so that
-
00:03:09 we can connect our Windows Server operating system through remote desktop connection and
-
00:03:19 also to connect the Internet. Okay, it is getting loaded. Let's enter our IP details.
-
00:03:34 You see, I'm still using a Hyper-V manager interface. Okay. By the way,: you can't just
-
00:03:48 enter any IP from your mind. You need to use the IP that your server provider is providing you.
-
00:03:57 I just noticed that I have entered IP incorrectly, it will be like this.
-
00:04:04 Now our Internet should come back. Yes, Internet is arrived and let's fix our remote desktop.
-
00:04:15 Okay, here I will allow it. Okay, now everything is ready and now I will
-
00:04:22 connect this machine through remote desktop management, like right now I am connected.
-
00:04:31 Okay, now we have connected our new server through remote desktop services.
-
00:04:41 All right, so the tricky part is with all those tutorials that you will see,
-
00:04:47 they are using the built-in features of Windows Server. However,
-
00:04:56 now that modern Android systems is not supporting anymore point-to-point tunneling protocol and in
-
00:05:06 many of the tutorial videos, I see that they are using PPTP to connect through their private VPNs.
-
00:05:15 And currently Android 12 in my phone supports only this protocol and IPsec IKEv2 MSCHAPv2 VPN server.
-
00:05:31 For modern clients, IPsec IKEv2 MSCHAPv2 is now the preferred VPN solution.
-
00:05:38 It is supported by Windows since Windows 7, Android since 11, macOS since 10.11, iOS since 9.
-
00:05:47 Both full tunnel and split tunnel configurations are possible. Split tunnel may be require
-
00:05:53 additional configuration on the client. Okay, my phone is supporting IKEv2 with
-
00:06:04 MSCHAPv2 VPN, however, it is really hard to set up this VPN on Windows Server operating system.
-
00:06:14 Therefore, we are going to use another tactic which is very easy to install.
-
00:06:21 We are going to use open source VPN system that we will install on our operating system which
-
00:06:31 that is called as SoftEther VPN project. It is open source. You can see their GitHub as well,
-
00:06:38 their source code as well in here. So it is totally safe. They have installation
-
00:06:44 file for Windows operating system. Okay, so let's install it in our freshly composed Windows Server.
-
00:06:58 I will change internet settings to download the file. Okay, let's see where is the download file.
-
00:07:11 Yeah, here, okay, yes,
-
00:07:16 okay, I have to add more permission, yeah, the file is here, let's download it.
-
00:07:41 Okay, let's install the downloaded file.
-
00:07:52 Okay, we need VPN server.
-
00:08:00 Okay, the installation has been completed, let's start the
-
00:08:04 server, let's double click it. It requires a password, okay, I have copy pasted the password,
-
00:08:13 password has been changed. Now we are selecting remote VPN server. Okay,
-
00:08:22 okay. Yes, these are not very important. This is our global IP. This is important.
-
00:08:30 Okay, and we are going to enable this one. This is important to connect through Android phone.
-
00:08:40 Okay, we don't need this, all right, yeah, we need to also compose a user which is important,
-
00:08:48 so let's say username test VPN, and we also need to set a password for it. Okay,
-
00:08:54 I'm setting the password right now, okay. Okay, the person has been generated, the user account.
-
00:09:06 Okay, there is one another tricky issue that I had to find with a lot of research which is,
-
00:09:16 which is virtual NAT, so we go to, we go back to our users screen.
-
00:09:27 Okay, double click here to go user screen, then you have, there is virtual NAT and virtual DHCP
-
00:09:34 server, secure NAT, you have to enable this, otherwise you won't be able to connect through
-
00:09:41 your phone. All right, I think this should be sufficient, we have enabled it, yes.
-
00:09:48 Okay, and one final thing, we are going to use OpenVPN which is another
-
00:09:56 open source software. Let's look for OpenVPN, and you see it's also another free software. Okay,
-
00:10:09 we are going to use OpenVPN application in the Play Store, let me also show you that,
-
00:10:21 to connect our VPN through our mobile phone. Okay, yes, this one. You need to install this one. Okay,
-
00:10:32 so on our server, we need to export our OpenVPN settings by clicking here, then you see there
-
00:10:40 is generate sample configuration, I will generate it into, let's say downloads folder, okay. Okay,
-
00:10:51 inside the generated zip file, only one file we need, which is OpenVPN remote access, okay.
-
00:11:02 Inside this file, we need to replace one thing before we can use it in our phone
-
00:11:12 in the OpenVPN application. We need to change this into our server IP, which is in my case.
-
00:11:26 Okay, so you need to change this into your server IP and just save it.
-
00:11:34 Okay, other than this, now you need to put this file into your mobile phone, and now I will move
-
00:11:42 to my mobile phone and show the rest there, to show you how to connect your set-up VPN.
-
00:11:52 Okay, now we are at my phone, I have downloaded the file into my phone. So first let me show
-
00:11:59 you my current IP address, as you can see it is the IP address that is provided through my ISP,
-
00:12:08 okay. Then I am opening OpenVPN application through
-
00:12:15 App Market, Play Store, then on this screen, we are going to import the generated file.
-
00:12:25 I have it in my downloads folder, we are going to click file, we are opening through browse
-
00:12:33 and we are importing that file, okay. Then we need to enter username and you can also
-
00:12:44 save your password, as just I did, as you can see, and then it is ready to connect through VPN
-
00:12:53 by just clicking it. Click continue there. Okay, now we are connected,
-
00:12:58 and now let's see if our VPN is working. Let's return back the browser and refresh the page.
-
00:13:08 Okay, as you can see, now we are connected through VPN, also at the right top of the Android phone,
-
00:13:15 you see there I was connected with VPN. Yes, as you can see on the laptop of the screen, the
-
00:13:25 VPN icon is alive, okay. Thank you very much for watching, please like and subscribe. Also leave a
-
00:13:34 comment. Let's quickly review, you are generating a user and setting it a password, and there you
-
00:13:43 are setting up the secure NAT, and then you can connect your VPN server with open VPN application,
-
00:13:55 it works flawlessly, it is so easy, all other options are so hard to do.
-
00:14:01 This is the easiest way that I have found. Okay, hopefully see you later.
