A simple web proxy that supports:
- Serving a proxy auto-configuration file.
- Proxying through an SSH tunnel:
- SOCKS5 local client connections
- TCP local connections
Requirements:
- The
make
command (e.g. GNU make). - The Golang toolchain (version 1.22 or later).
In a shell, execute: make
(or make build
).
The build artifacts can be cleaned by using: make clean
.
The proxy is configured via a YAML configuration file (config.yaml
by default).
See config/config.yaml.example
for an example.
Using this Git repository, in a shell, execute: make run
or
Using the release tarball, installed in your PATH: bastion-web-proxy
Usage of bastion-web-proxy:
--config-location string The path to the directory where the configuration file is stored. (default ".")
--log-level string The logging level (trace, debug, info...) (default "info")
- Automatically reconnect the SSH connection in case of disconnect
- Automatically disconnect the SSH connection when idling
- Implement a basic status page
- Test client-side connection error handling
- Generate the proxy auto-configuration file from the configuration?