1、安装xl2tpd
make
make install
2、安装ppp
yum install ppp
3、配置xl2tpd.conf
[global]
ipsec saref = no
access control = no
port = 1701
[lac ccvpn]
name = ccgame
lns = 223.202.197.11
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
4、设置拨号配置文件
vim /etc/ppp/options.xl2tpd
remotename ccvpn
user "miwifi_test"
password "45eec17b0aefabf098816a1f738f5283"
#unit 0
lock
nodeflate
noauth
nobsdcomp
persist
nopcomp
noaccomp
maxfail 5
debug
ifname test1234
logfile /tmp/ppp.debug
5、启动xl2tpd
cd examples
xl2tpd -c ./xl2tpd.conf
6、开始拨号
echo 'c ccvpn' > /var/run/xl2tpd/l2tp-control
7、断开
echo 'd ccvpn' > /var/run/xl2tpd/l2tp-control
/sbin/tqos -f /etc/config/tqos.conf