VPN stands for Virtual Private Network. VPN is the name for virtual private networks that other networks use. In other words, after connecting to a VPN server, information in encrypted form passes through a virtual channel between the user and the server. Thus, your Internet provider cannot find out which site you visited, and therefore cannot block access to it.
Of course, access to blocked resources and applications is not the only reason a VPN is used. Another reason is to ensure the security of data transmission. Security experts recommend using a VPN to secure your device, for example on public Wi-Fi.
The question arises: how to create a VPN app for Android for free or low-cost? There are several ways to create a VPN connection.
How to Create a VPN on AndroidFirst of All – Install Third-Party VPN AppThe easiest and fastest way to create a VPN connection is to install a third-party application from the Play Market. Finding such an application in the Play Market will not be difficult, you just need to enter the corresponding request in the search bar. You can try all of them. But I recommend a VeePN VPN app Android, because they have their own encryption protocol. As a plus, this VPN service has servers all over the world.
As a rule, such applications have a fairly straightforward interface. The maximum that the user may need is to select the country where the server is located and click the "Connect" button.
If for some reason this method does not suit you, you can use the second one.
The Second Variant – Create Your Own VPN ServerThis method is suitable for more experienced users. Now get ready, you need to master the material and follow the example! You will also need to pay for the server.
How Do You Know Which VPN Provider You Can Trust?
When choosing a provider, it is better to consider those companies that have been on the market for a long time. This is an indicator of reliability: if the provider survived, then most likely it did not offend customers, did not steal data, and so on.
Is The Number and Location of Exit Nodes Important?
Usually, VPN providers offer multiple exit nodes to choose from in different countries, but in some cases, the exit node is selected automatically. What does this affect and should you care about it? Depends on what you need a VPN for.
If you want to access something that is not available in your country, make sure your provider provides the option to manually select an exit node. The automatic selection here will not work in 99% of cases: most often the server that is closest to you geographically is automatically selected, and it will most likely end up in the same country in which you are located.
How to Connect to the Server?
In order to somehow manage the server (command line), you need some kind of tool, in our case, it is the PuTTY utility, which must be downloaded and installed.
After installation, launch PuTTY, specify the IP address and press the OPEN button
Attention when entering a password, the line remains empty, as if you were not entering anything
· Next, you need to enter your login (root)
· Invented password
· Install PPTP VPN on the server
How to Launch a Server?
Now, after connecting the server, let's start configuring it, for this:
1. Enter the nano vpn.sh command to create the VPN installation script
2. Paste this VPN text into the command line:
#!/bin/bash
echo "Choose what you want to do:"
echo "1) Configure a new PoPToP VPN server AND create a new user"
echo "2) Create additional users (to existing VPN)"
read x
if test $ x -eq 1; then
echo "Enter the username to create (eg.. client1 or john):"
read u
echo "Enter the password for this user:"
read p
# get the VPS IP
ip = `ifconfig eth0 | grep 'inet addr' | awk {'print $ 2'} | sed s /.*: // `
echo
echo "installing and configuring PoPToP"
apt-get update
apt-get install pptpd
echo
echo "Create server config"
cat> / etc / ppp / pptpd-options << END
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 8.8.8.8
ms-dns 8.8.4.4
proxyarp
nodefaultroute
lock
nobsdcomp
END
# setting up pptpd.conf
echo "option / etc / ppp / pptpd-options"> /etc/pptpd.conf
echo "logwtmp" >> /etc/pptpd.conf
echo "localip $ ip" >> /etc/pptpd.conf
echo "remoteip 10.1.0.1-100" >> /etc/pptpd.conf
# adding new user
echo "$ u * $ p *" >> / etc / ppp / chap-secrets
echo
echo "IPv4 forwarding and adding this to autoload"
cat >> /etc/sysctl.conf << END
net.ipv4.ip_forward = 1
END
sysctl -p
echo
echo "Updating IPtables Routing and adding this to startup"
iptables -t nat -A POSTROUTING -j SNAT --to $ ip
# saves iptables routing rules and enables them on-boot
iptables-save> /etc/iptables.conf
cat> /etc/network/if-pre-up.d/iptables << END
#! / bin / sh
iptables-restore </etc/iptables.conf
END
chmod + x /etc/network/if-pre-up.d/iptables
cat >> / etc / ppp / ip-up << END
ifconfig ppp0 mtu 1400
END
echo
echo "Restart PoPToP"
/etc/init.d/pptpd restart
echo
echo "Setting up your own VPN is complete!"
echo "Your IP: $ ip? username and password:"
echo "Username (login): $ u ##### Password: $ p"
# runs this if option 2 is selected
elif test $ x -eq 2; then
echo "Enter the username to create (eg. client1 or john):"
read u
echo "enter the password for the new user:"
read p
# get the VPS IP
ip = `ifconfig venet0: 0 | grep 'inet addr' | awk {'print $ 2'} | sed s /.*: // `
# adding new user
echo "$ u * $ p *" >> / etc / ppp / chap-secrets
echo
echo "Additional user created!"
echo "Server IP: $ ip, Access Data:"
echo "Username (login): $ u ##### Password: $ p"
else
echo "Wrong choice, exit program..."
exit
fi
3. After inserting, press:
· Press the combination CTRL + O, and then ENTER
· Press the combination CTRL + X
4. Enter the sh vpn.shcommand and then run the script for installing and configuring a personal VPN
5. Press button 1 and Enter to create a new user, create a password.
6. After entering all the data, installation will take place, the VPN server for your Android is ready!
How to Connect Your VPN Server to Android Device?
Moving on to the last step, setting up a VPN connection on your Android!
To connect your VPN on Android phone:
1. Go to settings
2. In the "Wireless networks" section, select "MORE"
3. Go to VPN
4. Create a new connection
5. Enter the settings
6. Turn on VPN on Android
7. Check your IP on any free IP checker websites
8. You are fabulous!
In total, this setup of your own VPN for your Android will take a maximum of 50 minutes. This VPN is suitable not only for Android but also for computers.
Use your VPN for fun and write in the comments whether you have made your server or not.
Comments
Please log in or sign up to comment.