Centos下 pptpd vpn 分别使用不同出口IP

安装完成后,即可进相关配置,实现不用的用户名登录,使用不同的出口IP
修改/etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client        server        secret                  IP addresses
test                  pptpd      123                         192.168.0.98
保存
在chap-secrets中,我们设定用户test使用内网ip是192.168.0.98,在下一步中,我们将设定iptables 防火墙,使192.168.0.98使用转由222.222.222.98出去
iptables -t nat -A POSTROUTING -s 192.168.0.98 -j SNAT –to 222.222.222.98
重启pptpd服务
service pptpd restart
Posted on June 24, 2010 at 3:52 pm by admin · Permalink
In: Linux管理维护 · Tagged with: 

Leave a Reply