Skip to content

Instantly share code, notes, and snippets.

@otw1248
Created October 17, 2016 02:40
Show Gist options
  • Save otw1248/4316e5f342a0c29eeaf98cc3abcef9c9 to your computer and use it in GitHub Desktop.
Save otw1248/4316e5f342a0c29eeaf98cc3abcef9c9 to your computer and use it in GitHub Desktop.
docker,vpn
http://weibo.com/ttarticle/p/show?id=2309404031238817078712
设置PPTP服务
sudo docker run -d --privileged --net=host \
-v {/path_to_file/chap-secrets}:/etc/ppp/chap-secrets \
mobtitude/vpn-pptp
PPTP 使用 /etc/ppp/chap-secrets 文件设置用户名和密码,所以你需要给docker容器提供这个文件,下面是这个文件的示例:
# Secrets for authentication using PAP
# client server secret acceptable local IP addresses
username * password *
设置L2TP/IPSec服务
下面命令行中被 { 和 } 引用的地方,需要替换一下:
sudo docker run -d -p 500:500/udp -p 4500:4500/udp -p 1701:1701/tcp \
-e PSK={共享密码} -e USERNAME={用户名}-e PASSWORD={密码}\
siomiz/softethervpn
设置Shadowsocks服务
下面命令行中被 { 和 } 引用的地方,需要替换一下:
sudo docker run -d -p 1984:1984 -s 0.0.0.0 -p 1984 \
-k {密码} -m aes-256-cfb \
oddrationale/docker-shadowsocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment