Linux下pptpd客户端新发现

很简单,很实用

安装

 yum install pptp pptp-setup

启动

 # pptpsetup --help
pptpsetup --create <TUNNEL> --server <SERVER> [--domain <DOMAIN>]
          --username <USERNAME> [--password <PASSWORD>]
          [--encrypt] [--start]
pptpsetup --delete <TUNNEL>

Options:

* the name you wish to use to refer to the tunnel (you choose it),
* the IP address or host name of the server,
* the authentication domain name (optional),
* the username you are to use,
* the password you are to use,
* whether encryption is required,
* whether to start the connection after configuration.

Example,
pptpsetup --create test  --server ipaddress --username user --password  pass  --encrypt --start

结束

  killall pppd

路由

 route add -net 192.168.x.x netmask 255.255.255.x dev ppp0

 

你可能感兴趣的:(linux,职场,休闲,Linux下pptpd客户端)