Skip to content

Dockerfile to build a ShadowSocks (made in pure C with libev) server

Notifications You must be signed in to change notification settings

matttbe/docker-shadowsocks-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker ShadowSocks C (libev)

This repository contains a Dockerfile to build a ShadowSocks (made in pure C with libev) server.

By default, it will run on port 8388 and serve everybody with the password barfoo! and packets are encrypted with aes-256-cfb method. But you can change these settings by modifying the config.json file or by adding options when starting the docker.

How to pull already built images?

If you don't want to build it, simply pull the image:

docker pull matttbe/docker-shadowsocks-c

How to use your own config.json file?

Simply launch (docker run) the docker with this option: -v /PATH/TO/YOUR/config.json:/etc/shadowsocks-libev/config.json:ro

How to build?

By building it by yourself, you can change some options in the config.json file (e.g. if you don't want that the password will appear when launching ps command.

git clone https://github.com/matttbe/docker-shadowsocks-c.git
cd docker-shadowsocks-c
vim config.json ## if needed
docker build -t matttbe/docker-shadowsocks-c .

How to launch it?

You can simply launch it as any other docker image but don't forget to expose and redirect ports, e.g.: you can use the port 1234:

docker run -d -p 1234:8388 -P --name shadowsocks-c matttbe/shadowsocks-c -c /etc/shadowsocks-libev/config.json

You can also add options, e.g.

docker run -d -p 8388:8388 -P --name shadowsocks-c matttbe/shadowsocks-c -s 0.0.0.0 -p 8388 -l 1080 -k barfoo -m aes-128-cfb

About

Dockerfile to build a ShadowSocks (made in pure C with libev) server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages