In this tutorial, I will use the hostname server1. These settings might differ for you, so you have to replace them where appropriate. Before proceeding further you need to have a minimal installation of Debian This might be a Debian minimal image from your Hosting provider or you use the Minimal Debian Server tutorial to set up the base system. All commands below are run as root user. Either log in as root user directly or log in as your normal user and then use the command.
Why Set Up Your Own VPN Server?
Where would you like to share this to?
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 Brian Boucheron. When you first create a new Debian 10 server, there are a few configuration steps that you should take early on as part of the basic setup. This will increase the security and usability of your server and will give you a solid foundation for subsequent actions. In this tutorial, we will learn how to log into our server as the root user, create a new user with admin privileges, and set up a basic firewall. If you have not already logged into your server, you may want to follow our guide on how to connect to your Droplet with SSH , which covers this process in detail. Accept the warning about host authenticity if it appears.
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.
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. Server Settings 3. Folder Defaults 4. General Options 5. Themes 6. Address Books 7.