Âü°í :
- http://poptop.sourceforge.net/dox/redhat-howto.phtml
- http://pptpclient.sourceforge.net/#overview
http://poptop.sourceforge.net/yum/beta/packages/ (packages here require ppp 2.4.4)
http://poptop.sourceforge.net/yum/stable/packages/ (packages here require ppp 2.4.3, except FC6, FC7, RHEL5, all of which have ppp 2.4.4 already)
¡Ø FC6ÀÌÈÄ ¹öÀü¹× RHEL5 ÀÌ¿Ü¿¡´Â PPP 2.4.3 À» Áö¿øÇÕ´Ï´Ù.)
Å×½ºÆ® ¿î¿µÃ¼Á¦ : CentOS release 5.4 (Final) / 2.6.18-164.el5PAE
YUMÀ» ÅëÇؼ ´Ù¿î·Îµå(¸µÅ©ÁÖ¼Ò /rhel5/ ºÎºÐ¿¡ µû¶ó¼ ¿î¿µÃ¼Á¦º°·Î Áö¿ø)
¡Ø Ä¿³Î 2.6.15 ÀÌÈÄ¿¡¼´Â mppe ¸ðµâÀÌ ±âº»À¸·Î Æ÷ÇԵǾîÀֱ⿡ mppe ¼³Ä¡´Â »ý·«
¼³Á¤ÆÄÀÏ
[root@localhost ~]# cat /etc/pptpd.conf
option /etc/ppp/options.pptpd
logwtmp
localip 10.0.0.1
remoteip 10.0.0.2-255 # ºÐ¹èÇØÁÙ ¾ÆÀÌÇÇ ´ë¿ª
[root@localhost ~]# cat /etc/ppp/options.pptpd
debug
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
ms-dns 168.126.63.1
proxyarp
nodefaultroute
lock
nobsdcomp
[root@localhost ~]# cat /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
ÀڽžÆÀ̵ð * Æнº¿öµå *
¡Ø º¸½Ã´Ù Çǽà PPTP VPNÀº °ü¸®ÀÚ·Î ÇÏ¿©±Ý Æнº¿öµå ³ëÃâÀÌ µÈ´Ù´Â ´ÜÁ¡ÀÌ ÀÖ´Ù...
ÀÌÁ¦´Â ip_forward ±â´ÉÀ» È°¼ºÈ ½ÃÅ°°í ÀÎÅÍ³Ý °øÀ¯¸¦ À§ÇÑ ¸¶½ºÄ¿·¹À̵ùÀ» ½Ãŵ´Ï´Ù.
[root@localhost ~]# echo "1" > /proc/sys/net/ipv4/ip_forward
Or
[root@localhost ~]# /etc/sysctl.conf
net.ipv4.ip_forward = 1
[root@localhost ~]# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ÀÌ·Î½á ¼¹ö¼³Ä¡ÀÛ¾÷Àº ³¡ÀÌ´Ù...
ÀÌÁ¦´Â Ŭ¶óÀ̾ðÆ®¿¡¼ ÇØ´ç VPN ¼¹ö¸¦ ÅëÇؼ ³×Æ®¿÷ÀÌ µÉ¼ö ÀÖµµ·Ï ¼³Á¤ÇÏ´Â ºÎºÐÀÌ´Ù.
1. ¹ÙÅÁȺ¯ ³» ³×Æ®¿öÅ© ȯ°æ ¼Ó¼º Ŭ¸¯
2. »õ ¿¬°á ¸¸µé±â
3. ³×Æ®¿öÅ© ¿¬°áÇü½Ä ÁöÁ¤
4. ³×Æ®¿öÅ© ¿¬°á
5. ¿¬°á À̸§ ÁöÁ¤
6. VPN ¼¹ö ¼±ÅÃ
7. ¿Ï·á
ÀÌÁ¦ ¼³Á¤ÇÑ ·Î±×ÀÎ ¾ÆÀ̵ð¿Í Æнº¿öµå¸¦ °¡Áö°í Á¢¼ÓÇÏ¸é µÈ´Ù.
ÇØ´ç ÀåÄ¡°¡ È°¼ºÈµÇ¸é¼ ÀÌÁ¦´Â ¸ðµç ³×Æ®¿÷ÀÌ VPN ¼¹ö¸¦ ÅëÇؼ Åë½ÅµÈ´Ù.
Server ³×Æ®¿öÅ© ȯ°æ (ppp0 ÀåÄ¡°¡ È°¼ºÈ)
Client ³×Æ®¿öÅ© ȯ°æ