1 2 3 4 5 6 7 8 |
sudo apt-get install ppp-dev sudo apt-get install libevent-dev sudo apt-get install libssl-dev wget http://sourceforge.net/projects/sstp-client/files/sstp-client/1.0.10/sstp-client-1.0.10.tar.gz/download cd sstp-client-1.0.10/ ./configure --prefix=/usr --with-runtime-dir=/var/run/sstpc --with-pppd-plugin-dir=/usr/lib/pppd/`pppd --version 2>&1 |awk '{print $3}'` make make install |
1 |
vim /etc/ppp/peers/sstp-bj |
写入
remotename sstp-bj
linkname sstp-bj
ipparam sstp-bj
pty "sstpc server:port --nolaunchpppd --cert-warn "
name 改成用户名username
plugin sstp-pppd-plugin.so
sstp-sock /var/run/sstpc/sstpc-uds-sock
#usepeerdns
#require-mppe
refuse-eap
noauth
debug# adopt defaults from the pptp-linux package
file /etc/ppp/options.sstp
~
1 |
vim /etc/ppp/chap-secrets |
写入
用户名username sstp-bj "密码"
Simple SSTP Client WatchDog
1 |
screen -dmS SSTP bash -c "while true; do pon sstp-bj -detach; sleep 1; done" |