VPN Serve is giving us the facility to work from one network as a member of another network using public network.There are mainly 3 types of VPN servers: (PPTP), (L2TP) and Open VPN. We are using point to point.
yum install ppp
#rpm -ivh pptpd-1.3.4-2.rhel5.x86_64.rpm
net.ipv4.ip_forward = 1
Now create username & password file in
you can see there are two section
localip ——-This is for your VPN server IP.Add your using IP for this server.
remoteip —-any ip range what you want to provide.
now add VPN firewall rules…………………..
#iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
#iptables -A INPUT -i eth0 -p gre -j ACCEPT
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
#iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT
#iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT
#service iptables save
#service iptables restart
#service pptpd restart
Now If you are using router then do port forwarding by enable 1723 port for incoming request for your vpn server. In your router you can found a forwarding option.
ip address:(VPN SERVER IP) in which you are installing vpn server.
Now you can connect from another nework to your network.Check by using XP/WIN-7 computer.
If you need pptpd package you can download from below link…..