一键安装法:
使用脚本
先安装pptpd 下载地址:http://www.heyvpn.com/download/vpn_centos6.sh
出现问题:
可以连接,但无法上网:
[root@localhost server]# iptables -F INPUT
[root@localhost server]# iptables -F FORWARD
[root@localhost server]# iptables -F POSTROUTING -t nat
[root@localhost server]# iptables -t nat -F
iptables -A INPUT -p tcp -m tcp --dport 1723 -j ACCEPT
iptables -A FORWARD -s 192.168.0.0/24 -o eth1 -j ACCEPT
iptables -A FORWARD -s 192.168.0.0/24 -o eth1 -j ACCEPT
iptables -A FORWARD -d 192.168.0.0/24 -i eth1 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE
sysctl -p 报错:
modprobe bridge
lsmod | grep bridge
再安装l2tp 下载地址:http://www.heyvpn.com/dow