yum -y install ppp
rpm -Uvh xl2tpd-1.2.0-1.fc10.i386.rpm
cat > /etc/xl2tpd/xl2tpd.conf <
[lac vpn1]
name = user
lns = 192.168.2.1
pppoptfile = /etc/ppp/peers/vpn1.l2tpd
ppp debug = yes
EOF
cat > /etc/ppp/peers/vpn1.l2tpd <
remotename vpn1
user "user"
password "pass"
unit 0
lock
nodeflate
nobsdcomp
noauth
persist
nopcomp
noaccomp
maxfail 5
debug
EOF
service xl2tpd restart
echo 'c vpn1' > /var/run/xl2tpd/l2tp-control
echo 'd vpn2' > /var/run/xl2tpd/l2tp-control
阅读(4118) | 评论(0) | 转发(1) |