Linux命令行vpn拨号

  1. rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  2. yum install -y pptp.x86_64 pptp-setup.x86_64
  3. pptpsetup --create vpn --server $VPN_Server_IP --username $User_Name --password $Password  --encrypt --start
  4. route add -net 0.0.0.0 dev ppp0
  5. #/usr/share/doc/ppp-x.x.x/scripts/pon
  6. #/usr/share/doc/ppp-x.x.x/scripts/poff
  7. ponpoff命令
  8. cp /usr/share/doc/ppp-2.4.5/scripts/poff /usr/sbin/
  9. cp /usr/share/doc/ppp-2.4.5/scripts/pon /usr/sbin/
  10. chmod +x /usr/sbin/poff
  11. chmod +x /usr/sbin/pon

linux Centos命令行拨号记录备忘。

强帖留名: