Linux/CentOS

[CentOS] PPTPD VPN Server

Destruction 2013. 1. 2. 11:07

1. rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel5/pptp-release-current.noarch.rpm

2. yum -y --enablerepo=poptop-stable install pptpd


3. yum -y install ppp


4. vi /etc/pptpd.conf

 

5. 맨밑으로 이동


6. #localip 192.168.0.1 -> local 192.168.71.129(Server IP)

   #remoteip 192.168.0.234-238, 192.168.0.245 -> remoteip 10.10.10.2-254(VPN 연결시 PC에 할당할 사설 IP)


7. vi /etc/ppp/chap-secrets


8. test(접속 할 ID), *(Server Name, *로 모든 서버 이름이 유효함을 나타냄), test(암호), *(IP 자동할당)


9. vi /etc/ppp/options.pptpd


10. require-mppe-128 -> #require-mppe-128


11. #ms-dns 10.0.0.1 -> ms-dns 168.126.63.1


12. chkconfig --level 2345 pptpd on


13. vi /etc/sysctl.conf


14. net.ipv4.ip_forward = 0 -> net.ipv4.ip_forward = 1


15.