GithubHelp home page GithubHelp logo

no2key / docker-secureproxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from catatnight/docker-secureproxy

0.0 2.0 0.0 3.56 MB

Run a Secure Proxy (shrpx+squid3) in a Docker Container

License: MIT License

Shell 68.69% Python 31.31%

docker-secureproxy's Introduction

Requirement

  • Docker 1.0
  • A domain and an SSL certificate signed by a trusted CA, (e.g. StartSSL.com)
  • Google Chrome

Installation

  1. Build image (as root)

    $ docker pull catatnight/secureproxy
    $ wget https://raw.githubusercontent.com/catatnight/docker-secureproxy/master/manage.py
    $ chmod +x manage.py
  2. Save SSL certs (same directory as where manage.py is)

    $ mkdir -p certs
    $ cp {file.key,file.crt} certs/

Usage

  1. Create container and manage it (as root)
    • Uses a RADIUS server for login validation

       $ ./manage.py create -p 1234 --radius_server 6.7.8.9 --radius_secret radpass
    • Uses an NCSA-style username and password file

       $ ./manage.py create -p 1234 --ncsa_users user1:pwd1[,user2:pwd2,...]
    • General usage

       $ ./manage.py -h
       usage: manage.py [-h] [-p PROXY_PORT] [--radius_server RADIUS_SERVER]
       		 [--radius_secret RADIUS_SECRET] [--ncsa_users NCSA_USERS]
       		 {create,start,stop,restart,delete}
  2. Using a Secure Web Proxy with Chrome by three optional ways
    1. add command-line argument --proxy-server=https://<your.proxy.domain>:<proxy_port>

    2. proxy auto-config (PAC) file

      function FindProxyForURL(url, host) {
      	return "HTTPS <your.proxy.domain>:<proxy_port>";
      }
      
    3. chrome extension falcon proxy

Note

  • squid3 needs to use port 3128
  • accounting information (data transfer) will be sent to a RADIUS server everyday by squid2radius
  • swap needed on host machine since docker 0.10 (especially to DigitalOcean user)

Reference

docker-secureproxy's People

Contributors

catatnight avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.