# vi /etc/ppp/chap-secrets
username PPTP password *
# vi /etc/ppp/peers/myvpn
pty "pptp vpn.domain.com --nolaunchpppd"
name username # 對應到 /etc/ppp/chap-secrets
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam myvpn
連接:
# pon myvpn
或
# pon myvpn debug dump logfd 2 nodetach # with debug
添加路由表:
# route add -net 192.168.8.0/24 dev ppp0
# route add default gw 192.168.8.254 device ppp0
Reference :
PPTP Client
Linux configure point to point tunneling PPTP VPN client for Microsoft PPTP vpn server
沒有留言:
張貼留言