Setup PPTP Vpn Server on CentOS 5.7

In This Scenario:–

Vpn Server ip add:192.168.0.100

Vpn Server Os : Cent os 5.7

Vpn Client ip add :- 192.168.0.100 to 192.168.0.250

 

1. Install the PPTP vpn  package form yum repo.

yum install ppp -y

2.Onec installed package.

go to vi /etc/pptpd.conf  file.

3.edit the pptpd.config file .

Search for localip and remoteip options.

4.edit localip option and remoteip.

localip :192.168.0.100(VPn Server ip

remoteip:192.168.0.101 – 192.168.0.250

and save the config file.

5.Open vi /etc/ppp/options.pptpd

search for ms-dns option.

edit the ms-dns = your dns ipadd.

save the file.

6.Open vi /etc/ppp/chap.secrets.

Add Vpn Username and Passwd

ex: xyz(user name) pptpd 12345(passwd)

Save the file.

7.service pptpd restart

8.chkconfig pptpd on,

9.log on to any windows box in the network.

10.click on my network place option.

11.select create new connection

12.select connect to the network at my workplace.

13.click on next,select virtual private network connection.

14.click on next.select Automatically dial option.

15.click on next.enter the vpn server ip add.

16.click on next.finish

17.right  click on your vpn network.select connect.

18.it will popup user name and passwd.

19.enetr the vpn username and passwd.

20. vpn will get connect to your company network.

 

 

 

 

 

Leave a Reply