Skip to content

k2tzumi/tc-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traffic control proxy

This repository contains Dockerfile.
Squid-Based Traffic Control proxy.

Base Docker Image

Installation

  1. Install Docker.

  2. Install Docker Compose.

  3. Download from Dockerfile from GitHub
    git clone https://github.com/k2tzumi/tc-proxy.git

  4. Change docker-compose.yml
    Change build args. Choose network type.

      args:
# choose network type
        - TC_TYPE=(4g|4g-limit|3g|modem-56k|wifi-a|wifi-b|wifi-g|wifi-n|terrible|none)
  • Other Settings.
    Create tc command shell.
    See reference.
    tc/terrible.sh
  1. Dockerfile build.
    docker-compose build

  2. Run
    docker-compose up

  3. use proxy 

$ export http_proxy="http://`docker-machine ip`:3128"
$ export https_proxy="http://`docker-machine ip`:3128"

Docker hub repository

The Docker hub build can be found here: https://hub.docker.com/r/katzumi/tc-proxy/

About

Traffic control proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages