×××服务器:
操作系统:ubuntu 9.04
IP:192.168.1.20
子网掩码:255.255.255.0
网关:192.168.1.1
DNS:192.168.1.2
客户端:
操作系统:
Windows xp
IP:192.168.1.10
子网掩码:255.255.255.0
网关:192.168.1.1

sudo apt-get install pptpd
修改配置文件:/etc/pptpd.conf
Localip 192.168.0.2
Remoteip 192.168.0.234-238

修改配置文件:/etc/ppp/chap-secrets
“***” “pptpd” “123456” “*”
User          password ip /etc/ppp/options.pptpd
修改配置文件:
Refuse-ap
Refuse –chap
Refuse-mschap  拒绝以上验证

设置IP转发
Echo l>/proc/sys/net/ipv4/ip_forward

关闭防火墙或开启端口
service iptables stop

 重新启动PPP服务
Service pptpd restart
 
 
外网访问要做端口映射




http://cio.ctocio.com.cn/linux/235/7732235.shtml
http://unix-cd.com/vc/www/22/2009-02/13428.html