This repository contains the setup for an internal HTTP proxy using OpenVPN and Squid. The configuration and scripts are organized as follows:
📦Internal-HTTP-Proxy
┣ 📂config
┃ ┣ 📂openvpn
┃ ┃ ┣ 📜auth.txt
┃ ┃ ┗ 📜config.ovpn
┃ ┗ 📂squid
┃ ┃ ┗ 📜squid.conf
┣ 📜docker-compose.yml
┣ 📜Dockerfile.openvpn
┣ 📜Dockerfile.squid
┣ 📜entrypoint-openvpn.sh
┗ 📜entrypoint.sh
-
config/: Contains configuration files for OpenVPN and Squid.
- openvpn/: OpenVPN configuration files.
auth.txt
: Contains OpenVPN authentication credentials.config.ovpn
: OpenVPN configuration file.
- squid/: Squid proxy configuration file.
squid.conf
: Configuration for Squid proxy.
- openvpn/: OpenVPN configuration files.
-
docker-compose.yml: Defines the services, networks, and volumes for Docker Compose.
-
Dockerfile.openvpn: Dockerfile for building the OpenVPN container.
-
Dockerfile.squid: Dockerfile for building the Squid proxy container.
-
entrypoint-openvpn.sh: Entrypoint script for the OpenVPN container.
-
entrypoint.sh: Entrypoint script for the Squid container.
To set up the internal HTTP proxy, follow these steps:
-
Clone the repository:
git clone https://github.com/Netamaru/Internal-HTTP-Proxy cd Internal-HTTP-Proxy
-
Configuration:
- Update the OpenVPN configuration in
config/openvpn/config.ovpn
. - Update the Squid proxy configuration in
config/squid/squid.conf
.
- Update the OpenVPN configuration in
-
Authentication:
- Add your OpenVPN credentials to
config/openvpn/auth.txt
.
- Add your OpenVPN credentials to
-
Build and run the Docker containers:
docker-compose up -d --build
Once the containers are up and running, the Squid proxy will route traffic through the OpenVPN connection. Ensure that your client applications are configured to use the Squid proxy.
-
Check the container logs for any issues:
docker-compose logs
-
Ensure that the OpenVPN and Squid configurations are correct and properly formatted.
If you wish to contribute, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE
file for more details.