• Linux VPN使用方法
  • obtain from your PPTP Server administrator:
    the IP address or host name of the server ($SERVER),
    the name you wish to use to refer to the tunnel ($TUNNEL),
    the authentication domain name ($DOMAIN),
    the username you are to use ($USERNAME),
    the password you are to use ($PASSWORD),
    whether encryption is required.
    In the steps below, substitute these values manually. For example, where we write $PASSWORD we expect you to replace this with your password.
    create or edit the /etc/ppp/options.pptp file, which sets options common to all tunnels:
    lock noauth nobsdcomp nodeflate
    create or add lines to the /etc/ppp/chap-secrets file, which holds usernames and passwords:
    $DOMAIN\\$USERNAME PPTP $PASSWORD *
    Note: if you are using a PPTP Server that does not require an authentication domain name, omit the slashes as well as the domain name.
    Note: if the passwords contain any special characters, quote them. See man pppd for more details.
    create a /etc/ppp/peers/$TUNNEL file:
    pty "pptp $SERVER --nolaunchpppd"
    name $DOMAIN\\$USERNAME
    remotename PPTP
    require-mppe-128
    file /etc/ppp/options.pptp
    ipparam $TUNNEL
    Note: if you do not need MPPE support, then remove the require-mppe-128 option from this file and /etc/ppp/options.pptp.
    start the tunnel using the pon command:
    pon $TUNNEL
    to further diagnose a failure, add options to the command:
    pon $TUNNEL debug dump logfd 2 nodetach
    Note: we have further information on enabling debug mode, and on diagnosing problems.
    stop the tunnel using the poff command:
    poff $TUNNEL
    VPN用户登录
    用户名:
    密码:
      忘记密码?

    主页 | 关于我们 | 隐私政策 | 服务条例 | 联系我们 Copyright © 2011 Maxhave. All Rights Reserved.