【VPN】Centos6.5搭建VPN服务器(pptp)

技术
yum install -y ppp 
yum install -y pptpd
vi /etc/pptpd.conf
localip x.x.x.x
remoteip x.x.x.x-x
vi /etc/ppp/options.pptpd
ms-dns 8.8.8.8
ms-dns 8.8.4.4
vi /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
    x               *            x                            *
vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
sysctl -p
iptables -A INPUT -p tcp –dport 1723 -j ACCEPT
iptables -A INPUT -p tcp –dport 47 -j ACCEPT
iptables -A INPUT -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -s x.x.x.x/x -o ethx -j MASQUERADE
service iptables save
chkconfig iptables on
chkconfig pptpd on
service iptables restart
service pptpd restart
# tail -f /var/log/messages

  fuck\fuck\(\)\[\]\\\/\fuck”\\$1″fuck\/script>’)} fuck