Installing and Configuring PPTP VPN on RHEL/CentOS 5
rpm -Uvh http://poptop.sourceforge.net/yum/stable/packages/pptp-release-4-6.rhel5.noarch.rpm
########################
yum install ppp pptpd
########################
vi /etc/pptpd.conf
localip <IP> ///////////////localip 202.51.177.3 (server IP eth0)
remoteip <client IP>////////remoteip 10.10.4.1-100
save and exit
##############################
vi /etc/ppp/options.pptpd
find ms-dns////////////// ms-dns 202.51.183.6
here put your dnsip
save and exit
#####################################
vi /etc/ppp/chap-secrets
pptpuser * pptpuser-password * //////soikot * 123456 *
if you bind ip address who will be able to connect then give IPaddress in place of second *
save and exit
####################################
/etc/init.d/pptpd restart
###########################
vi /etc/sysctl.conf
And set
net.ipv4.ip_forward = 1
################################################################################
configure your firewall (IPTABLES) as your requirment but must have to put
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
you may use this site as reference
http://www.gaggl.com/2012/06/installing-poptop-pppd-vpn-serveron-centos-6/
############################
chkconfig pptpd on
Reboot server
#########################################################
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/etc/init.d/pptpd start
No comments:
Post a Comment