Make Your Own VPN Pt.2 – Use It Correctly! Netflix, Torrenting, Wireguard, etc.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey everyone so as you can see i'm really going for that r slash male living space look i bought some new year christmas lights kind of thingy so i'm trying some new things for the videos just to switch it around and see what angle looks better and what setup looks better so let me know in the comments if you like this kind of setup right here so anyway in my last video of the series i showed you guys how to create your own diy vpn and told you about some of the advantages of that comparing to commercial vpns now using vpn even a diy one ain't rocket science obviously you just download the configuration file you download the client application so for example on windows we need to download openvpn connect then you put the configuration file in the app connect and voila now you're in netherlands or singapore or whatever however sometimes there are use cases where you need to use a vpn for some applications but not for other ones so for example you want to listen to spotify which is blocked in your country and you also want to play an online game at the same time and sure you can just connect your vpn system wide and spotify will play songs just fine but then the ping in your online game won't be as good as with the normal internet connection so in this case you would really prefer to use your vpn for spotify but not for dota 2 or league of legends or whatever or consider the following you want to share your favorite linux iso for example ubuntu 2004 lts with your friends and the best way to do it is obviously torrent but the thing is your isp doesn't like torrents at all he sees torrent traffic he thinks illegal pirated downloads right but you just want to share the free open source software with your friend so what you want to do in this case is you want to use your vpn connection for the touring clients but not for the rest of the traffic because you're fine with your isp connection for example and obviously there are many many more use cases in which you want to use your vpn for some applications and use your normal internet connection for all the other applications so while researching for that video i've been looking for some ways to route some new traffic through a vpn and turns out it's super easy on android kind of doable on linux and pretty much impossible on all the other operating systems on windows you can do that for ip addresses but not for applications which is kind of annoying because obviously you don't have a list of all the ip addresses that your application connects to right but i think it kind of came up with a good idea on how to do it on all major operating systems and for that we'll need docker which runs on mac os windows and linux the container will still run linux but let's not get too technical so let me try to explain the idea to you in a very simple way basically we will set up a docker container that contains a proxy this docker container will connect to our vpn and so every time you want to route your application through the vpn you will connect it to this proxy it's actually very convenient because none of the applications that i tested have this option of routing all the traffic through a certain interface but almost all of the applications have this option of connecting to your proxy and to set up all of that we're going to be using a docker container named arch the huge vpn the huge deluge deluge okay you know what i'm just going to say deli i'm sorry i am not american or english i have no idea how to pronounce this word and in order to set up all of that we're going to be using a docker container named arch the huge vpn this container includes privacy proxy and the huge torrent client and it also supports openvpn and wireguard and it also has a kill switch which will prevent the container from connecting to the internet if there is no vpn connection or if your vpn connection has been interrupted as a matter of fact the container won't even launch if there is no valid vpn configuration detected and at this point you might want to ask well why not just use shadow stocks or similar proxy on the server itself but the thing about shadow socks and all the other proxies is even though it's very good at circumventing censorship and great firewall it doesn't really encrypt your traffic so for that we'll need a vpn and having a proxy setup locally means that the unencrypted traffic will only travel inside our local network and then all the traffic that actually does leave your local network will be encrypted because we're using a vpn for the container so let me show you how to set it up on your machine right after i tell you about our today's sponsor lenode provides linux servers in different locations around the world and lets you set up a self-hosted vpn server for just five bucks a month their servers feature ddos protection and custom linux isos they even have arch linux and gen2 if you're into that kind of stuff and if you also want to get a hundred dollar credit for your vps check out the link in the description now back to the video so now we're on my server and the only thing that i did change in my setup since that video came out is switching to wireguard wireguard is a relatively new vpn technology that is now included with the linux kernel by default and it performs much better than openvpn according to the benchmarks on the internet moreover the script that we used in the previous video now has a wireguard version which is a hundred percent identical to the openvpn script so if you want to switch all you need to do is rerun the openvpn script choose the third option remove openvpn and then run the wireguard script it's going to ask you the same questions that we went through in the last video and at the end you'll find a configuration file in the home folder right next to the script i do want to warn you though that if you're running windows you might want to stick with openvpn my method of splitting vpn and isp traffic between applications involves windows subsystem for linux and no matter how hard i tried i was not able to make it work with wire guard microsoft's version of the linux kernel does not include wire guard like newer mainland kernels do and i just couldn't make it work with wire guard that being said openvpn worked just fine so if you're running windows do keep that in mind i'm going to start with windows because so far it's the most difficult os to set the whole thing up on linux is a breeze and mac is pretty much the same as windows with a few adjustments first things first you'll need to install windows subsystem for linux 2. for that open the start menu and type turn just that turn click on the first result turn windows features on or off here we need to enable two things virtual machine platform and windows subsystem for linux after that we need to restart windows to complete the installation press the restart now button now we need to update linux kernel after windows starts up open powershell and type wsl dash dash set dash default version 2 you're going to get a message with this link copy it open the browser and paste the link in the address bar after the page loads click on that link and run the exe file the installation should be pretty quick and now ready to install docker desktop [Music] go to the docker's website and press download for windows stable by the way i will leave all the links as well as the text version of this guide in the description once the download is finished launch the installer and after the installation is completed press on close and log out after you log back in you'll see the docker desktop screen but before configuring docker we need to install a wsl distro which we're going to use in order to configure our docker container personally i recommend ubuntu 2004 lts but you can choose whatever you want you can install alpine arch void whatever flows to your boat but i'll stick with good ol ubuntu so once that's installed click on launch and it's going to open a terminal window with the linux console type in your desired username and the password and after that you should get the bash prompt now we need to go back to docker desktop open the settings and untick the send usage statistics then go to resources wsl integration and enable ubuntu 2004 close the linux terminal window and open it again from the start menu now we need to create a few folders for our container you can place them wherever you want but i'm going to create a folder named docker in my main user folder and place all the stuff there the c drive is mounted to slash m t slash c folder on this distribution you can also do the same thing in windows explorer but i personally prefer the command line then we need to create a configuration file in the compose folder named docker-compose.yml don't worry i will put an example compose file in the description of the video so that you don't have to type everything yourself a few important things that you should pay attention to are vpn underscore prof set it to custom if you're using a self-hosted vpn there are also some other options such as pia or air vpn check out the full container documentation if you're interested vpn underscore client you can set it to either openvpn or wireguard once again i couldn't make wireguard work on windows so i'm going to stick with openvpn lan underscore network if you don't know the ip of your lan network open a powershell window and type ipconfig copy the first three numbers from the ipv4 address window and paste them to the lan network field in the compose file make sure to append a0 as the fourth number and add a slash 24 at the end in the volumes section you need to expose the config and downloads folders as well as the local time file to the container the latter will remain the same in any case no matter which folders you created but for the first two put the path to the folder on your local machine on the left and the path in the container on the right in this case the container path for the config folder is slash config and the downloads are located in slash data incomplete by default but you can put them anywhere and change the download path in the torrent client later once you're done save the file and quit and the last thing that we need to do before running the container is copy the vpn configuration file into our container folder so if you're using openvpn you need to create a folder named openvpn in the config folder and if you're using wireguard create a folder named wireguard and then put your vpn configuration file in the respective folder and now we're ready to run our container type docker dash compose up dash d in your case docker is going to download the container first but for me i already have it on my machine wait for about 10 seconds and if you did everything correctly you should be able to see privacy process listening on the port 8118 when you type in docker logs to the huge vpn if that's not the case you should go back and verify that you did everything correctly because most of the time the problem is either that you didn't put the path to the folders correctly or maybe your openvpn configuration file is missing so now that we have the container up and running let's check out the torrent client part first for that open up a browser window and go to localhost semicolon8112 you're going to get a password prompt and the default password here is deluge you can change it later in the settings if you want now as you can see we do have our ip address in the bottom right corner but just to be on the safe side let's download the tour guard check my p torrents it's a magnet link but it doesn't actually download anything the only thing it does is show you a p address in the torrent status and as you can see it shows the same ip address as deluge so we're pretty much good to go and as you can see i just started downloading ubuntu 2004 lts and if we go to the downloads folder in the explorer we can actually see the file which is great last thing i want to show you is the firefox extension called torrent control it lets you add magnet links and torrent files to deluge very easily using the right click menu you just need to specify the ip address and the port in our case it's localhost and 8112 very useful can't recommend enough using the proxy in firefox is very easy you just go to the settings type proxy in the search bar and put in the proxy's address localhost port 8118 and now the whole internet things were netherlands but firefox's proxy functionality is a little bit limited you can only use it for all websites or alternatively there is an option for a blacklist however there is an extension called proxy which lets you put in a white list as well so that you can maybe try and convince your isp that you're a normal person who only watches netflix and goes on facebook or something foxy proxy also supports regular expressions which is pretty neat and as you can see whoever.net thinks i'm from germany whereas google.com shows the ap of my vps in netherlands by the way if you're concerned about warsping or download speeds here's a comparison between the proxy and the wireguard client connected directly to the vpn as you can see the proxy actually has lower ping which is weird but there you go there are no issues with higher latency using that method and the last thing that i want to show is how to use your proxy in other applications let's say you want to listen to spotify but alas some songs just wouldn't play in your country no problem let's go to settings scroll down to the advanced settings and put in your proxy and after restarting spotify as we can see the songs start playing just fine and the rest of the applications will still use your normal internet connection unlike on windows on linux the whole process takes less than five minutes open a terminal type sudo pacman-s docker or sudo app get installed docker sudo user mod ag docker username sudo systemctl enable dash dash now docker then create the folders and write the compose file arch linux users will also have to install docker compose and i personally had to restart before i could launch the container it might not be the case for you but it was for me i'm going to be using wire guard this time around because it actually works unlike on windows i do want to mention though that before writing the container you should edit the wireguard configuration file and remove that bit for some reason the container can parse the config otherwise and will refuse to start then save the file quit and type docker dash compose up dash d congratulations you're done now on mac os our docker container is going to be running with slightly worse performance since ryzen linux is running natively and on windows it utilizes a very lightweight virtual machine a mac os is a pretty basic vm and that induces a certain performance penalty on the other hand you can actually use wire guards so that's something still the process is very similar to that on windows except you don't need to install windows subsystem for linux first you need to install docker desktop if you already have the homebrew package manager you can just type brew cask installed docker in the terminal otherwise you can download it from the docker website just like the windows version the rest is pretty much the same create the folders write the compose file copy the wire guard config and type docker compose up t in the terminal and there you go this is how you use vpn for selected applications on all three major operating systems so that's going to be for this video and i do want to thank my patrons ray piria mitchell valentino merrill and everyone else supports my channel thank you guys for watching and i'll see you in the next one goodbye
Info
Channel: Wolfgang's Channel
Views: 52,513
Rating: undefined out of 5
Keywords: wireguard, netflix, wireguard setup, wireguard vpn, wireguard iphone, wireguard ubuntu 18, netflix vpn, wire guard, secure, torrenting, virtual private network, nordvpn, internet, free software, create vpn on vps, your own vpn service, private internet access, vpn service virtual server, vpn service on a virtual server, linux, guide, libre, setup, source, linux vpn, software, your own vpn, open source, opensource, home network, open-source, command line, instructions
Id: 5Tls2LRKh-c
Channel Id: undefined
Length: 14min 38sec (878 seconds)
Published: Wed Nov 11 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.