DEV Community

Discussion on: In Windows (10), how to configure global proxy settings for all network connections and not just 'the internet'?

Collapse
 
jochemstoel profile image
Jochem Stoel • Edited

Well Jochem,

Proxy configurations generally happen on a higher level. What you are looking for is a VPN. I suggest you have a look at OpenVPN, an open source VPN server.

Unlike a proxy, which only secures your torrent client or web browser, VPN (Virtual Private Network) encrypted tunneling secures 100% of all your internet access, replacing your local ISP routing for all applications. With a fully anonymous VPN server, you will enjoy enhanced security regardless of geographic location.

Install 'net-tools' and 'wget' packages

apt-get install net-tools wget

It is required that the time and date on the server are correct. VPN server and client certificates are generated with an expiration date 10 years into the future so they're unlikely to expire any time soon. But they are also generated with a start date, and if that date is in the future because the server has a date set in the future, then the certificates won't work until that date and you'll get some errors about that.

Download Access Server 2.1.12 for Ubuntu/Debian

wget http://swupdate.openvpn.org/as/openvpn-as-2.1.12-Ubuntu16.amd_64.deb

Install downloaded package on Debian/Ubuntu:

dpkg -i openvpn-as-2.1.12-Ubuntu16.amd_64.deb

Configuration

Initially a single administrative user is added to the system. But it has no password set and therefore cannot be used yet. To use it a password must be set first as you can see below.

Please enter "passwd openvpn" to set the initial
administrative password, then login as "openvpn" to continue
configuration here: https://xxx.xxx.xx.xxx:943/admin

To reconfigure manually, use the /usr/local/openvpn_as/bin/ovpn-init tool.

+++++++++++++++++++++++++++++++++++++++++++++++
Access Server Web UIs are available here:
Admin  UI: https://xxx.xxx.xx.xxx:943/admin
Client UI: https://xxx.xxx.xx.xxx:943/
+++++++++++++++++++++++++++++++++++++++++++++++

Set password for openvpn user

User openvpn is a regular Linux user like root so we can change the password like so.

passwd openvpn

Now go to the admin panel on xxx.xxx.xx.xxx:943/admin (where xxx.xxx.xx.xxx is your server IP) and login using the password you just set.
OpenVPN login screen

Download the client application for Windows. (I believe you said you were using Windows 10)
OpenVPN download client screen

Installing the client will not take more than 5 seconds. Once installed and running, an OpenVPN icon will appear in your taskbar system tray.
Simply connect to your server IP as user openvpn and the password you set in the command line.

Voila! You are connected to your VPN.

I hope this helps you. By all means let me know if you have any questions. After all that's how helpful we all are here on dev.to

Read more