Download the soruce from
http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-1.rhel5.1.i386.rpm
yum install -y ppp
wget http://poptop.sourceforge.net/yum/st...el5.1.i386.rpm
rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm
vi /etc/ppp/options.pptpd
ms-dns 208.67.222.222
ms-dns 208.67.220.220
vi /etc/ppp/chap-secrets
myusername pptpd mypassword *
vi /etc/pptpd.conf
localip 192.168.9.1
remoteip 192.168.9.11-30
vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
/sbin/sysctl -p
/sbin/service pptpd start
chkconfig pptpd on
/sbin/service iptables start
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.9.0/24 -j MASQUERADE
service iptables save
Saturday, November 7, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment