This repository contains Dockerfile.
Squid-Based Traffic Control proxy.
-
Install Docker.
-
Install Docker Compose.
-
Download from Dockerfile from GitHub
git clone https://github.com/k2tzumi/tc-proxy.git
-
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
-
Dockerfile build.
docker-compose build
-
Run
docker-compose up
-
use proxy
$ export http_proxy="http://`docker-machine ip`:3128"
$ export https_proxy="http://`docker-machine ip`:3128"
The Docker hub build can be found here: https://hub.docker.com/r/katzumi/tc-proxy/