运行pon example连接
运行poff example断开连接
#!/bin/shyum install -y ppp pptp pptp-setup### pptpsetup --create example --server 10.2.3.4 --username user1 --password password1# vi /etc/ppp/chap-secrets# vi /etc/ppp/peers/example# cp /usr/share/doc/ppp-2.4.5/scripts/pon /root/bin/pon# cp /usr/share/doc/ppp-2.4.5/scripts/poff /root/bin/poff# 测试# pppd call example logfd 2 nodetach debug dump refuse-eap require-mppe persist### 根据需要添加路由cat > /etc/ppp/ip-up.local <<"EOF"#!/bin/bash/sbin/route add -net 10.3.0.0/16 dev $1EOFcat > /etc/ppp/chap-secrets </etc/ppp/peers/example <