Whenever I install a Linux distro on my computer and want to quickly unblock websites or hide my IP address, I install OpenConnect client and connect to the server with just two lines of commands:. You can easily install it with your package manager. To follow this tutorial, you will need a VPS Virtual Private Server that can access blocked websites freely Outside of your country or Internet filtering system. You also need a domain name. I registered my domain name from NameCheap because the price is low and they give whois privacy protection free for life. Then use apt to install the ocserv package from Debian repository. You can check its status with:. For example, if you use UFW , then run the following commands. I recommend using the standalone or webroot plugin to obtain TLS certificate. Set DNS A record for vpn.
Setting Up the Server
Where would you like to share this to?
Following will be a few questions for primary configuration so be careful. Full qualified hostname FQDN of the server, eg server1. For more information, see interfaces 5. The loopback network interface auto lo iface lo inet loopback The primary network interface allow-hotplug eth0 iface eth0 inet dhcp auto eth0 iface eth0 inet static address Organization Preferences 2.
Get the latest tutorials on SysAdmin and open source topics. Hub for Good Supporting each other to make an impact. Write for DigitalOcean You get paid, we donate to tech non-profits.
Get the latest tutorials on SysAdmin and open source topics. Hub for Good Supporting each other to make an impact. Write for DigitalOcean You get paid, we donate to tech non-profits. By Justin Ellingwood and Mark Drake. Want to access the Internet safely and securely from your smartphone or laptop when connected to an untrusted network such as the WiFi of a hotel or coffee shop? A Virtual Private Network VPN allows you to traverse untrusted networks privately and securely as if you were on a private network. The traffic emerges from the VPN server and continues its journey to the destination. When combined with HTTPS connections , this setup allows you to secure your wireless logins and transactions. You can circumvent geographical restrictions and censorship, and shield your location and any unencrypted HTTP traffic from the untrusted network.