proxy-go

command module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2019 License: BSD-3-Clause Imports: 20 Imported by: 0

README

cascade

Build Status Quality Gate Status Coverage Coverage Status

Go proxy which can switch between Direct mode and Cascade mode Switch is done according to health check.

Installation

Just download the current release For running as daemon checkout the section in this readme

Install from source

checkout the source code and run

make install

Configuration

Configuration can be done by file or command line arguments

  • password : Password for authentication to a forward proxy
  • host : Address of a forward proxy
  • user : Username for authentication to a forward proxy
  • port : Port on which to run the proxy
  • health : Address which is used for health check if available go to direct mode (default: https://www.google.de )
  • health-time : Duration between health checks (default: 30 Seconds )
  • host-list : Comma Separated List of Host for which Proxy Redirect is used in Cascade Mode
  • config : Path to configuration yaml file. If set all other command line parameters will be ignored
  • version: Just shows the current version

Health Check

A temporary client tries to connect to a certain address regularly. The Cascade mode is active if health check fails.

Direct Mode

Normal http internet Proxy Mode.

Cascade Mode

Cascade Mode means that this proxy stands between the client and another Proxy. Basic Authentication can be enabled for Cascade Mode

Proxy redirect for Hosts

If in cascade mode, different Proxy redirects can be added by adding a Comma seperated list. These redirects changes HTTPS and HTTP Request according to the setup rules. The Requests can be send to another Proxy or directly.

Direct Configuration:

  • DIRECT Connection: eclipse
  • DIRECT Connection: azure->
  • REDIRECT Connection to other Proxy: google->test:8888

Systemd

If you want to use the provided service configuration, the program has to be moved to

/usr/local/bin

The configuration has to be moved to the following folder for Ubuntu:

/etc/systemd/system/

Afterwards, systemd has to be restarted as follows:

systemctl daemon-reload
systemctl start cascade

The logs can be viewed by using:

journalctl -f -u cascade

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL