Connecting via an HTTP proxy with authentication
In the previous recipe, a plain HTTP proxy was used to connect to an OpenVPN server. As a follow-up, in this recipe we will show how an OpenVPN connection can be set up when the HTTP proxy server requires authentication.
The HTTP proxy used in this recipe is a Linux-based Apache httpd
server with the mod_proxy
module loaded and configured for basic authentication.
Getting ready
We will use the following network layout:
Set up the client and server certificates using the first recipe from Chapter 2, Client-server IP-only Networks. For this recipe, the server computer was running CentOS 6 Linux and OpenVPN 2.3.12. The client was running Fedora 22 Linux and OpenVPN 2.3.11. Keep the configuration file, example8-9-server.conf
, from the Tuning TCP-based connections recipe from Chapter 8, Performance Tuning, as well as the client configuration file, basic-tcp-client.conf
, from the Server-side routing recipe from...