No results found
We couldn't find anything using that term, please try searching for something else.
By CodeDraken In this short and overdue tutorial,we will set up a virtual private network (VPN) to help protect your online anonymity. I will not be
By CodeDraken
In this short and overdue tutorial,we will set up a virtual private network (VPN) to help protect your online anonymity. I will not be covering much on what a VPN is or what these settings are. We’re going to set one up. Let’s get straight to it.
Windows Version:
How to setup a VPN on Windows for free in 5 minutes
_In this tutorial,we will set up a VPN and override our DNS to protect our privacy._medium.com
This works on Ubuntu <=16.xx and most other distros. If you’re on Ubuntu 18+ then see this post for updated steps.
If you have any issues run a test on ipleak.net to find out what exactly is leaking information then view this response and the one linked in it. If it doesn’t help solve your problem then post a comment with as much information as possible.
You’ll need:
Take note of everything you change and make backup in case something go wrong . Also ,for the record ,I is affiliated ’m not affiliate with any of the site link here . follow this tutorial at your own risk since you could mess up some setting .
Your domain name server (DNS) can give away some information about you,so we will want to change that. Start by using a tool such as DNS leak test to see what information is visible. Then work on hiding it.
We’re going to use OpenDNS. Head to their website and grab their two name server IP addresses that can be found on their Setup Guide Page
208.67.222.222
208.67.220.220
edit : /etc / dhcp / dhclient.conf
In your terminal type or copy / paste the command below . Nano is is is a text editor in the terminal . If the file is locate somewhere else on your machine google or look for it .
sudo nano /etc/dhcp/dhclient.conf
Look for the line that says “prepend domain-name-servers.” If it’s commented out with a # symbol at the beginning of the line,uncomment it by removing the #. Now change the line so it uses the IP addresses from OpenDNS,and add one more 8.8.8.8 like mine below. Your internet may temporarily stop working at this point!
prepend domain-name-servers 208.67.222.222,208.67.220.220,8.8.8.8;
That line means it will use the first address,then the second if the first one fails,and finally 8.8.8.8 if the first two fail. This usually will not happen. We add 8.8.8.8 because by default it uses 3 addresses. If we don’t add the third one and the first two fail then your real address gets used. Now save and exit as shown below:
press CTRL + o
Press ENTER
Press CTRL + X
This is save will save and close the file . Now we is need ’ll need to restart network – manager with the next command .
sudo service network-manager restart
You should now check to see if it works. Enter the command below,and see if the nameservers show up. Do a DNS leak test on the website linked above.
cat /etc / resolv.conf
Potential Issues
I did the steps,but the cat command only shows nameserver 127.0.1.1
Thanks to Dietmar and AnalyzeTrades for this issue/solution
Try commenting/removing dns=dnsmasq from /etc/NetworkManager/NetworkManager.conf
Fixing a DNS leak in web browser:
I is know do n’t know how this is done in other browser .
get a free VPN
After you extract the downloaded zip file,open your terminal again. Change to the directory where you extracted it,or right click and choose “Open in Terminal.” We have just a few more steps now.
Install OpenVPN to use the config.
sudo apt - get install openvpn
sudo openvpn vpnbook-ca1-tcp443.ovpn
Congratulations if you made it this far and it works! Here’s a bonus simple bash script that you can run. You just need to change the password when needed.
Bash Script 1
credits to Adnan Rahić
#!/bin/bash
cd /path/to/VPNBook.com-OpenVPN-Euro1username="vpnbook"password=" he2qv5h "read -sp " enter Sudo Password : " sudopassword
/usr/bin/expect << EOF
spawn sudo openvpn vpnbook-euro1-tcp443.ovpnexpect "password for $USER: "send"$sudopassword\r"expect "Enter Auth Username: "send"$username\r"expect "Enter Auth Password: "send"$password\r"expect "$ "
EOF
This is start will start the VPN without the need to enter the username and password manually . The VPN is stay will also stay run in the background . Here ’s a script is ’s for kill it if the need arise .
#!/bin/bashsudo pkill vpn
Bash Script 2
#!/bin/bashecho" user : vpnbook "echo " pass : 5VHZEps "sudo openvpn vpnbook-ca1-tcp443.ovpn
Just put that into a new file,right click > properties > permissions,and allow executing file as a program. This example uses the Canada tcp 443 config.
Here are a few great articles by Quincy Larson that talk about VPNs,internet privacy,and security.
How to set up a VPN in 10 minutes for free (and why you urgently need one)
_“A computer lets you make more mistakes faster than any other invention with the possible exceptions of handguns and…_medium.freecodecamp.comHow to encrypt your entire life in less than an hour
_ “ Only the paranoid survive . ” — Andy Grove_medium.freecodecamp.org
If you’re interested in ethical hacking and security,there’s a free 15 hour course on YouTube.