[°¡»ó¼­ºñ½º]RedHat 6.0±â¹Ý °¡»óÀ¥-¸ÞÀÏ-FTP¿î¿µÇϱ⠱èÄ¥ºÀ 1999-08-18 : 1Â÷ (ÃÖÃÊÀÛ¼º) 1999-09-16 : 2Â÷ 1999-10-09 : 3Â÷ 1999-11-29 : 4Â÷ (¸ÞÀϼ­¹ö¿¡ ´ëÇÑ DNS MX ·¹ÄÚµå ¼öÁ¤) 1999-12-08 : 5Â÷ (°¡»ó FTP Anonymous ¼³Á¤ ¼öÁ¤) 2000-02-22 : 6Â÷ (³»¿ë º¸¿Ï ¹× FAQ Ãß°¡) --------------------------------------------------------------- ÀÌ ±ÛÀÇ ³»¿ëÀº 1´ëÀÇ ¸®´ª½º¹Ú½º¿¡ °°Àº IP ÁÖ¼Ò, ¼­·Î ´Ù¸¥ IP ÁÖ¼Ò, °°Àº µµ¸ÞÀÎ, ¼­·Î ´Ù¸¥ ¿©·¯°³ÀÇ µµ¸ÞÀο¡ ´ëÇؼ­ °¡»óÀ¥-¸ÞÀÏ-FTP ¿î¿µÀ» ´Ù·ç ´Â ±âÃÊÀûÀÌ°í ¿¹½ÃÀûÀÎ ¹æ¹ýÀ¸·Î ¼­¼úÇÑ ³»¿ëÀÔ´Ï´Ù. ±×¸®°í ³»ºÎ IP ÁÖ¼Ò¸¦ ÀÌ¿ëÇÏ¿© Å×½ºÆ®¿¡ ¼º°øÇÑ ¿¹ÀÔ´Ï´Ù. --------------------------------------------------------------- ÀÌ ¹®¼­´Â HTML ¹®¼­·Îµµ Áö¿øÇÕ´Ï´Ù. http://linuxer.suwon.ac.kr/linux_docs/virtual_services/ http://urban.suwon.ac.kr/~san2/linux_docs/virtual_services/ ÁÖ) °³³äÀûÀÌ°í ¿ø·ÐÀûÀÎ ³»¿ëÀº ¸ðµÎ ºüÁ®ÀÖ½À´Ï´Ù. À¥»ó¿¡ ¸¹Àº ¹®¼­°¡ Á¸ÀçÇÏ ¹Ç·Î ÀÌ·± ¹®¼­¸¦ ã¾Æ ¸ÕÀú ½ÀµæÇÏ°í º» ¹®¼­¸¦ Àо°¡¸é ½±°Ô ÀÌÇØÇϸ® ¶ó »ý°¢µË´Ï´Ù. ¶ÇÇÑ ÀÌ ¹®¼­´Â ÁÁÀº ¹®¼­°¡ ¾Æ´Õ´Ï´Ù. ´Ù¸¸ ÇϳªÀÇ ¿¹½Ã ÀÏ »ÓÀÔ´Ï´Ù. ±×·¯³ª ¿¹½Ã¸¦ ÅëÇØ ÀÚ½ÅÀÇ »óȲ¿¡ ¸Â°Ô ¼öÁ¤ÇÏ¸é ´©±¸³ª ½±°Ô °¡»óÀ¥-¸ÞÀÏ- FTP¸¦ ¿î¿µÇϸ®¶ó »ý°¢Ç߱⠶§¹®¿¡, ±×¸®°í º»ÀÎÀÇ ½Ç·ÂÀÌ ÇüÆí¾ø´Â °ü°è·Î ¿ø·ÐÀûÀÌ°í °³³äÀûÀÎ ³»¿ëÀ» ¼³¸íÇÏÀÚ¸é ¾î¿ ¼ö ¾øÀÌ µµ¿ë(?)Çؾ߸¸ Çϱ⠶§¹®¿¡ °³³äÀûÀÌ°í ¿ø·ÐÀûÀÎ Á¤ÀÇ´Â ¸ðµÎ »°½À´Ï´Ù. µû¶ó¼­ ÀÌÇÏ ¼­¼úµÈ ³»¿ëÀº ¸®´ª½º Àü¹®¼­ÀûÀ̳ª ±âÁ¸¿¡ Á¸ÀçÇÏ´Â ¹®¼­¸¦ ±× ´ë·Î ¹è³¢´Â ±×·± ¿ì¸ÅÇÑ ÁþÀº ÇÏÁö ¾ÊÀ» °ÍÀ̸ç ÀÌ·± ¹®¼­ÀÇ Áö½ÄÀ» ¹ÙÅÁÀ¸·Î º»ÀÎÀÌ Á÷Á¢ Å×½ºÆ®ÇÏ°í ´À³¤ Á¡À» Åä´ë·Î ¼­¼úÇØ ³ª°¥ °ÍÀ̸ç, ¼³»ç º»ÀÎÀÇ Áö½ÄÀÌ ¸ðÀÚ¶ó ±âÁ¸ÀÇ ¹®¼­ÀÇ ÈûÀ» ºô¸± °æ¿ì¿¡´Â Á¤È®ÇÑ Ãâó¸¦ ¹àÈ÷°í ±â¼ú ÇØ ³ª°¥ °ÍÀÔ´Ï´Ù. ÀÌÇÏ °ü·ÊÀûÀ¸·Î "°æ¾î" »ý·«ÇÕ´Ï´Ù. --------------------------------------------------------------- ¸ñÂ÷ 1. µé¾î°¡±â Àü¿¡ 1-1. »ó¼¼ÇÑ ¼¼ºÎºÐ¾ß ³»¿ë(Âü°íÀÚ·á)-¸µÅ© 1-2. ³ªÀÇ Å×½ºÆ® ȯ°æ ¹× ¸ñÇ¥ 2. DNS(µµ¸ÞÀÎ ³×ÀÓ¼­ºñ½º) ¼³Á¤ 2-1. Bind ¼³Ä¡Çϱâ 2-2. ³ªÀÇ ¸ñÇ¥¿¡ ¸Â°Ô DNS ¼³Á¤ 2-2-1. /etc/named.boot 2-2-2. /etc/named.conf 2-2-3. /var/named/named.ca 2-2-4. /var/named/named.local 2-2-5. /var/named/zone-10.168.192 2-2-6. /var/named/zone-linux.ac.kr 2-2-7. /var/named/zone-linuxer.com 2-2-8. /var/named/zone-linuxer.net 2-2-9. /var/named/zone-sonamu.co.kr 3. °¡»ó À¥¼­¹ö (¾ÆÆÄÄ¡ 1.3.9 °æ¿ì) 3-1. ¾ÆÆÄÄ¡¼³Ä¡(»ý·«) 3-2. ¾ÆÆÄÄ¡ ¼³Á¤ÆÄÀÏ(httpd.conf) 4. °¡»ó ¸ÞÀϼ­¹ö 4-1. sendmail ¼³Ä¡Çϱâ 4-2. qpopper ¼³Ä¡Çϱâ 4-3. /etc/sendmail.cf 4-4. /etc/sendmail.cw 4-5. /etc/sendmail.cm 4-6. /etc/mail/access 4-7. /etc/mail/virtusertable 5. °¡»ó FTP¼­¹ö (ProFTPd) 5-1. ProFTPd ¼³Ä¡Çϱâ 5-2. /etc/proftpd.conf 6. ÀÚÁÖ Áú¹®µÇ´Â ³»¿ë(3Â÷ º¸¿Ï½Ã Ãß°¡) 7. ¸¶Ä¡¸ç --------------------------------------------------------------- 1. µé¾î°¡±â Àü¿¡ 1-1. »ó¼¼ÇÑ ¼¼ºÎºÐ¾ß ³»¿ë(Âü°íÀÚ·á)¸µÅ© - Net-3 HOWTO(KLDP) - Network Adminstrator Guide(KLDP) - ±èº´Âù(Àû¼ö)´ÔÀÇ ³×ÀÓ¼­¹ö°­ÁÂ(KLDP) - ±è½Â¿µ´ÔÀÇ DNS(µµ¸ÞÀγ×ÀÓ ¹× ³×ÀÓ¼­¹ö±¸Ãà)(KLDP) - DNS HOWTO(KLDP) - ¸®´ª½º¿¡¼­ IP Aliasing ¼¼ÆÃÇϱâ mini HOWTO(KLDP) - Sendmail À̾߱â(KLDP) - Virtual Services HOWTO(KLDP) - °¡»óÀ¥ mini HOWTO(KLDP) - ¾ÆÆÄÄ¡ 1.3 ¸Þ´º¾ó Virtualhost(¿µ¹®) - Proftpd Configuration(¿µ¹®) - Proftpd Reference (¿µ¹®) - POP3 daemon ¼³Ä¡ ¹× È°¿ë°¡À̵å -³×¹ø° ÆÇ(¹ÚÀçÈ£´Ô ȨÆäÀÌÁö) - ±èÁ¤±Õ´ÔÀÇ È¨ÆäÀÌÁö 1-2. ³ªÀÇ Å×½ºÆ®È¯°æ ¹× ¸ñÇ¥ [¼­¹öȯ°æ] - OS: ¾ËÂ¥¸®´ª½º6.0(Ä¿³Î2.2.12) - 3Com 900B-TPO Ethernet Card 1°³ - Intel eepro 10 ISA Ethernet Card 1°³ - apache 1.3.9-1kr - Sendmail 8.9.3-10kr - qpopper 3.0 - bind 8.2-6 - Proftpd 1.2.0Pre6(99.09.11ÀÏÀÚ) - »ç¿ëÇÑ IP ÁÖ¼Ò: 192.168.10.3~5 (³»ºÎIP ÁÖ¼Ò) [Ŭ¶óÀ̾ðƮȯ°æ] - OS: À©98 - 3Com 905B-TPO Ethernet Card 1°³ - »ç¿ëÇÑ IP ÁÖ¼Ò: 192.168.10.11 (³»ºÎIP ÁÖ¼Ò) [³ªÀÇ ¸ñÇ¥] - ¼­¹ö : ¸®´ª½º¹Ú½º1´ë - »ç¿ëÇÒ IP ÁÖ¼Ò : 192.168.10.3 192.168.10.4 192.168.10.5(3°³) - ¾ÕÀ¸·Î °è¼Ó µµ¸ÞÀÎÀÌ Ãß°¡½Ã¿¡´Â 192.168.10.5 Çϳª¸¸ »ç¿ëÇÒ ¿¹Á¤ÀÌ´Ù. - linux.ac.kr µµ¸ÞÀÎÀº Çö ¸®´ª½º¹Ú½ºÀÇ ÁÖ µµ¸ÞÀÎÀÌ°í game(°èÁ¤ : game) È£½ºÆ®¸¸ Á¦¿ÜÇÏ°í ¸ðµÎ root°¡ °ü¸®ÇÑ´Ù. game È£½ºÆ® °ü¸®ÀÚÀÎ gameÀº À¥ ¹®ÀÇ¿¡ ´ëÇÑ ¸ÞÀÏÀ» gamedori@hanmail.net·Î »ç¿ëÇÏ°íÀÚ ÇÑ´Ù. - linuxer.com µµ¸ÞÀÎÀ» »ç¿ëÇÏ´Â ÀÚ´Â °í°´À̸ç 2°³ÀÇ À¥È£½ºÆ® (www. stock)¸¦ ¿î¿µÇϱ⸦ ¿øÇÏ°í 'stock' À¥È£½ºÆ® ´ëÇÑ À¥¹®ÀÇ´Â º°µµ·Î stock@linuxer.comÀ¸·Î ¹Þ°í ½Í¾îÇϸç Anonymous FTPµµ ¿î¿µÇÏ°íÀÚ ÇÑ ´Ù. °èÁ¤Àº comÀ̸ç 1¸íÀÌ °ü¸®ÇÏ°íÀÚ ÇÑ´Ù. - linuxer.net µµ¸ÞÀÎÀ» »ç¿ëÇÏ´Â ÀÚ´Â °í°´ÀÌ¸ç ¿ª½Ã 2°³ÀÇ À¥È£½ºÆ® (www. meeting)À» ¿î¿µÇÒ °èȹÀÌ°í meeting À¥È£½ºÆ®ÀÇ ÀÌ¿ëÀÚ°¡ ¸¹¾Æ 'www' À¥È£½ºÆ®ÀÇ AdminÀÌ °ü¸®ÇÒ ¼ö ¾ø¾î ´Ù¸¥ »ç¶÷ÀÌ °ü¸®Çϱ⸦ ¿øÇÑ´Ù. µû¶ó¼­ 'www' À¥ È£½ºÆ®¿¡ ´ëÇؼ­´Â Admin(°èÁ¤ : net)°ú 'meeting' À¥È£½º Æ®¿¡ ´ëÇؼ­´Â ´Ù¸¥ »ç¶÷(account : meet)ÀÌ °ü¸®ÇÏ°íÀÚ ÇÑ´Ù. 'meeting' À¥È£½ºÆ®¿¡ ´ëÇÑ À¥¹®ÀÇ´Â meeting@linuxer.net·Î »ç¿ëÇϹǷΠ°á±¹ 2¸íÀÌ °ü¸®ÇÏ´Â ¼ÀÀÌ´Ù. - sonamu.co.kr µµ¸ÞÀÎÀ» »ç¿ëÇÏ´Â ÀÚ´Â °í°´ÀÌ¸ç ¿ÀÁ÷ ÇϳªÀÇ À¥È£½ºÆ® ('www')¸¸ ¿î¿µÇÏ°íÀÚ ÇÑ´Ù. ¶ÇÇÑ ¸ÞÀÏÀº webmaster@sonamu.co.kr ÀÌ ¾Æ´Ñ admin@sonamu.co.kr·Î »ç¿ëÇÏ°íÀÚ ÇÑ´Ù. ¶ÇÇÑ ÀÌ °í°´ÀÌ ¸ö´ã°í ÀÖ°í ȸ»ç¿¡¼­´Â 4°³ÀÇ e-mailÀ» ´õ »ç¿ëÇϱ⸦ ¿øÇÑ´Ù. Áï ÀÌ È¸»çÀÇ »çÀåÀº namu@sonamu.co.kr, ³ª¸ÓÁö 3¸íÀÇ »ç¿øÀº °¢°¢ 'kim', 'park', 'lee' ¶ó´Â ID·Î ¸ÞÀÏÀ» ÀÌ¿ëÇÏ°íÀÚ ÇÑ´Ù. µû¶ó¼­ À¥ Admin°ú ¸ÞÀÏ»ç¿ëÀÚÀÎ 4¸íÀ» ÇÕÇϸé 5¸íÀÇ »ç¿ëÀÚ°¡ µÈ´Ù. ±×¸®°í »çÀå°ú 3¸íÀÇ »ç¿øÀº http://www.sonamu.co.kr/~namu ¿Í °°Àº ȨÆäÀÌÁö¸¦ °¢ÀÚ °¡Áö°í ½Í¾îÇÑ´Ù. - ÁÖ) ÇÊÀÚ´Â À¥È£½ºÆþ÷ü¿¡ ¸ö´ã°í ÀÖÁö ¾Ê±â ¶§¹®¿¡ ¸¹Àº µµ¸ÞÀÎÀ» ½ÇÁ¦·Î °ü¸® Çغ» °æÇèÀº ¾ø´Ù. ´Ù¸¸ °í¹Î ³¡¿¡ 2´ëÀÇ PC(¸®´ª½º, À©98)¸¦ ´Ù¸¥ PCµé°ú ÇÔ²² HUB·Î ¿¬°áÇÏ¿© ³»ºÎ IP ÁÖ¼Ò(CŬ·¡½º)¸¦ »ç¿ëÇÏ¿´À¸¸ç °¢°¢ÀÇ ¿©·¯°³ÀÇ µµ¸ÞÀο¡ ´ëÇؼ­ ½ÇÁ¦·Î ³»ºÎ IP ÁÖ¼Ò 1°³·Î »ç¿ëÇÏ¿© ³×ÀÓ¼­¹ö ¹× www, mail, ftp, telnet Å×½ºÆ®Çϴµ¥ ¼º°øÇßÀ» »ÓÀÌ´Ù. - ¼¼ºÎ»çÇ×(*ÀÌ ±ÛÀ» ÀÌÇØÇϴµ¥ Çʼö) ======================+==============+============================== == È£½ºÆ®+µµ¸ÞÀÎ IP °èÁ¤ (Admin E-mail) ======================+==============+============================== == (ÁÖµµ¸ÞÀÎ)linux.ac.kr 192.168.10.3 root (webmaster@linux.ac.kr) ns.linux.ac.kr 192.168.10.3 root (webmaster@linux.ac.kr) www.linux.ac.kr 192.168.10.3 root (webmaster@linux.ac.kr) mail.linux.ac.kr 192.168.10.3 root (webmaster@linux.ac.kr) ftp.linux.ac.kr 192.168.10.3 root (ftp@linux.ac.kr) study.linux.ac.kr 192.168.10.4 root (study@linuxer.ac.kr) study-app.linux.ac.kr 192.168.10.4 root (study-app@linuxer.ac.kr) study-net.linun.ac.kr 192.168.10.4 root (study-net@linuxer.ac.kr) game.linux.ac.kr 192.168.10.5 game (gamedori@hanmail.net) ======================+==============+============================== == (°í°´) linuxer.com 192.168.10.5 com (webmaster@linuxer.com) ns.linuxer.com 192.168.10.5 com (webmaster@linuxer.com) www.linuxer.com 192.168.10.5 com (webmaster@linuxer.com) ftp.linuxer.com 192.168.10.5 com (ftp@linuxer.com) stock.linuxer.com 192.168.10.5 com (stock@linuxer.com) ======================+==============+============================== == (°í°´) linuxer.net 192.168.10.5 net (webmaster@linuxer.net) ns.linuxer.net 192.168.10.5 net (webmaster@linuxer.net) www.linuxer.net 192.168.10.5 net (webmaster@linuxer.net) ftp.linuxer.net 192.168.10.5 net (ftp@linuxer.net) meeting.linuxer.net 192.168.10.5 meet (meeting@linuxer.net) ======================+==============+============================== == (°í°´)www.sonamu.co.kr 192.168.10.5 sonamu (admin@sonamu.co.kr) (ÀϹݰèÁ¤) namu (namu@sonamu.co.kr) (ÀϹݰèÁ¤) kim (kim@sonamu.co.kr) (ÀϹݰèÁ¤) park (pakr@sonamu.co.kr) (ÀϹݰèÁ¤) lee (lee@sonamu.co.kr) ======================+==============+============================== == ¸ÕÀú °èÁ¤À» ¹ß±ÞÇØ ÁÖÀÚ. linux.ac.kr µµ¸ÞÀÎÀº ½Ã½ºÅÛ °ü¸®ÀÚÀÎ root °¡ °ü¸®ÇϹǷΠº°µµ·Î °èÁ¤À» ¸¸µéÁö ¾Ê°í ÀϹÝÀ¯ÀúÀÎ 'san2' °¡ °ü¸®ÇÑ´Ù´Â °¡Á¤ÀÌ´Ù. # adduser san2 # passwd san2 password ******* # adduser com # passwd com password ******* # adduser net # passwd net password ******* # adduser meet # passwd meet password ******* # adduser sonamu # passwd sonamu password ******* # adduser namu # passwd namu password ******* # adduser kim # passwd kim password ******* # adduser park # passwd park password ******* # adduser lee # passwd lee password ******* 2. DNS(µµ¸ÞÀÎ ³×ÀÓ¼­ºñ½º) ¼³Á¤ °¡»ó À¥È£½ºÆÃÀ» ¿øÇÏ°íÀÚ ÇÏ´Â ÀÌ´Â ¹«¾ùº¸´Ù µµ¸ÞÀÎ ³×ÀÓ¼­¹ö¸¦ Àß ¼³Á¤ ÇؾßÇÑ´Ù. ³×ÀÓ¼­¹ö¸¦ ¾î¶»°Ô Àß ¼³Á¤ÇÏ´À³Ä ¸øÇÏ´À³Ä¿¡ µû¶ó¼­ À¥È£½ºÆà °¡´ÉÀ¯¹«°¡ °áÁ¤µÈ´Ù. ¶ÇÇÑ IP ÁÖ¼Ò°¡ ºÎÁ·ÇÏ¿© 1°³ÀÇ IP ÁÖ¼Ò·Î ¿©·¯°³ÀÇ µµ¸ÞÀÎÀ» ÇÑ´ëÀÇ ¸®´ª½º¹Ú½º¿¡ ¿î¿µÇÏ´Â °Íµµ ¿ª½Ã ¸¶Âù°¡ÁöÀÌ´Ù. ´ÙÀ½¿¡ º¸¿©ÁÖ´Â ³×ÀÓ¼­¹ö ¼³Á¤ÀÇ ¿¹´Â ¾îµð±îÁö³ª ÇÊÀÚÀÇ ¿¹ÀÌ´Ù. Áï ¾ó ¸¶µçÁö °°Àº °á°ú·Î ´Ù¸¥ ¿¹°¡ Àֱ⠸¶·ÃÀ̹ǷΠ³×ÀÓ¼­¹ö ¼³Á¤¿¡ ´ëÇÑ ¹® ¼­¸¦ ²À Àо±â ¹Ù¶õ´Ù. ¿©±â¿¡¼­´Â ù¸Ó¸®¿¡ ¸»ÇßµíÀÌ °³³äÀ̳ª Á¤ÀǸ¦ ¼³¸íÇÏÁö´Â ¾Ê´Â´Ù. ´Ù¸¸ À§ÀÇ ¸ñÇ¥¿¡ ºÎÇյDZâ À§Çؼ­ ³×ÀÓ¼­¹ö¸¦ ¼³Á¤ÇÒ »ÓÀÌ´Ù.(ÇÊÀÚ´Â ³×ÀÓ¼­¹ö Àü¹®°¡°¡ ¾Æ´Ô) 2-1. Bind ¼³Ä¡Çϱ⠳×ÀÓ¼­¹ö¸¦ ±¸Ãà(¶Ç´Â ¼³Á¤)ÇÏ·Á¸é Bind ¼³Ä¡´Â ÇʼöÀûÀÌ´Ù. Bind¿Í caching-nameserver´Â ²À ¼³Ä¡ÇØ¾ß ÇÑ´Ù. ¿ì¼± ÀÚ½ÅÀÇ ¸®´ª½º¹Ú½º¿¡ ¼³Ä¡(rpm)µÇ¾î ÀÖ´ÂÁö È®ÀÎÇÏÀÚ. [san2@www san2]$ rpm -qa | grep bind bind-8.2-6 bind-utils-8.2-6 [san2@www san2]$ [san2@www san2]$ rpm -qa | grep name caching-nameserver-6.0-2 [san2@www san2]$ ÇÊÀÚÀÇ ¸®´ª½º¹Ú½º¿¡´Â bind-8.2 ¿Í caching-nameserver-6.0ÀÌ ¼³Ä¡ µÇ¾î ÀÖ´Ù. ¼³Ä¡µÇ¾î ÀÖÁö ¾Ê´Ù¸é ´ÙÀ½°ú °°ÀÌ CD-ROMÀ̳ª FTP½ÎÀÌÆ® ¿¡¼­ ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡Çϱ⠹ٶõ´Ù. ¿¹: CD-ROMÀ¸·Î ¼³Ä¡Çϱâ [san2@www san2]$ su Password: ******** [root@www san2]# mount /mnt/cdrom [root@www san2]# cd /mnt/cdrom/RedHat/RPMS [root@www RPMS]# rpm -Uvh bind* bind ############################## bind-devel ############################## bind-utils ############################## [root@www RPMS]# rpm -Uvh caching-nameserver* caching-nameserver ############################## [root@www RPMS]# ÀÌÁ¦ ³×ÀÓ¼­¹ö¸¦ ±¸ÃàÇϱâ À§ÇÑ ¹Ø¹ÙÅÁÀº µÇ¾îÀÖ´Ù. ´ÙÀ½´Ü°è¿¡´Â Á÷Á¢ '³ªÀÇ ¸ñÇ¥'¿¡ ºÎÇÕµÇ°Ô ³×ÀÓ¼­¹ö¸¦ ±¸Ãà(ÀÌÇÏ '¼³Á¤')ÇØ º¸ÀÚ. 2-2. ³ªÀÇ ¸ñÇ¥¿¡ ¸Â°Ô DNS ¼³Á¤ À§ÀÇ 2-1°úÁ¤À» ¹«»çÈ÷ ³¡³Â´Ù¸é [root@www /etc]# ls -l named* -rw-r--r-- 1 root root 407 Sep 13 08:24 named.boot -rw-r--r-- 1 root root 1508 Sep 13 08:26 named.conf [root@www /etc]# cd /var/named [root@www named]# ls -l total 8 -rw-r--r-- 1 root root 2769 Mar 22 04:49 named.ca -rw-r--r-- 1 root root 422 Mar 22 04:49 named.local [root@www named]# À§ÀÇ ÆÄÀϵéÀÌ Á¸ÀçÇÒ °ÍÀÌ´Ù. ÀÌÁ¦ º»°ÝÀûÀ¸·Î ³×ÀÓ¼­¹ö¸¦ 1-2¿¡¼­ ¸»ÇÑ ¸ñÇ¥´ë·Î ¼³Á¤ÇØ º¸ÀÚ. Âü°í·Î ÇÊÀÚÀÇ ¸®´ª½º¹Ú½º¿¡´Â ÇöÀç ´ÙÀ½°ú °°ÀÌ IP-Aliasing µÇ¾î ÀÖ´Ù. [san2@www san2]$ /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:10:4B:18:17:77 inet addr:192.168.10.3 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1297308 errors:6 dropped:0 overruns:0 frame:7 TX packets:9037 errors:0 dropped:0 overruns:0 carrier:0 collisions:404 txqueuelen:100 Interrupt:9 Base address:0xe800 eth0:0 Link encap:Ethernet HWaddr 00:10:4B:18:17:77 inet addr:192.168.10.4 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:9 Base address:0xe800 eth0:1 Link encap:Ethernet HWaddr 00:10:4B:18:17:77 inet addr:192.168.10.5 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:9 Base address:0xe800 eth1 Link encap:Ethernet HWaddr 00:A0:C9:0C:89:A5 inet addr:210.123.59.66 Bcast:210.123.59.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1121139 errors:0 dropped:0 overruns:0 frame:9 TX packets:35404 errors:1 dropped:0 overruns:0 carrier:2 collisions:732 txqueuelen:100 Interrupt:3 Base address:0x210 eth1:0 Link encap:Ethernet HWaddr 00:A0:C9:0C:89:A5 inet addr:210.123.59.72 Bcast:210.123.59.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:3 Base address:0x210 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3924 Metric:1 RX packets:1294 errors:0 dropped:0 overruns:0 frame:0 TX packets:1294 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 [san2@www san2]$ [san2@www san2]$ cat /etc/sysconfig/network NETWORKING=yes FORWARD_IPV4=no HOSTNAME=www.linux.ac.kr DOMAINNAME=linux.ac.kr GATEWAY=210.123.59.1 #<----½ÇÁ¦ Á¸ÀçÇÏ´Â GW (º» ³»¿ë°ú »ó°ü¾øÀ½) GATEWAYDEV=eth1 #<----½ÇÁ¦ ÀÎÅͳÝÀ» »ç¿ëÇϱâ À§Çؼ­ 2¹ø° #ÀÌ´õ³Ý (º» ³»¿ë°ú »ó°ü¾øÀ½) [san2@www san2]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 IPADDR=192.168.10.3 NETMASK=255.255.255.0 NETWORK=192.168.10.0 BROADCAST=192.168.10.255 ONBOOT=yes BOOTPROTO=none [san2@www san2]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0:0 DEVICE=eth0:0 USERCTL=no ONBOOT=yes BOOTPROTO=none BROADCAST=192.168.10.255 NETWORK=192.168.10.0 NETMASK=255.255.255.0 IPADDR=192.168.10.4 [san2@www san2]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0:1 DEVICE=eth0:1 USERCTL=no ONBOOT=yes BOOTPROTO=none BROADCAST=192.168.10.255 NETWORK=192.168.10.0 NETMASK=255.255.255.0 IPADDR=192.168.10.5 [san2@www san2]$ ÇÊÀÚÀÇ bind ¹öÀüÀº 8.x´ëÀÌ´Ù. µû¶ó¼­ named.bootÆÄÀÏÀº ¼Õ´î ÇÊ¿ä´Â ¾øÁö¸¸ ÇнÀÀÇ ¸ñÀû»ó named.boot ÆÄÀϵµ Æ÷ÇÔÇÑ´Ù. ¶ÇÇÑ 2Â÷ ³×ÀÓ¼­¹ö ¼³Á¤Àº »ý·«ÇÑ´Ù. 2-2-1. /etc/named.boot (bind 4.x) ----------/etc/named.boot -------------------------------- ; ; a caching only nameserver config ; ; ³»ºÎ IP»ç¿ëÀÇ ¿¹ directory /var/named cache . named.ca primary 0.0.127.in-addr.arpa named.local primary 10.168.192.in-addr.arpa zone-10.168.192 primary linux.ac.kr zone-linux.ac.kr primary linuxer.com zone-linuxer.com primary linuxer.net zone-linuxer.net primary sonamu.co.kr zone-sonamu.co.kr ---------end --------------------------------------------- 2-2-2. /etc/named.conf (bind 8.x) ----------/etc/named.conf --------------------------------- // generated by named-bootconf.pl options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; }; // // a caching only nameserver config // zone "." { type hint; file "named.ca"; }; zone "0.0.127.in-addr.arpa" { type master; file "named.local"; }; zone "10.168.192.in-addr.arpa" { type master; file "zone-10.168.192"; }; zone "linux.ac.kr" { type master; file "zone-linux.ac.kr"; }; zone "linuxer.com" { type master; file "zone-linuxer.com"; }; zone "linuxer.net" { type master; file "zone-linuxer.net"; }; zone "sonamu.co.kr" { type master; file "zone-sonamu.co.kr"; }; ---------end ---------------------------------------------- 2-2-3. /var/named/named.ca --------/var/named/named.ca------------------------------- »ý·« (¡Ú ÆíÁýÇÒ ÇÊ¿ä¾øÀ½) ---------end ---------------------------------------------- 2-2-4. /var/named/named.local ¡Ú ÆíÁýÇÒ ÇÊ¿ä¾øÀ½ ------/var/named/named.local ------------------------------ @ IN SOA localhost. root.localhost. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. 1 IN PTR localhost. ---------end ---------------------------------------------- 2-2-5. /var/named/zone-10.168.192 ------/var/named/zone-10.168.192 -------------------------- @ IN SOA ns.linux.ac.kr. admin.linux.ac.kr. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns.linux.ac.kr. 3 IN PTR linux.ac.kr. 4 IN PTR mail.linux.ac.kr. 4 IN PTR study.linux.ac.kr. 5 IN PTR game.linux.ac.kr. 5 IN PTR linuxer.com. 5 IN PTR linuxer.net. 5 IN PTR sonamu.co.kr. ;<---³¡¿¡ Á¡(Dot) Çʼö ---------end ---------------------------------------------- 2-2-6. /var/named/zone-linux.ac.kr -------/var/named/zone-linux.ac.kr -------------------------- @ IN SOA ns.linux.ac.kr. admin.linux.ac.kr. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns.linux.ac.kr. IN A 192.168.10.3 IN HINFO "x86 Pentium" "Alzza Linux 6.0" ; IN MX 10 linux.ac.kr. ; ÀÌ ºÎºÐÀº ÁÖ¼®Ã³¸® localhost IN A 127.0.0.1 mail IN A 192.168.10.3 study IN A 192.168.10.4 game IN A 192.168.10.5 ns IN CNAME @ www IN CNAME @ ftp IN CNAME @ study-app IN CNAME study study-net IN CNAME study ---------end ---------------------------------------------- 2-2-7. /var/named/zone-linuxer.com ----- /var/named/zone-linuxer.com ------------------------- @ IN SOA ns.linuxer.com. admin.linuxer.com. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns.linuxer.com. IN A 192.168.10.5 IN HINFO "x86 Pentium" "Alzza Linux 6.0" ; IN MX 10 linuxer.com. ; ÀÌ ºÎºÐÀº ÁÖ¼®Ã³¸® ns IN A 192.168.10.5 www IN A 192.168.10.5 stock IN A 192.168.10.5 ftp IN A 192.168.10.5 ;ns IN CNAME @ ;www IN CNAME @ ;ftp IN CNAME @ ;stock IN CNAME @ ---------end ----------------------------------------- 2-2-8. /var/named/zone-linuxer.net ------/var/named/zone-linuxer.net --------------------------- @ IN SOA ns.linuxer.net. admin.linuxer.net. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns.linuxer.net. IN A 192.168.10.5 IN HINFO "x86 Pentium" "Alzza Linux 6.0" ; IN MX 10 linuxer.net. ; ÀÌ ºÎºÐÀº ÁÖ¼®Ã³¸® ns IN CNAME @ www IN CNAME @ ftp IN CNAME @ meeting IN CNAME @ ---------end ------------------------------------------- /var/named/zone-linuxer.com ÆÄÀÏ¿¡¼­¿Í °°ÀÌ CNAME ·¹Äڵ带 »ç¿ëÇÏÁö ¾Ê°í A ·¹Äڵ带 ½áµµ »ó°ü¾ø´Ù. ±×¸®°í ÇÊÀÚ´Â MX ·¹Äڵ忡 ´ëÇؼ­ ¸ðµÎ ÁÖ¼®À¸·Î ó¸®ÇØ ³õ¾Ò´Ù. ¹°·Ð ÁÖ¼®À» Á¦°ÅÇصµ »ó°ü¾ø´Ù. °ü·Ã Àü¹® ¹®¼­(¶Ç´Â ¼­Àû)¿¡´Â °¢°¢ÀÇ È£½ºÆ®(¿©±â¿¡¼­´Â µ¶¸³µÈ ±â°è)¿¡ ÃÖ¼ÒÇÑ Çϳª Á¤µµÀÇ MX ·¹Äڵ带 ±ÇÀåÇÏ°í ÀÖ´Ù. ±×·¯³ª ÀÌ ¹®¼­ÀÇ ¿¹Á¦¿¡¼­´Â ¿ÀÁ÷ ÇÑ´ëÀÇ ¸®´ª½º ¹Ú½º·Î ¸ðµç ÀÎÅÍ³Ý ¼­ºñ½º¸¦ ÇØ°áÇؾßÇϹǷΠ±»Áö MX ·¹ÄÚµå´Â ÇÊ¿äÇÏÁö ¾Ê´Ù°í º»´Ù. ¿Ö³ÄÇϸé ÇϳªÀÇ ¸®´ª½º ¹Ú½º Â÷ü ¸ÞÀÏ ¼­ºñ½º ±â´ÉÀÌ ÀÖÀ¸¹Ç·Î ±»Áö MX ·¹Äڵ带 ÀÌ¿ëÇÏ¿© Æ÷¿öµùÇÒ ÇÊ¿ä°¡ ¾ø±â ¶§¹®ÀÌ´Ù. MX ·¹Äڵ带 »ç¿ëÇÏ´Â ´ëºÎºÐÀÇ ÀÌÀ¯°¡ ¼ø¼ö µµ¸ÞÀΰú °°Àº ¸ÞÀÏ ÁÖ¼Ò¸¦ ´Ù¸¥ ¸ÞÀÏ ¼­¹ö·Î Æ÷¿öµùÇÒ ¶§ ±× °¡Ä¡°¡ ÀÖ´Ù. ±»Áö ¿øÇÑ´Ù¸é ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù. linux.ac.kr. IN MX 10 linux.ac.kr. ¶Ç´Â @ IN MX 10 @ MX ·¹ÄÚµå ´ÙÀ½¿¡ ³ª¿À´Â ¼ýÀÚ´Â Æ÷¿öµùÇÒ mail È£½ºÆ®°¡ ¿©·¯°³ ÀÖ À» °æ¿ì¿¡ ÇÊ¿äÇÏ´Ù. Áï, ¼ýÀÚ°¡ ÀÛÀ¸¸é ±× ¿ì¼±±ÇÀÌ ÀÖ´Ù. ¾ÕÀÇ °æ¿ìó·³ ¿ÀÁ÷ ÇϳªÀÇ È£½ºÆ®·Î Æ÷¿öµùÇÒ °æ¿ì¿¡´Â ¼ýÀÚ "0"°ú ¾çÀÇ Á¤¼ö ¾î´À °ªÀ» Á־ »ó°ü¾ø´Ù. 2-2-9. /var/named/zone-sonamu.co.kr ------/var/named/zone-sonamu.co.kr ------------------------ @ IN SOA ns.sonamu.co.kr. admin.sonamu.co.kr. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns.sonamu.co.kr. IN A 192.168.10.5 IN HINFO "x86 Pentium" "Alzza Linux 6.0" ; IN MX sonamu.co.kr. ; ÀÌ ºÎºÐÀº ÁÖ¼®Ã³¸® www IN CNAME @ ---------end ----------------------------------------------- ¼³Á¤(ÆíÁý)ÀÌ ³¡³µÀ¸¸é ³×ÀÓ¼­¹ö¸¦ Àç°¡µ¿ÇÑ´Ù. [root@www san2]# /etc/rc.d/init.d/named restart ¶Ç´Â [root@www san2]# ndc stop [root@www san2]# ndc start ¼³Á¤ ÆÄÀϸ¸ ´Ù½Ã °»½ÇÇÒ °æ¿ì¿¡´Â [root@www san2]# ndc reload ¶Ç´Â [root@www san2]# killall -HUP named 3. °¡»ó À¥¼­¹ö (¾ÆÆÄÄ¡ 1.3.9 °æ¿ì) ¾ÆÆÄÄ¡ ¼­¹ö´Â °¡»ó À¥¼­¹ö¸¦ Áö¿øÇÑ´Ù. º¸Åë °¡»ó À¥È£½ºÆ®´Â Å©°Ô - IP-based Virtual Hosts - Name-based Virtual Hosts ·Î º¼ ¼ö ÀÖ´Ù. º» ³»¿ë¿¡¼­´Â µÑ ´Ù Æ÷ÇÔÇÏ°í ÀÖ´Ù. 3-1. ¾ÆÆÄÄ¡ ¼³Ä¡(»ý·«) À¥»óÀ̳ª ÀÚ½ÅÀÌ »ç¿ëÇÏ´Â ¹èÆ÷º»ÀÇ FTP¿¡¼­ ÃÖ½ÅÀÇ ¹öÀüÀ» ¹Þ¾Æ¿Í¼­ RPMÀ¸·Î ¼³Ä¡ÇϵçÁö ¼Ò½º¸¦ Á÷Á¢ ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇϵçÁö ÀÌ°Ç ¿©·¯ºÐÀÇ ¼±ÅÃÀÌ´Ù. ¾ÆÆÄÄ¡ ¼³Ä¡´Â RPMÀ¸·Î ¼³Ä¡Çß´Ù´Â °¡Á¤ ÇÏ¿¡ /etc/httpd/conf/httpd.conf ÆÄÀÏÀÌ ¾ÆÆÄÄ¡ÀÇ ¼³Á¤ÆÄÀÏÀÌ´Ù. 3-2. ¾ÆÆÄÄ¡ ¼³Á¤ÆÄÀÏ(httpd.conf) µåµð¾î °¡»ó À¥ È£½ºÆÃÀ» À§ÇÑ ÀÛ¾÷ÀÌ´Ù. RPMÀ¸·Î ¼³Ä¡ÇßÀ» °æ¿ì´Â /etc/httpd/conf/httpd.conf ÆÄÀÏÀ» ÆíÁý±â·Î ¿­¾î ´ÙÀ½°ú °°ÀÌ ¿©·¯ºÐÀÇ È¯°æ¿¡ ¸ÂÃß¾î ÆíÁýÇÑ´Ù. °¡´ÉÇÑ ºÒÇÊ¿äÇÑ Áö½ÃÀÚ´Â »ç¿ëÇÏÁö ¾Êµµ·Ï Çϸç, ¸¹Àº °¡»ó È£½ºÆ®¸¦ ¿î¿µÇÒ °èȹÀÌ°í °°Àº ³»¿ëÀÇ ¼³Á¤À̶ó¸é ÇÑ ÁÙÀÌ¶óµµ ¼³Á¤À» ÁÙÀÌ´Â ¹æÇâÀ¸·Î ¼³Á¤Çϱ⠹ٶõ´Ù. ¼³Á¤ÀÌ ¸¹Àº ¸¸Å­ ¾ÆÆÄÄ¡ À¥ ¼­¹ö´Â ´õ ´À·ÁÁö±â ¶§¹®ÀÌ´Ù. ------/etc/httpd/conf/httpd.conf ----------------------------- # Áß·« ServerType standalone ServerRoot "/etc/httpd" # # Áß·« # #ResourceConfig conf/srm.conf #AccessConfig conf/access.conf # # Áß·« # ServerAdmin webmaster@linux.ac.kr ServerName www.linux.ac.kr # # IP ÁÖ¼Ò´Â 192.168.10.3 ÀÌ´Ù. DocumentRoot "/home/httpd/html" # # Áß·« # UserDir Public_html # # Áß·« # HostnameLookups Off # off ·Î ÇØ ³õÀº°Ô Á¶±Ý ºü¸£´Ù. # # Áß·« # ErrorLog logs/error_log # # Áß·« # CustomLog logs/access_log common # # Áß·« # ServerSignature Email # ¼±ÅÃÀº ¿©·¯ºÐÀÇ ÀÚÀ¯ÀÌ´Ù. # Áß·« ##########[°¡»ó À¥ È£½ºÆ® ¼³Á¤ ºÎºÐ]##################### # NameVirtualHost 192.168.10.4 # 192.168.10.4ÀÇ IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ´Â ¸ðµç È£½ºÆ®ÀÇ ±âº»ÀÌ µÇ´Â È£½ºÆ® # ServerName study.linux.ac.kr ServerAdmin study@linux.ac.kr DocumentRoot /home/linux.ac.kr/study ErrorLog logs/study.linux.ac.kr-error_log CustomLog logs/study.linux.ac.kr-access_log common ServerName study-app.linux.ac.kr ServerAdmin study-app@linux.ac.kr DocumentRoot /home/linux.ac.kr/study-app ErrorLog logs/study-app.linux.ac.kr-error_log CustomLog logs/study-app.linux.ac.kr-access_log common ServerName study-net.linux.ac.kr ServerAdmin study-net@linux.ac.kr DocumentRoot /home/linux.ac.kr/study-net ErrorLog logs/study-net.linux.ac.kr-error_log CustomLog logs/study-net.linux.ac.kr-access_log common # NameVirtualHost Áö½ÃÀÚ´Â ¾î´À °÷¿¡ À§Ä¡ÇÏ¿©µµ °á°ú´Â ¶È°°´Ù. # Áï ¿©±â¿¡¼­ ºÎ¿¬ ¼³¸íÇÏÀÚ¸é # 192.168.10.5¸¦ »ç¿ëÇϴ ȣ½ºÆ®¿¡ ´ëÇؼ­´Â game.linux.ac.kr # È£½ºÆ®°¡ ±âº»ÀÌ µÇ´Â È£½ºÆ®ÀÌ´Ù. ¿¹¸¦ µé¾î ³×ÀÓ¼­¹ö¿¡ # ns.linuxer.comÀÌ µî·ÏµÇ¾î ÀÖÁö¸¸ °¡»óÈ£½ºÆ® ¼³Á¤ºÎºÐ¿¡¼­ # ns.linuxer.com À» Á¤ÀÇÇØ ÁÖÁö ¾ÊÀ¸¸é ns.linuxer.comÀ¸·Î Á¢¼ÓÇϸé # game.linux.ac.kr ÀÇ Document¸¦ º¸¿©ÁØ´Ù. # ²À ³×ÀÓ¼­¹ö¿¡ Á¤ÀÇÇÑ ¸ðµç È£½ºÆ®¿¡ ´ëÇؼ­ °¡»óÈ£½ºÆ®¿¡ Á¤ÀÇÇØ # ÁÖ¾î¾ß ¾î»öÇÔÀÌ ¾ø´Ù. # À̶§ »ç¿ëÇÏ´Â °ÍÀÌ ServerAlias Áö½ÃÀÚÀÌ´Ù. ¾Æ·¡ÀÇ ³»¿ëÀ» Á»´õ # »ìÆ캸ÀÚ. # NameVirtualHost 192.168.10.5 # 192.168.10.5 ÀÇ IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ´Â ¸ðµç È£½ºÆ®ÀÇ ±âº»ÀÌ µÇ´Â È£½ºÆ® # ServerName game.linux.ac.kr ServerAdmin game@linux.ac.kr DocumentRoot /home/linux.ac.kr/game ErrorLog logs/game.linux.ac.kr-error_log CustomLog logs/game.linux.ac.kr-access_log common ServerName stock.linuxer.com ServerAdmin stock@linuxer.com # adminÀº com °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù. DocumentRoot /home/com/wwwhome_stock ScriptAlias /cgi-bin/ "/home/com/wwwhome_stock/cig-bin/" # ƯÈ÷ ½Éº¼¸¯ ¸µÅ©ÇÏ¿© ȨÀ» ¿î¿µÇÑ´Ù¸é ScriptAlias Á¤ÀÇ´Â ²À ÇØÁÖ¾î¾ß # ÇÑ´Ù. ErrorLog logs/stock.linuxer.com-error_log CustomLog logs/stock.linuxer.com-access_log common ServerName www.linuxer.com ServerAdmin webmaster@linuxer.com # adminÀº com °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù. ServerAlias *.linuxer.com DocumentRoot /home/com/wwwhome ErrorLog logs/www.linuxer.com-error_log CustomLog logs/www.linuxer.com-access_log common # Áß¿ä ################################## # ServerAlias ¿¡ ´ëÇؼ­ ºÎ¿¬ ¼³¸íÇϸé, # # ServerName linuxer.com # ServerAlias *.linuxer.com # # ¾ÕÀÇ µÎ ÁÙÀÇ Àǹ̴ *(¸ðµç).linuxer.com È£½ºÆ®´Â ¸ðµÎ # linuxer.com È£½ºÆ®·Î º°ÄªÀ» ÁÖ¾ú´Ù. # ¿©±â¿¡¼­ "*"ÀÇ Àǹ̴ ³×ÀÓ¼­¹ö¿¡ µî·ÏµÇ¾î ÀÖ°í, # "linuxer.com" µµ¸ÞÀÎÀ¸·Î µî·ÏµÈ ¸ðµç È£½ºÆ®¸¦ ¸»Çϸç, # ¾ÕÀÇ °¡»ó È£½ºÆ®·Î Á¤ÀǵÇÁö ¾ÊÀº È£½ºÆ®¸¦ ÀǹÌÇÑ´Ù. # Áï, ftp.linuxer.com°ú ns.linuxer.com°ú °°Àº È£½ºÆ®ÀÌ´Ù. # # ServerAlias ftp.linuxer.com # ServerAlias ns.linuxer.com # # Áï, ¾ÕÀÇ µÎ ÁÙÀ» ÇÑ ÁÙ¿¡ Ç¥ÇöÇÑ °æ¿ìÀÌ´Ù. # # µû¶ó¼­ °¢°¢ÀÇ °¢»ó µµ¸ÞÀÎÀÌ ³¡³ª´Â ¸¶Áö¸· °¡»ó È£½ºÆ®¿¡ # ServerAlias Áö½ÃÀÚ¸¦ »ç¿ëÇؾßÇϸç, ÀϹÝÀûÀ¸·Î ±âº»ÀÌ µÇ´Â # È£½ºÆ®°¡ "www"È£½ºÆ®À̶ó´Â Á¡¿¡¼­ °¢°¢ÀÇ µµ¸ÞÀÎ ³¡³ª´Â # ¸¶Áö¸·¿¡ °¡»ó È£½ºÆ®·Î ¼³Á¤ÇÏ°í ns, ftp È£½ºÆ®¿¡ ´ëÇؼ­ # Alias¸¦ ÇÑ´Ù. # # DocumentRoot ~com/wwwhome # À§¿Í °°ÀÌ ~(Æ¿Æ®)·Î °æ·Î¸¦ ÁöÁ¤Çϸé À¥¼­¹ö´Â ãÁú ¸øÇÑ´Ù. # ²À Àý´ë°æ·Î·Î Á¤ÀÇ. ServerName meeting.linuxer.net ServerAdmin meeting@linuxer.net # adminÀº meet °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù. DocumentRoot /home/meet/wwwhome ErrorLog logs/meeting.linuxer.net-error_log CustomLog logs/meeting.linuxer.net-access_log common ServerName linuxer.net ServerAdmin webmaster@linuxer.net ServerAlias *.linuxer.net # adminÀº net °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù. DocumentRoot /home/net/wwwhome ErrorLog logs/www.linuxer.net-error_log CustomLog logs/www.linuxer.net-access_log common ServerName www.sonamu.co.kr ServerAdmin admin@sonamu.co.kr # adminÀº sonamu °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù. # ¿©±â¿¡¼­´Â ServerAlias¸¦ ÇÒ ÇÊ¿ä°¡ ¾ø´Ù ¿Ö³ÄÇÏ¸é ³×ÀÓ¼­¹ö¿¡ ¿ÀÁ÷ # www.sonamu.co.kr Çϳª ¸¸ Á¤ÀÇÇØ ³õ¾Ò±â ¶§¹®ÀÌ´Ù. # À§ÀÇ zone-sonamu.co.kr ÀÇ ÆÄÀÏÀ» È®ÀÎÇØ º¸±â ¹Ù¶õ´Ù. DocumentRoot /home/sonamu/wwwhome UserDir Pubic_home # ´Ù¸¥ µµ¸ÞÀΰú ´Ù¸£°Ô UserDir À» Á¤ÀÇÇÑ´Ù. # ÁÖ µµ¸ÞÀÎ(linux.ac.kr)ÀÇ UserDir°¡ Public_htmlÀ̹ǷΠ# ÁÖ µµ¸ÞÀΰú ´Ù¸¥ µµ¸ÞÀΰú È¥ÇÕµÇÁö ¾Ê°Ô À§Çؼ­´Â ¿ÏÀüÈ÷ ´Ù¸¥ # µð·ºÅ丮¸¦ À§¿Í °°ÀÌ Á¤ÀÇÇØ ÁØ´Ù. # °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ UserDir¸¦ ÁöÁ¤ÇØ ÁÖÁö ¾ÊÀ¸¸é # ÁÖ µµ¸ÞÀÎ(linux.ac.kr)¿¡ ´ëÇÑ À¯ÀúÀÎ "Public_html"·Î ÀνÄÇÏ·Á # Çϱ⠶§¹®¿¡ Document¸¦ º¸¿©ÁÙ ¼ö ¾ø´Ù. # ¶ÇÇÑ Public_html À̶õ µð·ºÅ丮°¡ ÀÖ´Ù¸é www.linux.ac.kr/~namu # ¿Í www.sonam.co.kr/~namu ´Â °°Àº ¹®¼­¸¦ º¸¿©ÁØ´Ù. # ¶§¹®¿¡ °í°´ÀÌ °³ÀΠȨÆäÀÌÁö¸¦ °®°í ½Í¾î ÇÒ °æ¿ì¿¡´Â # UserDirÀ» ´Ù¸£°Ô Á¤ÀÇ ÇØ ÁÖ¾î¾ß ÇÑ´Ù. ErrorLog logs/www.sonamu.co.kr-error_log CustomLog logs/www.sonamu.co.kr-access_log common #NameVirtualHost 192.168.10.5 # À§¿Í °°ÀÌ ¸Ç ³ªÁß¿¡ NameVirtualHost¸¦ Á¤ÀÇÇØ Á־ µÈ´Ù. # ¾Õ¼­ ¾ê±âÇßÁö¸¸ 192.168.10.5 À» »ç¿ëÇÏ´Â ¸ðµç È£½ºÆ®¿¡ ´ëÇؼ­´Â # ¸Ç ¾Õ¿¡ °¡»óÈ£½ºÆ®·Î ÁöÁ¤ÇÑ È£½ºÆ®°¡ ±âº»ÀÌ µÇ´Â È£½ºÆ®ÀÌ´Ù. # ¿©±â¿¡¼­´Â game.linux.ac.kr ÀÇ È£½ºÆ®°¡ ÀÌ¿¡ ÇØ´çµÈ´Ù. ---------end --------------------------------------------- À̸§ ±â¹Ý °¡»ó È£½ºÆ® ¼³Á¤À» ¿ä¾àÇÏ¸é ´ÙÀ½°ú °°´Ù.(192.168.10.5) ServerName www.linux.ac.kr DocumentRoot /home/httpd/html ... NameVirtualHost 192.168.10.5 # 192.168.10.5ÀÇ IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ´Â °¡»ó È£½ºÆ® Áß ±âº»ÀÌ µÇ´Â È£½ºÆ® # ServerName game.linux.ac.kr ... # # linuxer.com °¡»ó µµ¸ÞÀÎ ºÎºÐ # ServerName stock.linuxer.com ... # ServerName linuxer.com ServerAlias *.linuxer.com ... # # linuxer.net °¡»ó È£½ºÆ® ºÎºÐ ServerName meeting.linuxer.net ... # ServerName linuxer.net ServerAlias *.linuxer.net ... # # sonamu.co.kr °¡»ó È£½ºÆ® ºÎºÐ ServerName www.sonamu.co.kr ... # ¸¸¾à ÇϳªÀÇ IP ÁÖ¼Ò·Î ¿ÀÁ÷ ÇϳªÀÇ µµ¸ÞÀο¡ ´ëÇؼ­ ºñ±³Àû ¸¹Àº °¡»ó È£½ºÆ®¸¦ ¼³Á¤ÇÑ´Ù¸é ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù (¿¹:linux.ac.kr µµ¸ÞÀÎ) # ServerName www.linux.ac.kr DocumentRoot /home/httpd/html ... NameVirtualHost 192.168.10.5 # ns, ftp È£½ºÆ®¿¡ ´ëÇÑ ¹Ì·ÃÀÌ ¾ø´Ù¸é ´ÙÀ½°ú °°ÀÌ # ±âº»ÀÌ µÇ´Â www È£½ºÆ®¸¦ ´Ü 3ÁÙ·Î °£°áÇÏ°Ô ÇÒ ¼ö ÀÖ´Ù. # ±×·¯³ª ÇÊÀÚ´Â Á¦ÀÏ ¸¶Áö¸·¿¡ ServerAlias¿Í ÇÔ²² ¼³Á¤Çϱ⸦ # ±ÇÀåÇÑ´Ù. # # # ServerName www.linux.ac.kr # # ServerName aaa.linux.ac.kr ... # ServerName bbb.linux.ac.kr ... # ServerName ccc.linux.ac.kr ... ... °è¼Ó # # ¸¶Áö¸· °¡»ó È£½ºÆ®¿¡ ServerAlias È°¿ë ServerName www.linux.ac.kr ServerAlias *.linux.ac.kr ... ÀÌ·Î½á °¡»óÀ¥¼­¹ö ¼³Á¤ÀÌ ¸ðµÎ ³¡³µ´Ù. ÀÌÁ¦ ³²Àº °ÍÀº DocumentRoot °¡ µÉ µð·ºÅ丮¸¦ ¼³Á¤ÇÏ´Â °Í¸¸ ³²¾Æ ÀÖ´Ù. # mkdir /home/linux.ac.kr # mkdir /home/linux.ac.kr/study # mkdir /home/linux.ac.kr/study-app # mkdir /home/linux.ac.kr/study-net # mkdir /home/linux.ac.kr/game # chmod 705 -R /home/linuxa.c.kr # su com $ mkdir ~com/wwwhome $ chmod -R 705 ~com $ su net password ******* $ mkdir ~net/wwwhome $ chmod -R 705 ~net $ su meet password ******* $ mkdir ~meet/wwwhome $ chmod -R 705 ~meet $ su sonamu password ******* $ mkdir ~sonamu/wwwhome $ chmod -R 705 ~sonamu $ su namu password ******* $ mkdir ~net/Public_home $ chmod -R 705 ~namu $ su kim password ******* $ mkdir ~kim/Public_home $ chmod -R 705 ~kim $ su park password ******* $ mkdir ~park/Public_home $ chmod -R 705 ~park $ su lee password ******* $ mkdir ~lee/Public_home $ chmod -R 705 ~lee $ 4. °¡»ó ¸ÞÀϼ­¹ö °¡»ó ¸ÞÀÏ ¼­ºñ½º´Â ¾ÆÆÄÄ¡ ¼³Á¤ÆÄÀÏ°ú °°ÀÌ ±×¸® º¹ÀâÇÏÁö ¾Ê´Ù. ´Ü, ³×ÀÓ¼­¹ö¸¸ Àß ¼³Á¤ÇÏ°í access ÆÄÀÏ°ú VirtusertableÆÄÀÏ°ú Àß ÆíÁýÇØ ÁÖ¸é ¹«¸®°¡ ¾ø´Ù. ±×¸®°í POP3 µ¥¸óµµ ÇÔ²² ¼³Ä¡ÇØ ÁÖ¾î¾ß ÇÑ´Ù. 4-1. sendmail ¼³Ä¡Çϱ⠸ÕÀú sendmailÀÌ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö È®ÀÎÇØ º¸ÀÚ. [san2@www san2]$ rpm -qa |grep sendmail sendmail-8.9.3-10kr [san2@www san2]$ ÇÊÀÚÀÇ ½Ã½ºÅÛ¿¡´Â ¹öÀüÀÌ 8.9.3 ÀÎ RPMÀ¸·Î ¼³Ä¡µÇ¾î ÀÖ´Ù. ¼³Ä¡µÇ¾î ÀÖÁö ¾Ê´Ù¸é CD-ROMÀ̳ª ÇØ´ç ¹èÆ÷º»ÀÇ FTP½ÎÀÌÆ®¿¡¼­ ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡ÇÏÀÚ. ¿¹: CD-ROMÀ¸·Î ¼³Ä¡ÇÏ´Â °æ¿ì [san2@www san2]$ su Password: ******** [root@www san2]# mount /mnt/cdrom [root@www san2]# cd /mnt/cdrom/RedHat/RPMS [root@www RPMS]# rpm -Uvh sendmail* sendmail ################################# [root@www RPMS]# [root@www RPMS]# /etc/rc.d/init.d/sendmail start [root@www RPMS]# 4-2. qpopper ¼³Ä¡Çϱ⠸ÞÀÏÀ» º¸³»±â¸¸ ÇÏ¸é ¾ÈµÇ°ÚÁÒ?? Ŭ¶óÀ̾ðÆ®¿¡¼­ ¸ÞÀÏÀ» ¹ÞÀ» ¼ö ÀÖ¾î¾ß ÇÑ´Ù. Áï Ŭ¶óÀ̾ðÆ®¿¡¼­ ¹ÞÀ» ¼ö ÀÖ°Ô Çϱâ À§Çؼ­´Â POP3°°Àº µ¥¸óÀ» ¼­¹ö¿¡ ¼³Ä¡ÇØ ÁÖ¾î¾ß ÇÑ´Ù. ·¹µåÇÞ ¹èÆ÷º»Àº ±âº»ÀûÀ¸·Î pop3À» Á¦°øÇÑ´Ù. ±×·¯³ª ´Üµ¶À¸·Î pop3 ÆÐÅ° Áö·Î µÇ¾î ÀÖÁö ¾Ê°í imap ¿Í ÇÔ²² Á¦°øµÈ´Ù. # rpm -qi imap À§ÀÇ ¸í·ÉÀ¸·Î imap¿Í pop3°¡ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö È®ÀÎÇϱ⠹ٶõ´Ù. ¼³Ä¡°¡ µÇ¾î ÀÖ´Ù¸é ±»Áö ÀÌÇÏ ¾Æ·¡¿¡ ¼³¸íÇÏ´Â qpopper¸¦ ¼³Ä¡ÇÒ ÇÊ¿ä´Â ¾ø´Ù. imap ÆÐÅ°Áö·Î ¼³Ä¡µÇ¾î Àִµ¥ ¸ÞÀÏÀ» ¹ÞÀ» ¼ö ¾ø´Ù¸é /etc/inetd.conf ÆÄÀÏ°ú /etc/serveecs ÆÄÀÏ¿¡¼­ pop3(Á¤È®È÷ pop-3)¿¡ °ü·ÃµÈ ÁÖ¼®(#)À» Á¦°ÅÇÏ¸é µÈ´Ù. ÇÊÀÚ´Â Á÷Á¢ qpopper 3.0 ¼Ò½º¸¦ ¹Þ¾Æ ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇÏ¿´´Ù. ¹ÚÀçÈ£´Ô ȨÆäÀÌÁö(http://www.kies.co.kr/~jhpark/Sendmail/popper.html) ¿¡ ÀÚ¼¼ÇÑ Á¤º¸°¡ ÀÖÀ¸´Ï ²À ¹æ¹®Çϵµ·Ï ÇÑ´Ù. ¿©±â¿¡¼­´Â ¸ðµç °³³äÀûÀÎ ¼³¸íÀº Á¦¿ÜÇÏ°í ¿ÀÁ÷ ¼³Ä¡¿¡¸¸ ¾ð±ÞÇÑ´Ù. ÀÏ´Ü qpopper 3.0À» ´Ù¿î·ÎµåÇÏÀÚ. ftp://ftp.qualcomm.com/eudora/servers/unix/popper/ ¿¡ Á¢¼ÓÇϸé 2.53 ¹öÀü°ú 3.0b17, 3.0b18 ¹öÀüÀÌ ÀÖ´Ù. ÇÊÀÚ´Â qpopper3.0b18.tar.Z (2,432KB)À» ´Ù¿î·Îµå ÇÏ¿´°í, /usr/local/src ¿¡ ±× ¼Ò½º¸¦ ÄÄÆÄÀÏÇÏ°í /usr/local/qpopper ¶ó´Â µð·ºÅ丮¿¡ ¼³Ä¡ÇÒ °ÍÀÌ´Ù. # cp qpopper3.0b18.tar.Z /usr/local/src/ # cd /usr/local/src # ls qpopper3.0b18.tar.Z # uncompress qpopper3.0b18.tar.Z # tar xvf qpopper3.0b18.tar # cd qpopper3.0 # ./configure --enable-specialauth \ --enable-bulletins=/var/spool/bulls \ --enable-servermode # make # cp popper/popper /usr/local/lib/ # ·¹µåÇÞ6.0Àº ±âº»ÀûÀ¸·Î ½¦µµ¿ìÆнº¿öµå¸¦ »ç¿ëÇϹǷΠ"--enable-specialauth" ¿É¼ÇÀ» ÁÖ°í ²À ÄÄÆÄÀÏÇϱ⠹ٶõ´Ù. /etc/services ÆÄÀÏÀ» ´ÙÀ½°ú °°ÀÌ ÆíÁýÇÑ´Ù. ----------------------------------------------------------- #pop-2 109/tcp postoffice # POP version 2 #pop-2 109/udp #pop-3 110/tcp # POP version 3 #pop-3 110/udp pop3 110/tcp # popper ----------------------------------------------------------- Âü°í·Î, pop3 110/tcp pop-3 # POP3 ¿Í °°ÀÌ ¼³Á¤ÇßÀ» °æ¿ì ¿À¸¥ÂÊÀÇ "pop-3"Àº ¿ÞÂÊÀÇ "pop3" ¼­ºñ½º À̸§¿¡ ´ëÇÑ º°ÄªÀ̸§ÀÌ´Ù. µû¶ó¼­ ´ÙÀ½°ú °°ÀÌ ¸ðµÎ Á¢¼ÓÇÒ ¼ö ÀÖ´Ù. [root@www san2]# telnet localhost 110 [root@www san2]# telnet localhost pop3 [root@www san2]# telnet localhost pop-3 /etc/inetd.conf ÆÄÀϵµ ´ÙÀ½°ú °°ÀÌ ÆíÁýÇÑ´Ù. ----------------------------------------------------------- #pop-2 stream tcp nowait root /usr/sbin/tcpd ipop2d #pop-3 stream tcp nowait root /usr/sbin/tcpd ipop3d pop3 stream tcp nowait root /usr/local/lib/popper popper -s ----------------------------------------------------------- Âü°í·Î, Æ÷Æ® ¹øÈ£°¡ 1024 º¸´Ù ÀÛÀº Æ÷Æ®´Â ¿ÀÁ÷ root ·¹º§¿¡¼­¸¸ Á¢±ÙÇÒ ¼ö ÀÖ´Ù. ÀÌ Æ÷Æ®¸¦ ¸Ç ÆäÀÌÁö¿¡ ÀÇÇϸé Àϸí "low numbered" Æ÷Æ®¶ó°í ºÎ¸¥´Ù. ½´ÆÛµ¥¸óÀ» Àç½ÇÇàÇÑ´Ù. # /etc/rc.d/init.d/inet restart Á¦´ë·Î µ¿ÀÛÇÏ´ÂÁö Å×½ºÆ®Çغ¸ÀÚ. [root@www san2]# telnet localhost pop3 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK QPOP (version 3.0b18) at www.linux.ac.kr starting. user san2 #<---ÀÌ ºÎºÐÀº Á÷Á¢ ÀÔ·ÂÇÑ´Ù. +OK Password required for san2. pass 12345678 #<---ÀÌ ºÎºÐÀº Á÷Á¢ ÀÔ·ÂÇÑ´Ù. +OK san2 has 42 messages (595757 octets). quit #<---ÀÌ ºÎºÐÀº Á÷Á¢ ÀÔ·ÂÇÑ´Ù. +OK Pop server at www.linux.ac.kr signing off. Connection closed by foreign host. [root@www san2]# À§¿Í °°ÀÌ ¸Þ½ÃÁö°¡ ³ª¿À¸é ¼º°øÇÑ °ÍÀÌ´Ù. ÇÊÀÚ QPOP ¹öÀüÀº 3.0b18 ÀÌ°í 42°³ÀÇ mail ÀÌ ÀÖ´Â ¼ÀÀÌ´Ù. imap ÆÐÅ°ÁöÀÇ pop3(pop-3)À¸·Î Å×½ºÆ®ÇÏ·Á¸é # telnet localhost pop-3 ³ª # telnet localhost 110À¸·Î Á¢¼ÓÇØ¾ß ÇÑ´Ù. imap ´Â 143¹øÀ¸·Î Á¢¼ÓÇÑ´Ù. ÀÌÁ¦ ¿©·¯ºÐÀÇ ¸®´ª½º ¹Ú½º´Â Ŭ¶óÀ̾ðÆ®¿¡¼­ ¸ÞÀÏÀ» ¹ÞÀ» Áغñ°¡ µÇ¾î ÀÖ´Ù. ´ÙÀ½Àº sendmail ¼³Á¤ÆÄÀÏÀÇ ¿¹ÀÌ´Ù. ²À ÀÌÇØÇÏ°í ³Ñ¾î°¡¾ß ÇÑ´Ù. 4-3. /etc/sendmail.cf -------------------------------------------------------------- # anything else is bogus R$* $#error $@ 5.7.1 $: "550 Relaying denied" #<------[ÁÖÀÇ] # Áß·« Cwlocalhost # file containing names of hosts for which we receive email Fw/etc/sendmail.cw -------------------------------------------------------------- ºÎ¿¬ ¼³¸íÇÏÀÚ¸é [ÁÖÀÇ]ºÎºÐÀ» ÁÖ¼®À¸·Î ó¸®Çϸé spam ¸ÞÀÏ ¹®Á¦°¡ ÀÖ´Ù. ÁÖ¼®À¸·Î 󸮵Ǿî ÀÖ´Ù¸é ¾î¼¸é ¿©·¯ºÐÀÇ ¸®´ª½º¹Ú½º´Â SpamerÀÇ º»°ÅÁö°¡ µÉ ¼ö µµ ÀÖ´Ù´Â °ÍÀÌ´Ù. ÁÖ¼®À¸·Î 󸮵Ǿî ÀÖ´Ù¸é ÁÖ¼®À» À§¿Í °°ÀÌ Á¦°ÅÇÏ°í accessÆÄÀÏÀ» ¾Æ·¡¿Í °°ÀÌ ÆíÁýÇØ ÁØ´Ù. ±×¸®°í Fw/etc/sendmail.cw ¿Í °°ÀÌ ÁÖ¼®Ã³¸®°¡ µÇ¾î ÀÖÁö ¾Ê¾Æ¾ß ÇÑ´Ù. Âü°í·Î, ¼¾µå¸ÞÀÏ ¼³Á¤ ÆÄÀÏ¿¡¼­ F ¼³Á¤ ¸í·É¾î¿Í C ¼³Á¤ ¸í·É¾î·Î Á¤ÀÇÇÑ "w" Ŭ·¡½º´Â ¼­·Î µ¿ÀÏÇÏ´Ù. F ¼³Á¤ ¸í·É¾î´Â ÆÄÀÏÀ» Á¤ÀÇÇϴµ¥ »ç¿ëÇÏ°í C ¼³Á¤ ¸í·É¾î´Â ¹®ÀÚ¿­À» Á¤ÀÇÇϴµ¥ »ç¿ëÇÑ´Ù. µû¶ó¼­, Cwlocalhost linux.ac.kr mail.linux.ac.kr mail.sonamu.co.kr sonamu.co.kr ¿Í °°ÀÌ Á÷Á¢ ±æ°Ô ³ª¿­Çصµ »ó°ü¾ø´Ù. 4-4. /etc/sendmail.cw -------------------------------------------------------------- # sendmail.cw - include all aliases for your machine here. # ³×ÀÓ¼­¹ö¿¡ µî·ÏµÈ ¸ðµç µµ¸ÞÀÎÀ» ÀÌ ÆÄÀÏ¿¡ ´ÙÀ½°ú °°ÀÌ Àû¾îÁØ´Ù. linux.ac.kr mail.linux.ac.kr linuxer.net linuxer.com sonamu.co.kr -------------------------------------------------------------- Âü°í·Î ÀÌ ÆÄÀÏÀº ÇϳªÀÇ ¸®´ª½º ¹Ú½º·Î ¸ÞÀÏÀÌ µé¾î¿Ã °æ¿ì °¢°¢ÀÇ ¸ÞÀÏÀ» ¹Þ¾ÆÁÙ ¼ö½ÅÀÚ¸¦ ¼³Á¤ÇÏ´Â ³»¿ëÀÌ´Ù. ¸¸¾à, sonamu.co.kr µµ¸ÞÀÎÀÌ ¾ø´Ù¸é ID@sonamu.co.kr·Î ¸ÞÀÏÀ» º¸³»¸é ¼¾µå¸ÞÀÏÀº sonamu.co.kr ¼ö½ÅÀÚ°¡ ¾øÀ¸¹Ç·Î ¸ÞÀÏÀ» ¹ÞÁö ¸øÇÑ´Ù. ¶ÇÇÑ sonamu.co.kr È£½ºÆ®¿¡ ´ëÇؼ­ MX ·¹ÄÚµå·Î ÁöÁ¤Çß´Ù¸é ÀÚü Å¥À×»óÅ°¡ µÇ¾î ¹ö¸°´Ù. À̶§ ¹Ý¼ÛµÇ´Â ¸ÞÀÏ Çì´õÀÇ ¸Þ½ÃÁö´Â ´ÙÀ½°ú °°´Ù. 553 sonamu.co.kr. config error: mail loops back to me (MX problem?) 554 ... Local configuration error ´ÙÀ½Àº ¸ÞÀϼ­¹ö(mail.sonamu.co.kr)°¡ µ¶¸³ÀûÀ¸·Î Á¸ÀçÇÒ °æ¿ì 554 MX list for xxx.kr. points back to mail.sonamu.co.kr 554 ... Local configuration error µû¶ó¼­ ÇϳªÀÇ ¸®´ª½º ¹Ú½º·Î ³×ÀÓ¼­¹ö¿Í ¸ÞÀϼ­¹ö¸¦ °°ÀÌ ¿î¿µÇÑ´Ù¸é /etc/sendmai.cw ÆÄÀÏ¿¡´Â MX ·¹Äڵ带 °®´Â ¸ðµç È£½ºÆ®¸¦ ¼ö½ÅÀÚ·Î ¼³Á¤ ÇؾßÇÑ´Ù. ¶ÇÇÑ ¼ø¼ö µµ¸ÞÀÎÀ» »ç¿ëÇÏ°íÀÚ ÇϹǷΠ°¢°¢ÀÇ °¡»ó µµ¸ÞÀεµ ¼ö½ÅÀÚ·Î ¼³Á¤ ÇØ¾ß ÇÑ´Ù. 4-5. /etc/sendmail.cm Ưº°ÇÏ°Ô ÆíÁýÇÒ ÇÊ¿ä´Â ¾ø´Ù. ±×³É ³Ñ¾î°£´Ù. 4-6. /etc/mail/access ------------------------------------------------------------- # ¿¹Á¦: # cyberspammer.com REJECT # sendmail.org OK # 128.32 RELAY # # ÁÖÀÇ »çÇ×!!! # # ¼³Á¤ ÆÄÀÏÀ» ÀÛ¼ºÇÒ ¶§ sendmail.org ¿Í OK, 128.32 ¿Í RELAY »çÀÌ´Â # ½ºÆäÀ̽º°¡ ¾Æ´Ï¶ó ²À!!! <ÅÇ>Å°¸¦ »ç¿ëÇÏ¿© ¶ç¿ö¾ß ÇÕ´Ï´Ù. localhost.localdomain RELAY localhost RELAY linux.ac.kr OK linuxer.net OK linuxer.com OK sonamu.co.kr OK 192.168 RELAY # access ÆÄÀÏÀ» °íÄ£ ÀÌÈÄ¿¡´Â # # makemap hash /etc/mail/access < /etc/mail/access # # ¸í·ÉÀ¸·Î °»½ÅÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù. ---------------------------------------------------------- Âü°í·Î /etc/mail/access ÆÄÀÏÀº, ¼¾µå¸ÞÀÏ ÀÔÀå¿¡¼­ ¼¾µå¸ÞÀÏÀÌ ¸ÞÀÏ Á߰踦 Çã¿ëÇÒ °ÍÀΰ¡(RELAY), ¶Ç´Â Çã¿ëÇÏÁö ¾ÊÀ» °ÍÀΰ¡(REJECT)¸¦ °áÁ¤Çϴµ¥ ±× ÃÊÁ¡ÀÌ ÀÖ´Ù. ¸ÞÀÏ Áß°è¶ó´Â Àǹ̴ ±× Åë·Î¸¦ ¿­¾îÁÙ °ÍÀÎÁö ¾Æ´Ï¸é ¿­¾îÁÖÁö ¾ÊÀ» °ÍÀÎÁö ¿¡ ´ëÇÑ Áß°èÀÇ ÀǹÌÀÌ´Ù. ¸ÞÀÏ Áß°èÀÇ ´ë»óÀº ¼¾µå¸ÞÀÏ·Î µé¾î¿À´Â ¸ÞÀÏÀÌ´Ù. µû¶ó¼­ ·ÎÄà »ç¿ëÀÚÀÇ POP3 À¯Àú¿Í ´Ù¸¥ SMTP ¼­¹ö°¡ ÀÌ¿¡ ÇØ´çµÈ´Ù. 4-7. /etc/mail/virtusertable ¸Å¿ì Áß¿äÇÑ ¼³Á¤ÆÄÀÏÀÌ´Ù. ÀÌ ÆÄÀÏÀ» ¾î¶»°Ô Àß ÆíÁýÇÏ´À³Ä¿¡ µû¶ó¼­ À¥È£½ºÆÃÀÇ ¼º°ø¿©ºÎ°¡ ´Þ·Á ÀÖ´Ù°í Çصµ ÁÁ´Ù. ÁÖÀÇ ±í°Ô »ìÆ캸ÀÚ. ÇÊÀÚ°¡ ¿Ö ÀÌ·¸°Ô ¼³Á¤Çߴ°¡¿¡ ´ëÇؼ­´Â ¸Ç À§ÀÇ '³ªÀÇ ¸ñÇ¥'¸¦ ´Ù½ÃÇѹø Àо±â ¹Ù¶õ´Ù. ------------------------------------------------------------ # ÀÌ ÆÄÀÏÀ» º¸¸é ±èÁ¤±Õ´ÔÀÌ ¾´ ¿¹Á¦¸¦ º¸¸é ½±°Ô ÀÌÇØ ÇÒ ¼ö ÀÖ´Ù. webmaster@linux.ac.kr san2 ftp@linux.ac.kr san2 study@linux.ac.kr san2 study-app@linux.ac.kr san2 study-net@linux.ac.kr san2 game@linux.ac.kr gamedori@hanmail.net @linuxer.com com webmaster@linuxer.net net ftp@linuxer.net net meeting@linuxer.net meet admin@sonamu.co.kr sonamu ---------------------------------------------------------- ºÎ¿¬¼³¸íÇÏÀÚ¸é µµ¸ÞÀÎ linux.ac.kr(¸ÞÀϼ­¹ö) ¿¡ ´ëÇؼ­ game@linux.ac.kr·Î ¿À´Â ¸ÞÀÏÀº gamedori@hanmail.netÀ¸·Î ¸ÞÇÎÇÏ°í ³ª¸ÓÁö webmaster@linux.ac.kr ftp@linux.ac.kr study@linux.ac.kr study-app@linux.ac.kr study-net@linux.ac.kr ·Î ¿À´Â ¸ÞÀÏÀº ÀÌ ¼­¹ö °ü¸®ÀÚÀÎ rootÀÇ ÀÏ¹Ý À¯ÀúÀÎ 'san2' °èÁ¤À¸·Î º¸³½´Ù. @linux.ac.kr san2 ·Î ¼³Á¤ÇØ ¹ö¸®¸é linux.ac.kr µµ¸ÞÀÎ(¸ÞÀϼ­¹ö)À» »ç¿ëÇÏ¿© ¿À´Â ¸ÞÀÏÀº ¸ðµÎ 'san2'°¡ ¹Þ°Ô µÇ¾î ¹ö¸°´Ù. ´Ù¸¥ ÀÏ¹Ý À¯Àú±îÁöµµ Æ÷ÇÔÇϱ⠶§¹®¿¡ ÇϳªÇϳª¾¿ ÁöÁ¤ÇØ ÁÖ¾î¾ß ÇÑ´Ù. µµ¸ÞÀÎ linuxer.com(¸ÞÀϼ­¹ö) ¿¡ ´ëÇؼ­ webmaster@linuxer.com ftp@linuxer.com stock@linuxer.com À¸·Î ¿À ´Â ¸ÞÀÏÀº ¸ðµÎ com À¯Àú°¡ ¹Þ¾Æ º¼ ¼ö ÀÖ´Ù. ÀÌ°ÍÀ» ÀÌÇØ ÇÒ ¼ö ÀÖ´Ù¸é ³ª¸ÓÁö linuxer.net °ú sonamu ¸ÞÀϼ­¹ö¿¡ ´ëÇØ ¼­´Â ½±°Ô ÀÌÇØ Çϸ®¶ó »ý°¢µÈ´Ù. ÆÄÀÏ ÆíÁýÀÌ ³¡³µÀ¸¸é ´ÙÀ½°ú °°Àº ¸í·ÉÀ» ²À ½ÇÇàÇØ ÁÖ¾î¾ß ÇÑ´Ù. # makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable ÀÌ·Î½á °¡»ó¸ÞÀϼ­¹ö ¼³Á¤ÀÌ ¸ðµÎ ³¡³µ´Ù. 5. °¡»ó FTP¼­¹ö (ProFTPd) °¡»ó FTP´Â FTPµ¥¸ó¸¸ Àß ¼³Ä¡ÇØ ÁÖ¸é Å©°Ô ¹®Á¦°¡ ¾ø´Ù. 5-1. ProFTPd ¼³Ä¡Çϱâ CD-ROMÀ̳ª °¢ ¹èÆ÷º»ÀÇ FTP¿¡¼­ RPMÀ¸·Î ´Ù¿î·ÎµåÇϵçÁö http://www.proftpd.org/ ¿¡¼­ ¼Ò½º·Î ¹ÞµçÁö °£¿¡ ¿©·¯ºÐÀÇ ÀÚÀ¯ÀÌ´Ù. ÇÊÀÚ´Â °¡»óFTP¸¦ Å×½ºÆ®ÇÒ ÁîÀ½¿¡´Â 1.2.0pre6 ÀÇ ¹öÀüÀÇ ¼Ò½º¸¦ ´Ù¿î·Îµå ÇÏ¿© ¼³Ä¡ÇÏ¿´´Ù. ftp://linux.sarang.net/ ¿¡ Á¢¼ÓÇϸé RPMÀ¸·Î ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡ÇÒ ¼ö ÀÖ´Ù. ¼Ò½º¸¦ ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇÒ °æ¿ì ¼Ò½º¸¦ ÄÄÆÄÀÏÇÒ µð·ºÅ丮´Â /usr/local/src ÀÌ°í ¼³Ä¡ÇÒ µð·ºÅ丮´Â /usr/local/proftpd ÀÌ´Ù. # cp proftpd-1.2.0pre6.tar.gz /usr/local/src/ # cd /usr/local/src # ls proftpd-1.2.0pre6.tar.gz # tar zxvf proftpd-1.2.0pre6.tar.gz # cd proftpd-1.2.0pre6 # ./configure --prefix=/usr/local/proftpd \ --sysconfdir=/etc --localstatedir=/var/run \ --enable-autoshadow --datadir=/home/ftp # make # make install # mkdir /home/ftp RPMÀ¸·Î ¼³Ä¡ÇÏ´Â °æ¿ì # rpm -Uvh proftpd-1.2.0pre6-1.i386.rpm # ¼Ò½º¸¦ ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇϵçÁö RPMÀ¸·Î ¼³Ä¡ÇÏ¿© ¼³Ä¡ÇϵçÁö /etc/inetd.conf ÆÄÀÏÀ» ´ÙÀ½°ú °°ÀÌ ÁÖ¼®À» Ãß°¡ÇØ ÁÖ¾î¾ß ÇÑ´Ù. Áï À¥ È£½ºÆà ¼º°Ý¿¡ ¸Â°Ô Proftpd¸¦ standaloneÀ¸·Î µ¥¸óÀ» °¡µ¿Çϱâ À§Çؼ­ÀÌ´Ù. -----------/etc/inetd.conf --------------------------------- # Áß·« #ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a #ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd # Áß·« ---------------------------------------------------------- ±×¸®°í ½´ÆÛµ¥¸óÀ» Àç°¡µ¿ÇÑ´Ù. # /etc/rc.d/init.d/inet restart ¶Ç´Â # killall -HUP inetd 5-2. /etc/proftpd.conf ÀÌÁ¦ ¸¶Áö¸· ´Ü°èÀÎ ProFTPd ¼³Á¤ÆÄÀÏÀ» ÆíÁýÇØ º¸ÀÚ. ---------/etc/proftpd.conf --------------------------------- ServerName "ProFTPD ALZZA Default Installation" ServerType standalone # standaloneÀ¸·Î ¼³Á¤ ServerAdmin ftp@linux.ac.kr # sendmail virtualtable À» º¸¶ó. DefaultServer on AuthPAMAuthoritative on Port 21 MaxInstances 30 User nobody Group nobody AllowOverwrite on ##Global ¼³Á¤ VirtualHost±îÁö ¿µÇâÀ» ÁֹǷΠÀÚ¿ø ³¶ºñ°¡ ´úÇÏ´Ù. ## Umask 022 # °¢ VirtualHost¸¶´Ù µû·Î Á¤ÀÇÇصµ µÈ´Ù. DisplayLogin .welcome.msg # ¿ø·¡´Â hiddenÆÄÀÏÀÌ ¾Æ´Ñ welcome.msgÀÌ´Ù. DisplayFirstChdir .message #User ftp # Global·Î ³ÖÁö ¾ÊÀº °Ô ÁÁ´Ù. #Group ftp # Global·Î ³ÖÁö ¾ÊÀº °Ô ÁÁ´Ù. #MaxClients 10 # Global·Î ³ÖÁö ¾Ê´Â´Ù. #MaxClientsPerHost 1 # Global·Î ³ÖÁö ¾Ê´Â´Ù UserAlias anonymous ftp RequireValidShell off # Anonymous Á¢¼ÓÇã¿ëÀ» À§Çؼ­´Â off·Î ²À ¼³Á¤. ShowSymlinks on DefaultRoot ~ !san2 # À§¿Í °°ÀÌ DefaultRoot¸¦ ¼³Á¤ÇÏ¸é ±×·ì "san2"¸¦ Á¦¿ÜÇÏ°í ¸ðµÎ # ÀÏ¹Ý À¯Àú´Â ±âº» Root°¡ ~HOME/ÀÌ µË´Ï´Ù. # ¶ÇÇÑ (!)À» ¾ø¾Ö¸é ±× ¹Ý´ë°¡ µË´Ï´Ù. ########Global end ################################### User ftp # ¸ðµç Anonymous ¿¡ ²À ³Ö¾îÁÖ¾î¾ß ÇÑ´Ù. Group ftp # ¸ðµç Anonymous ¿¡ ²À ³Ö¾îÁÖ¾î¾ß ÇÑ´Ù. #UserAlias anonymous ftp # Global·Î ¼³Á¤µÇ¾î ÀÖÀ¸¹Ç·Î UserAlias´Â ³ÖÀ» ÇÊ¿ä¾ø´Ù. MaxClients 10 "Á˼ÛÇÕ´Ï´Ù. ÃÖ´ë ÀοøÀº %m¸íÀÔ´Ï´Ù." MaxClientsPerHost 1 "È£½ºÆ®´ç 1ȸ¸¸ Á¢¼Ó °¡´ÉÇÕ´Ï´Ù." DenyAll # Àбâ/¾²±â/µð·ºÅ丮 ¸¸µé±â¸¦ Çã¿ëÇϱâ À§Çؼ­´Â ´ÙÀ½ ÁÖ¼®Á¦°Å. # # #AllowALL # # ###### °¡»ó FTP È£½ºÆ®¼³Á¤ ºÎºÐ ########################## # # ¡Ú¡Ú¡Ú ÁÖÀÇ ¡Ú¡Ú¡Ú # # ProFTPd´Â ÇöÀçÀÇ ¹öÀü 1.2.0pre6(8Æ÷ÇÔ)Àº À̸§ ±â¹Ý °¡»óÈ£½ºÆ®¸¦ # Áö¿øÇÏÁö ¾Ê´Â´Ù.(Anonymous) # ¾Æ·¡¿¡ ¼³Á¤ÇÑ ¿¹´Â IP ±â¹Ý °¡»óÈ£½ºÆ®ÀÇ ¿¹ÀÌ´Ù. ##################################################### ServerName "ftp.linuxer.com" ServerAdmin ftp@linuxer.com Umask 002 MaxClients 10 "Á˼ÛÇÕ´Ï´Ù. ÃÖ´ë ÀοøÀº %m¸íÀÔ´Ï´Ù." MaxClientsPerHost 1 "È£½ºÆ®´ç 1ȸ¸¸ Á¢¼Ó °¡´ÉÇÕ´Ï´Ù." User ftp Group com # Umask 002 ¿Í °ü·ÃÀÌ ÀÖ´Ù. DenyAll AllowStoreRestart on AllowRetrieveRestart on # À§ÀÇ 2°³ÀÇ Áö½ÃÀÚ´Â À̾î¿Ã¸®±â¸¦ À§Çؼ­´Â Ãß°¡ÇϽʽÿÀ. # À̶§ "on" Áö½ÃÀÚ »çÀÌ´Â <ÅÇ>¸¦ ÀÌ¿ëÇϽʽÿÀ. Order Allow,Deny # Äĸ¶(,)´ÙÀ½¿¡ Ä­À» ºóÄ­À» ¶çÁö ¾Ê´Â´Ù. Allow from all Deny from 192.168.15.,haker.com # CŬ·¡½º 192.168.15.* ¿Í haker.com Àº ¾²±â¸¦ ±ÝÇÑ´Ù. ### Umask ¿¡ ´ëÇؼ­ »ý°¢ÇØ º¸ÀÚ ++++++incoming µð·ºÅ丮####### # umask ´Â »õ·Î »ý¼ºµÈ µð·ºÅ丮³ª ÆÄÀÏ¿¡ ´ëÇؼ­ Æ۹̼ÇÀ» ±âº»Àû # À¸·Î Àû¿ë½ÃŲ´Ù. # Áï Global ¿¡¼­ umask 022·Î ¼³Á¤µÇ¾î ÀÖÀ¸¹Ç·Î Anonymous °¡ # Á¢¼ÓÇÏ¿© »õ·Î »ý¼º½Ãų ¼ö ÀÖ´Â # µð·ºÅ丮¿¡ ´ëÇؼ­ 755ÀÇ Æ۹̼Ç, ±×¸®°í ÆÄÀÏ¿¡ ´ëÇؼ­´Â 644ÀÇ ÆÛ¹Ì # ¼ÇÀ» ÁØ´Ù. # Àá±ñ µð·ºÅ丮ÀÇ ¼ÒÀ¯ÀÚ¿¡ °üÇؼ­µµ »ý°¢Çغ¸ÀÚ. # Anonymous°¡ »õ·Î »ý¼ºµÈ µð·ºÅ丮°¡ 755À̹ǷΠÀÌ µð·ºÅ丮ÀÇ ¼ÒÀ¯ÀÚ # ´Â root ³ª ´Ù¸¥ user°¡ ¾Æ´Ï°í "ftp" ¼ÒÀ¯ÀÚ°¡ µÈ´Ù. # Áï UserAlias Anonymous ftpÀ̹ǷΠ¸ðµç Anonymous ¿¡ ´ëÇؼ­ # ´Ù¸¥ Anonymous°¡ »ý¼º½ÃŲ µð·ºÅ丮³ª ÆÄÀÏÀ» Áö¿ì°Å³ª ¹Ù²Ü ¼ö ÀÖ´Ù. # ÇÑ°¡Áö ´õ.....Anonymous°¡ ¾Æ´Ñ ÀÏ¹Ý À¯Àú·Î µé¾î¿ÔÀ» °æ¿ì¸¦ »ý°¢Çغ¸ÀÚ. # incoming µð·ºÅ丮ÀÇ Æ۹̼ÇÀÌ 777·Î µÇ¾î ÀÖ´õ¶óµµ Anonymous °¡ »ý¼º # µÈ µð·ºÅ丮³ª ÆÄÀÏÀº Áö¿ì°Å³ª ¹Ù²Ü ¼ö ¾ø´Ù.(755À̹ǷÎ) ´Ü, incoming µð·º # Å丮ÇÏ¿¡¼­´Â Æ۹̼ÇÀÌ 777À̹ǷΠ»ý¼ºÇÒ ¼ö ÀÖ´Ù. # ftp.linuxer.com ¿¡ ´ëÇؼ­ °ü¸®ÀÚ´Â "com" À¯ÀúÀÌ´Ù. °ü¸®ÀÚ°¡ Anonymous # °¡ »ý¼ºÇÑ µð·ºÅ丮³ª ÆÄÀÏÀ» Áö¿ï ¼ö ¾ø´Ù¸é °ü¸®ÀÚ¶ó°í ÇÒ ¼ö Àְڴ°¡? # ¿©±â¿¡ ±× ÇعýÀÌ ¹Ù·Î Umask °ú À¥È£½ºÆà °ü¸®ÀÚÀÇ ´É·Â¿¡ ´Þ·ÁÀÖ´Ù. # /home/com/vir-ftp ÀÇ ¼ÒÀ¯ÀÚ´Â ftp°¡ ¾Æ´Ñ "com" ÀÇ ¼ÒÀ¯ÀÚ·Î ÇؾßÇÏ°í, # incoming ÇÏÀ§ µð·ºÅ丮 ¿¡ ´ëÇؼ­ Unamsk 070À̳ª 020À¸·Î ¼³Á¤Çϸé # Æ۹̼ÇÀº 707 À̳ª 757 ÀÌ µÈ´Ù. # Áï ¼ÒÀ¯ÀÚ°¡ ´©°¡ µÇµçÁö°£¿¡ Others°¡ Áö¿ì°Å³ª »ý¼ºÇÒ ¼ö ÀÖ´Â °ÍÀÌ´Ù. # ÀÏ¹Ý À¯Àú·Î µé¾î¿ÔÀ» °æ¿ì¿¡ ÇØ´çÇÑ °ÍÀÌ´Ù. # ÀÌ·± ¹æ¹ýÀÌ ½È´Ù¸é Anonymous Group Á¤µµ¸¦ VirtualHost °ü¸®ÀÚÀÎ # "com"À¸·Î ´ëüÇصµ µÈ´Ù. # ±×¸®°í Umask 002·Î ¼³Á¤Çϸé 775ÀÇ Æ۹̼ÇÀ» »ý¼ºµÇ¾î "com"À¯Àú°¡ # °ü¸®ÇÒ ¼ö ÀÖ´Ù..À̶§´Â com ±×·ì¿¡ "com"À¯Àú°¡ Æ÷ÇԵǾî Àְųª # ´Üµ¶À¸·Î "com" À¯Àú¸¸ Æ÷ÇÔÇØ¾ß ÇÑ´Ù. # ÀÌÀ¯´Â "com" ±×·ì¿¡ Æ÷ÇÔµÈ ´Ù¸¥ À¯Àú°¡ ÇÇÇظ¦ ÁÙ ¼ö Àֱ⠶§¹®ÀÌ´Ù. # ¶Ç´Â User ¿Í Group ¿¡ Àû¾îµµ °ü¸®ÀÚ°¡ Æ÷ÇԵǾî ÀÖ¾î¾ß ÇÑ´Ù. # ¿Ö³ÄÇϸé "com" À¯Àú´Â °í°´ÀÌ°í "root" ±ÇÇÑÀ» ȹµæÇÒ ¼ö ¾ø±â ¶§¹®ÀÌ´Ù. # ¹æ¹ýÀº ¿©·¯ °¡ÁöÀÌ´Ù. # ÀÌó·³ Anonymous °¡ FTPŬ¶óÀ̾ðÆ®·Î Á¢¼ÓÇÏ¿© µð·ºÅ丮¸¦ »ý¼º # ÇÏ°í Áö¿ï ¼ö ÀÖ°Ô Çϱâ À§Çؼ­´Â ¼ÒÀ¯ÀÚ¿Í ÆÛ¹Ì¼Ç - incoming µð·ºÅ丮 # ¿¡ ´ëÇÑ Á¢±Ù Á¤Ã¥ - ±×¸®°í Umask ÀÇ ¼ø¼­·Î °ü¸®ÇؾßÇÑ´Ù. # ¿¹¸¦ µé¾î ¾Æ¹«¸® Umask 000À¸·Î ¼³Á¤Çß´õ¶óµµ incoming µð·ºÅ丮¿¡ # ´ëÇÑ ¾²±â ±ÇÇÑÀÌ ¾ø´Ù¸é Anonymous ´Â ¾µ ¼ö ¾ø´Ù´Â °ÍÀÌ´Ù..... # Á»´õ ¸¹Àº Á¤º¸¸¦ ¿øÇÑ´Ù¸é ProFTPD Reference.html À» ÀÐ¾î º¸±â # ¹Ù¶õ´Ù. ###### VirtualHost ÀÇ Á¤ÀÇ ################### # # ¡Ú¡Ú¡Ú ÁÖÀÇ ¡Ú¡Ú¡Ú # # ProFTPd´Â ÇöÀçÀÇ ¹öÀü 1.2.0pre6(8Æ÷ÇÔ)Àº À̸§ ±â¹Ý °¡»óÈ£½ºÆ®¸¦ # Áö¿øÇÏÁö ¾Ê´Â´Ù.(Anonymous) # ¾Æ·¡¿¡ ¼³Á¤ÇÑ ¿¹´Â IP ±â¹Ý °¡»óÈ£½ºÆ®ÀÇ ¿¹ÀÌ´Ù. ##################################################### ServerName "ftp.linuxer.net" ServerAdmin ftp@linuxer.net #Umask 002 # ÁÖ¼®À¸·Î 󸮵Ǿî Àֱ⠶§¹®¿¡ Global ¿¡¼­ ¼³Á¤ÇÑ 022¸¦ µû¸¥´Ù. MaxClients 10 "Á˼ÛÇÕ´Ï´Ù. ÃÖ´ë ÀοøÀº %m¸íÀÔ´Ï´Ù." MaxClientsPerHost 1 "È£½ºÆ®´ç 1ȸ¸¸ Á¢¼Ó °¡´ÉÇÕ´Ï´Ù." User ftp Group ftp # ftp.linuxe.comó·³ incoming µð·ºÅ丮°¡ Á¤ÀǵǾî ÀÖÁö ¾Ê±â # ¶§¹®¿¡Anonymous´Â µð·ºÅ丮¸¦ »ý¼ºÇÒ ¼ö ¾ø°í µû·Î ÁöÁ¤ÇÒ ÇÊ¿äµµ # ¾ø´Ù. DenyAll -------------end ------------------------------------------- ¼³Á¤ÆÄÀÏ ÆíÁýÀÌ ¸ðµÎ ³¡³µÀ¸¸é Anonymous°¡ Á¢±ÙÇÒ ¼ö ÀÖ´Â µð·ºÅ丮¸¦ ¸¸µé¾îÁÖÀÚ. # su com $ mkdir ~com/vir-ftp $ mkdir ~com/vir-ftp/pub incoming $ chmod 705 ~com/vir-ftp/pub $ chmod 707 ~com/vir-ftp/incoming $ $ su net Password : ****** $ mkdir ~com/vir-ftp $ mkdir ~com/vir-ftp/pub $ chmod 705 ~com/vir-ftp/pub $ FTPµ¥¸óÀ» Àç°¡µ¿ÇÑ´Ù. # /etc/rc.d/init.d/proftpd restart ÀÌÁ¦ Anonymous °¡ Á¢¼ÓÇÒ ¶§ º¸¿©ÁÖ´Â .welcome.msg ÆÄÀϵµ ¸¸µé¾î ÁÖÀÚ. vir-ftp ¹Ø¿¡ ÀÌ ÆÄÀÏÀÌ Á¸ÀçÇÏ¸é µÈ´Ù. ----------~HOME/vir-ftp/.welcome.msg ---------------------- ȯ¿µÇÕ´Ï´Ù...... ProFTPd Alzza Linux 6.0 2.2.12(¾ÈÁ¤) ftp://%L/ o ³²Àº ¿ë·® : %F KB o Çö »ç¿ëÀÚ ¼ö : %N/%M (ÇϳªÀÇ È£½ºÆ®´ç 1¸í±îÁö Á¢¼Ó Çã°¡ÇÕ´Ï´Ù) o %RÀÇ %u(%U)´ÔÀÌ Á¢¼ÓÇÑ o Çö ½Ã°¢Àº %T³âÀÔ´Ï´Ù. Admin-mailto:%E -----------end -------------------------------------------- À§ÀÇ °á°ú´Â ----------------------------------------------------------- ȯ¿µÇÕ´Ï´Ù...... ProFTPd Alzza Linux 6.0 2.2.12(¾ÈÁ¤) ftp://ftp.linux.ac.kr/ o ³²Àº ¿ë·® : 302868 KB o Çö »ç¿ëÀÚ ¼ö : 2/10 (È£½ºÆ®´ç 1ȸ Á¢¼Ó¸¸ Çã°¡ÇÕ´Ï´Ù) o 192.168.12.5ÀÇ UNKNOWN(anonymous)´ÔÀÌ Á¢¼ÓÇÑ o Çö ½Ã°¢Àº Tue Sep 14 22:05:36 1999³âÀÔ´Ï´Ù. Admin-mailto:ftp@linux.ac.kr ----------------------------------------------------------- 1.2.pre6 ¹öÀüÀ» Á¦¿ÜÇÑ ±× ÀÌ»óÀÇ ¹öÀüÀº "%F KB" ´ë½Å "%f"·Î ±âÀÔÇϸé Mb·Î Ãâ·ÂµË´Ï´Ù. ÀÌ·Î½á °¡»ó FTP ¼³Á¤µµ ¸ðµÎ ³¡³µ´Ù. 6. ÀÚÁÖ Áú¹®µÇ´Â ³»¿ë [Q]. ÁÖ µµ¸ÞÀÎ(³×ÀÓ¼­¹ö)ÀÇ È£½ºÆ®À̸§À» ¾î¶² À̸§À¸·Î Á¤ÇØ¾ß Çմϱî? "www"À̳ª "ns"·Î Á¤ÇÏ¸é ¹«³­ÇÒ °Í °°½À´Ï´Ù. ÀÌ ¿Ü¿¡ Á¤ÇÏ°í ½ÍÀº À̸§À¸·Î ¼³Á¤Çصµ µË´Ï´Ù. ´Ü www, ns¿ÜÀÇ À̸§À» Á¤Çß´Ù¸é DNS¼³Á¤ºÎºÐ¿¡ ÃÖ¼ÒÇÑ À¥¼­¹öÀÓÀ» ¾Ë¸®´Â "www" È£½ºÆ®¸íÀ» ¼³Á¤ÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù. È£½ºÆ®À̸§À» "www"¶ó°í Á¤ÇÏ¸é »ï¹Ù³ª ³×Æ®¿öÅ© ȯ°æ¿¡ "www" ·Î º¸ÀÔ´Ï´Ù. [Q]. ±³À°±â°ü(ac.kr)¿¡ °øÀÎµÈ IP ÁÖ¼Ò·Î com À̳ª co.kr µµ¸ÞÀÎÀ» »ç¿ëÇÒ ¼ö ÀÖ³ª¿ä?? Çѱ¹Àü»ê¿øÀÇ IP ´ã´çÀÚ¿¡°Ô ¹®ÀÇÇØ º» °á°ú(97³â) »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Áï IP ÁÖ¼Ò´Â µµ¸ÞÀο¡ ºÎ¿©ÇÏ´Â °ÍÀÌ ¾Æ´Ï¶ó ±³À°±â°ü(À̶§´Â ac.krÀÌ ¾Æ´Ï°í xxxÇб³)¿¡ ÀÓ´ëÇÏ´Â °ÍÀÔ´Ï´Ù. ÇÏÁö¸¸, ÇØ´ç±³À°±â°üÀÇ À¥¸¶½ºÆ®¿¡°Ô ¸ÕÀú ¹®ÀÇ¿Í Çã¶ôÀ» ¹Þ¾Æ¾ß ÇÕ´Ï´Ù. ¾à°£ µµ´öÀûÀÎ ¹®Á¦°¡ µÉ ¼ö ÀÖ½À´Ï´Ù. [Q]. ·¹µåÇÞ6.0»ç¿ëÀÚÀÔ´Ï´Ù. /etc/named.boot ÆÄÀÏÀ» ÆíÁýÇØ¾ß Çմϱî? named.boot ÆÄÀÏÀº Bind 4.x ¿ëÀÔ´Ï´Ù. ·¹µåÇÞ 6.0À» »ç¿ëÇÏ½Ã°í ·¹µåÇ޻翡¼­ Á¦°øÇÏ´Â rpmÀ¸·Î ¼³Ä¡Çß´Ù¸é Bind 8.x ÀÔ´Ï´Ù. µû¶ó¼­ /etc/named.conf ÆÄÀÏ ¸¸ ÆíÁýÇÏ¸é µË´Ï´Ù. [Q]. ´Ù¸¥ ³×Æ®¿÷ ÁÖ¼Ò(CŬ·¡½º)¸¦ °¡Áø IP ÁÖ¼Ò·Î °¡»óÈ£½ºÆ®¸¦ ¿î¿µÇÏ·Á°í ÇÕ´Ï´Ù. ³×ÀÓ¼­¹ö ¼³Á¤Àº ¾î¶»°Ô ÇØ¾ß Çմϱî? ³×Æ®¿÷ ¼³Á¤ÀÌ ³¡³µÀ¸¸é named.boot À̳ª named.conf ÆÄÀÏ¿¡ °°Àº ¿ä·ÉÀ¸·Î ´Ù¸¥ ³×Æ®¿÷ ÁÖ¼Ò¿¡ ´ëÇÑ ZoneÆÄÀÏÀ» ¸í½ÃÇØ ÁÝ´Ï´Ù. ¿¹: ÇöÀç IP ÁÖ¼Ò´Â 192.168.10.1 ´Ù¸¥ ³×Æ®¿÷ ÁÖ¼ÒÀÇ IP ÁÖ¼Ò°¡ 192.168.21.5 ¶ó¸é, /etc/named.boot primary 10.168.192.in-addr.arpa zone-10.168.192 primary 21.168.192.in-addr.arpa zone-21.168.192 /etc/named.conf zone "10.168.192.in-addr.arpa" { type master; file "zone-10.168.192"; }; zone "21.168.192.in-addr.arpa" { type master; file "zone-21.168.192"; }; [Q]. À¥¼­¹ö¿¡ ´ëÇÑ ³×Æ®¿÷ ºÎÇÏ°¡ ¸¹ÀÌ °É¸³´Ï´Ù. ³×ÀÓ¼­¹ö ¼³Á¤À¸·Î ½Ã½ºÅۺлêÀ» ÇÒ ¼ö ÀÖ³ª¿ä? °¡´ÉÇÕ´Ï´Ù. À̶§´Â 2´ë ÀÌ»óÀÇ ¼­¹ö°¡ ÇÊ¿äÇÕ´Ï´Ù. ³×ÀÓ¼­¹ö ¼³Á¤ Áß¿¡¼­ IN ·¹ÄÚµå¿Í PTR ·¹Äڵ带 »ç¿ëÇÏ¿© °°Àº È£½ºÆ®¿¡ ´ëÇÑ °¢°¢ ´Ù¸¥ IP ÁÖ¼Ò·Î ¼³Á¤ÇÏ¸é µË´Ï´Ù. [Q]. ÀÚ½ÅÀÇ ³×ÀÓ¼­¹ö°¡ ´Ù¸¥ ³×ÀÓ¼­¹ö·ÎºÎÅÍ °¡Á®¿Â Á¤º¸°¡ ij½Ã¿¡ ÀúÀåµÈ´Ù°í Çϴµ¥ named.cache ÆÄÀÏ¿¡ ÀúÀåµË´Ï±î? ¾Æ´Õ´Ï´Ù. named.cache(¶Ç´Â named.ca, named.root) ÆÄÀÏ ·çÆ® ³×ÀÓ¼­¹ö Á¤º¸°¡ µé¾î ÀÖ´Â ÆÄÀÏÀÔ´Ï´Ù. ÀÌ ÆÄÀÏ¿¡ ÀúÀåµÇÁö ¾Ê½À´Ï´Ù. °¡Á®¿Â Á¤º¸´Â ½Ã½ºÅÛ ¸Þ¸ð¸®¿¡ ÀúÀåµË´Ï´Ù. µû¶ó¼­ ³×ÀÓ¼­¹ö¸¦ Àç½ÃÀÛ(reload ¾Æ´Ô)ÇÏ¸é ±× Àü¿¡ °¡Á®¿Ô´ø Á¤º¸´Â ¸Þ¸ð¸®¿¡ ´õ ÀÌ»ó Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. [Q]. °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ Document ¹®¼­¸¦ °°Àº ÆäÀÌÁö¸¸ º¸¿©ÁÝ´Ï´Ù. httpd.conf ¼³Á¤ÆÄÀÏÀÇ ¾î¶² ºÎºÐÀ» ¼Õ ºÁ¾ß Çմϱî? Name-based Virtual Hosts À» ¿î¿µÇÏ´Ù º¸¸é ÀÚÁÖ Áú¹®µÇ´Â ³»¿ëÀÔ´Ï´Ù. ¿ì¼± VirtualHost Áö½ÃÀÚ ¾ÕÀ̳ª ¸Ç µÚ¿¡ NameVirtualHost Áö½ÃÀÚ¿¡ ´ëÇÑ IP ÁÖ¼Ò¸¦ Àû¾îÁÝ´Ï´Ù. ¸¸¾à IP ÁÖ¼Ò 192.168.10.3 ÇϳªÀÇ IP ÁÖ¼Ò·Î ³×ÀÓ¼­¹ö ¹× ±âº» µµ¸ÞÀΰú °¡»ó µµ¸ÞÀÎ ¹× È£½ºÆ®¸¦ ¼³Á¤Çß´Ù¸é VirtualHost ±âº»ÀÌ µÇ´Â È£½ºÆ®¸¦ Àû¾îÁà¾ß ÇÕ´Ï´Ù. Áï VirtualHost ¿¡´Â 192.168.10.3¿¡ ºÎ¿©ÇÑ ¸ðµç È£½ºÆ®¸¦ ¼³Á¤ÇØ Áֽñ⠹ٶø´Ï´Ù. [Q]. ƯÁ¤ »ç¿ëÀÚ È¨ ÆäÀÌÁö¸¦ ´Ù¸¥ URL·Î ¸ÅÇÎÇÏ°í ½Í½À´Ï´Ù. HTMLÀ» »ç¿ëÇÏÁö ¾Ê°í ¾ÆÆÄÄ¡ ¼³Á¤À¸·Î °¡´ÉÇմϱî? ³× °¡´ÉÇÕ´Ï´Ù. Redirect Áö½ÃÀÚ¸¦ È°¿ëÇϽʽÿÀ. ¿¹¸¦ µé¾î »ç¿ëÀÚ("aaa") Ȩ µð·ºÅ丮 Àüü¸¦ http://www.boo.com/~aaa ·Î ¸ÅÇÎÇÏ°í ½Í´Ù¸é ¾ÆÆÄÄ¡ ¼³Á¤¿¡¼­ ´ÙÀ½ÀÇ ³»¿ëÀ» Ãß°¡ÇÕ´Ï´Ù. Redirect /~aaa http://www.boo.com/~aaa [Q]. CGI ½ÇÇàÀÌ µÇÁö ¾Ê°í ¼Ò½º°¡ º¸ÀÔ´Ï´Ù. ¾î¶»°Ô ¼³Á¤ÇØ¾ß Çմϱî? [A] °³ÀÎ »ç¿ëÀÚ µð·ºÅ丮ÀÏ °æ¿ì ´ÙÀ½°ú °°ÀÌ ExecCGI ¿É¼ÇÀ» Ãß°¡ÇÕ´Ï´Ù. .. Options ExecCGI ... ±×¸®°í CGI handler ºÎºÐ¿¡ ÁÖ¼®À» Á¦°ÅÇØ¾ß ÇÕ´Ï´Ù. AddHandler cgi-script .cgi .pl [Q]. CGI ½ÇÇà½Ã "Internal Server Error 500" ¿¡·¯°¡ Ãâ·ÂµË´Ï´Ù. ¿¡·¯ÄÚµå 500Àº ½ºÅ©¸³Æ® ±¸¹®ÀÌ À߸øµÇ¾î Ãâ·ÂÇÑ ¿¡·¯ÀÔ´Ï´Ù. ¾ÆÆÄÄ¡ ¼­¹ö ¿¡·¯¶ó±â º¸´Ù´Â ½ºÅ©¸³Æ® ±¸¹®ÀÌ Æ²·Á¼­ ¼­¹ö¿¡¼­ Á¦´ë·Î ó¸®ÇÏÁö ¸øÇÏ´Â °æ¿ìÀÔ´Ï´Ù. ½ºÅ©¸³Æ® ±¸¹®À» ´Ù½Ã Çѹø È®ÀÎÇØ º¸½Ã±æ ¹Ù¶ø´Ï´Ù. [Q]. URL ÀԷ â¿¡ "/"À» ÀÔ·ÂÇؾ߸¸ Á¢±ÙÀÌ °¡´ÉÇÕ´Ï´Ù. Áï "~aaa"´Â µÇÁö ¾Ê°í "~aaa/"·Î´Â °¡´ÉÇÕ´Ï´Ù. µÑ ´Ù °¡´ÉÇÏ°Ô ÇÏ°í ½Í½À´Ï´Ù. ServerName Áö½ÃÀÚ¿¡ ÁÖ¼®À» Á¦°ÅÇÏ°í ÇØ´ç È£½ºÆ®³×ÀÓÀ» ¼³Á¤Çϱ⠹ٶø´Ï´Ù. ¸¸¾à DNS¿¡ µî·ÏµÇ¾î ÀÖÁö ¾ÊÀº È£½ºÆ®ÀÏ °æ¿ì¿¡´Â IP ÁÖ¼Ò¸¦ ÀÔ·ÂÇϱ⠹ٶø´Ï´Ù. [Q]. ÀϺΠ°¡»óµµ¸ÞÀο¡ ´ëÇÑ ¸ÞÀϼ­¹ö°¡ Á¦´ë·Î ÀÛµ¿ÇÏÁö ¾Ê¾Æ ¸ÞÀÏÀ» º¸³¾ ¼ö °¡ ¾ø½À´Ï´Ù. /etc/sendmail.cf ------------------------------------------- Cwlocalhost #<---±âº» °ªÀ¸·Î¸¸ ¼³Á¤ÇØ ³õ´Â´Ù. # file containing names of hosts for which we receive email Fw/etc/sendmail.cw #<---ÁÖ¼®Ã³¸®µÇ¾î ÀÖ´Ù¸é ÁÖ¼®À» Á¦°ÅÇÑ´Ù. ---------------------------------------------------------- /etc/sendmail.cw ¿¡ ¸ðµç DNS¿¡ ¼³Á¤ÇÑ °¡»óµµ¸ÞÀÎÀ» ³ª¿­ÇØ¾ß ÇؾßÇÕ´Ï´Ù. ("www"¶ó´Â È£½ºÆ®¸¦ Á¦¿ÜÇÑ ¼ø¼ö °¡»óµµ¸ÞÀÎ) [Q]. sendmail¿¡¼­ ¸ÞÀÏ¿ë·®À» Á¦ÇÑÇÏ°í ½Í½À´Ï´Ù. /etc/sendmail.cf ÆÄÀÏ¿¡¼­ ´ÙÀ½°ú °°Àº ÁÖ¼®À» Á¦°ÅÇϽʽÿÀ. # maximum message size O MaxMessageSize=1024000 À̶§ "1024000"Àº byte´ÜÀ§ÀÔ´Ï´Ù. ¿øÇÏ´Â ¿ë·®¸¸Å­ ¼³Á¤ÇϽʽÿÀ. ±×¸®°í SMTPÀÔÀå¿¡¼­ µé¾î¿À´Â ¸ÞÀÏ¿¡ ´ëÇؼ­ ¿ë·®À» Á¦ÇÑÇÏ°í ½Í´Ù¸é, °°Àº ÆÄÀÏ¿¡ ´ëÇؼ­ "Local and Program Mailer specification" ºÎºÐ¿¡ ´ëÇؼ­ Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40, M=1024000, T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u À§¿Í °°ÀÌ M=1024000 ºÎºÐÀ» Ãß°¡ÇØ ÁֽʽÿÀ. ¸¶Âù°¡Áö·Î 1024000 ´Â byte´ÜÀ§ÀÌ¸ç ¿øÇÏ´Â ¿ë·®¸¸Å­ ¼³Á¤ÇØ ÁֽʽÿÀ. [Q]. °£´ÜÇÏ°Ô ¼Ò±Ô¸ð ¸ÞÀϸµ ¸®½ºÆ®¸¦ ¿î¿µÇÏ°í ½Í½À´Ï´Ù. /etc/aliases ÆÄÀÏ¿¡ newmessage_linux: aaa@linux.ac.kr,bbb@sonamu.co.kr,ccc °ú °°ÀÌ ¸ÞÀϸµÇÏ°í ½ÍÀº ¸ÞÀÏÁÖ¼Ò¸¦ Äĸ¶(,)·Î ±¸ºÐÇÏ¿© ³ª¿­ÇÏ°í "newaliases" ¸í·ÉÀ» ÁֽʽÿÀ. ÀÌ ¹æ¹ý ¿Ü¿¡ ÆÄÀϷεµ ¸®½ºÆ®¸¦ ¸¸µé¾î ¿î¿µÇÒ ¼ö Àִµ¥ °°Àº ÆÄÀÏ¿¡ newmessage_linux::include:/home/san2/mailling.list owner-newmessage_linux: san2 ¶ó°í ±âÀÔÇÏ°í /home/san2/mailling.list ÆÄÀÏ¿¡ ¸ÞÀϸµ¿¡ °¡ÀÔÇÑ ¸ÞÀÏÁÖ¼Ò¸¦ ÇÑ ÁÙ¿¡ Çϳª¾¿¸¸ ³ª¿­ÇÏ¸é µË´Ï´Ù. À̶§ mailling.list ÆÄÀÏ¿¡ Ãß°¡Çϰųª »èÁ¦ÇÒ ¶§ "newaliases" ¸í·ÉÀ» ÁÙ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. ¹Ù·Î ¹ØÀÇ owner´Â ¹Ý¼ÛµÈ ¸ÞÀÏ¿¡ ´ëÇؼ­ san2°èÁ¤ÀÌ ¸ÞÀÏÀ» ¹Þ½À´Ï´Ù. ¸¸¾à º¹¼ö(ÀûÀº ¼öÀÇ)ÀÇ °¡»óµµ¸ÞÀÎÀ» ¿î¿µÇÏ°í ÀÖ°í °¢°¢¿¡ ´ëÇؼ­ ¸ÞÀϸµÀ» ¿î¿µÇÏ°í ½Í´Ù¸é /etc/mail/virtusertable ÆÄÀÏÀ» ÀÌ¿ëÇØ¾ß ÇÕ´Ï´Ù. Áï À§¿Í °°Àº °æ¿ì¿¡ ÇØ´çÇÏ´Â µµ¸ÞÀÎÀÌ "linux.ac.kr" À̶ó¸é virusertable ÆÄÀÏ¿¡ newmessage@linux.ac.kr newmessage_linux newmessage@linuxer.com newmessage_linuxercom ..... ..... linuxer.com µµ¸ÞÀο¡ ´ëÇؼ­´Â °°Àº ¹æ¹ýÀ¸·Î À§¿Í °°ÀÌ /etc/aliases ÆÄÀÏ¿¡ newmessage_linuxercom À» Ãß°¡ÇÏ°í °¢°¢ÀÇ ¸ÞÀϸµÇÏ°í ½ÍÀº ¸ÞÀÏÀ» Àû¾îÁÖ¸é µË´Ï´Ù. À̶§ linux.ac.kr µµ¸ÞÀο¡ ´ëÇؼ­ ¸ÞÀÏÀ» newmessage@linuxer.ac.kr·Î º¸³»¸é °¢°¢ aaa@linux.ac.kr, bbb@sonamu.co.kr·Î °¡°í "ccc"´Â Çö ¸®´ª½º¹Ú½ºÀÇ °èÁ¤À¸·Î ¸ÞÀÏÀÌ °©´Ï´Ù. Áï "ccc"°èÁ¤¿¡ ´ëÇؼ­´Â Æ÷¿öµù µÇ¾î ÀÖ´Ù¸é ±×°÷À¸·Î ¸ÞÀÏÀÌ °¡°Ô µÉ °ÍÀÔ´Ï´Ù. Æ÷¿öµùÀ̳ª ´Ù¸¥ ¸ÅÇÎÀÌ µÇ¾î ÀÖÁö ¾Ê´Ù¸é Çö ¸®´ª½º¹Ú½ºÀÇ µµ¸ÞÀο¡ ´ëÇؼ­ ¸ÞÀÏÀ» ¹Þ¾Æ º¼ ¼ö ÀÖ½À´Ï´Ù. [Q]. .forward ÆÄÀÏÀÌ ÀÛµ¿ÇÏÁö ¾ÊÀº °Í °°½À´Ï´Ù. /etc/sendmail.cf ÆÄÀÏ¿¡¼­ ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇϽʽÿÀ # Forward file search path O ForwardPath=$z/.forward.$w:$z/.forward ±×¸®°í °³ÀΠȨµð·ºÅ丮 ¹Ø¿¡ ".forward"ÆÄÀÏÀ» ¸¸µé°í ±×°÷¿¡ Æ÷¿öµùÇÒ ¸ÞÀÏÁÖ¼Ò¸¦ Àû¾îÁÖ¸é µË´Ï´Ù. ±âŸ ÀÚ¼¼ÇÑ ³»¿ëÀº ´ÙÀ½ÀÇ ½ÎÀÌÆ®¸¦ ¹æ¹®Çϱ⠹ٶø´Ï´Ù. DontBlameSendmail and Enhanced File Security : http://www.sendmail.org/tips/DontBlameSendmail.html [Q]. virtusertable °ú .forward ÀÇ Â÷ÀÌÁ¡Àº ¹«¾ùÀԴϱî? ¼­·Î ¸ÅÇÎÀ̳ª Æ÷¿öµùÇÏ´Â °³³äÀº °°½À´Ï´Ù. ±»ÀÌ ±× Â÷ÀÌÁ¡À» ¸»Çϸé virtusertable Àº ½ÇÁ¦·Î Á¸ÀçÇÏÁö ¾ÊÀº °èÁ¤¿¡ ´ëÇؼ­³ª, ±×¸®°í µé¾î¿À´Â ¸ÞÀÏ¿¡ ´ëÇؼ­ ÇϳªÇϳª¾¿ ¸ÅÇÎÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª .forward ±â´ÉÀº Çö ¸®´ª½º¹Ú½º¿¡ Á¸ÀçÇÏ´Â °èÁ¤¿¡ ´ëÇؼ­¸¸ Àڱ⠰èÁ¤À¸·Î ¿À´Â ¸ðµç ¸ÞÀÏÀ» ´Ù¸¥ °èÁ¤À̳ª ´Ù¸¥ ÁÖ¼Ò·Î º¸³»´Â Â÷ÀÌÁ¡ÀÌ ÀÖ½À´Ï´Ù. [Q]. °¡»ó ¸ÞÀϼ­¹ö¿¡ ´ëÇؼ­ ¸ÞÀÏÀ» ¹ÞÀ¸¸é ±âº» ¸ÞÀϼ­¹ö·Î ¸ÞÀÏÀÌ ¿É´Ï´Ù. °¡»ó¸ÞÀϼ­¹ö·Î ¸ÞÀÏÀ» ¹Þ°í ½Í½À´Ï´Ù. ÀüÀûÀ¸·Î ¸ÞÀÏÀ» º¸³»´Â Ŭ¶óÀ̾ðÆ® ȯ°æ¼³Á¤ÀÌ ±âº» ¸ÞÀϼ­¹ö·Î ¼³Á¤µÇ¾î Àֱ⠶§¹®ÀÔ´Ï´Ù. Áï ¸ÞÀÏŬ¶óÀ̾ðÆ®ÀÇ SMTP¼­¹ö¸¦ °¡»ó¸ÞÀϼ­¹ö·Î ¼³Á¤ÇϽʽÿÀ. [Q]. pop3(pop-3)¿¡ Á¢¼ÓÀÌ µÇÁú ¾Ê¾Æ ¸ÞÀÏÀ» ¹ÞÀ» ¼ö°¡ ¾ø½À´Ï´Ù. imap ÆÐÅ°Áö·Î ¼³Ä¡Çß´Ù¸é /etc/inetd.conf ÆÄÀÏ°ú /etc/services ÆÄÀÏ¿¡¼­ pop-3 ¿¡ °ü·ÃµÈ ÁÖ¼®(#)À» Á¦°ÅÇÏ°í inetd¸¦ Àç°¡µ¿ÇÏ ½Ê½Ã¿À. [Q]. pop3µ¥¸ó¿¡ Á¢¼ÓÀº µÇ³ª ÀÚ²Ù Æнº¿öµå°¡ Ʋ¸®´Ù°í ³ª¿É´Ï´Ù. ·¹µåÇÞ6.0Àº ±âº»ÀûÀ¸·Î ½¦µµ¿ì Æнº¿öµå¸¦ »ç¿ëÇϹǷΠqpopper¸¦ ÄÄÆÄÀÏÇÒ ¶§ "--enable-specialauth" ¿É¼ÇÀ» ÁÖ°í ÄÄÆÄÀÏ ÇؾßÇÕ´Ï´Ù. [Q]. qpopper¸¦ ²À ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇؾßÇմϱî? ²À ¼³Ä¡ÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ·¹µåÇÞ ÆÐÅ°Áö·Î µÇ¾î ÀÖ´Â imap ÆÐÅ°Áö ¸¦ ¼³Ä¡ÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. À̶§ /etc/inetd.conf ÆÄÀÏ°ú /etc/services ÆÄÀÏ¿¡¼­ pop-3¿¡ °ü·ÃµÈ ÁÖ¼®(#)À» Á¦°ÅÇÏ°í inetd¸¦ Àç°¡µ¿ÇÑ ´ÙÀ½, ´ÙÀ½°ú °°ÀÌ pop-3¿¡ Á¢¼ÓÇØ º¸½Ê½Ã¿À # telnet localhost pop-3 ¶Ç´Â # telnet localhost 110 ±âº»ÀûÀ¸·Î pop3Àº 110¹øÀÇ ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÕ´Ï´Ù. imap ´Â 143¹øÀ» »ç¿ëÇÕ´Ï´Ù. ÀÌ»ó¾øÀÌ Á¢¼ÓÀÌ °¡´ÉÇÏ¸é ¸ÞÀÏŬ¶óÀ̾ð Æ®¿¡¼­ ¸ÞÀÏÀ» ¹Þ¾Æº¼ ¼ö ÀÖ½À´Ï´Ù. [Q]. ¸ÞÀÏ È£½ºÆ®¸¦ ¼³Á¤ÇÏ°í ¸ÞÀϼ­¹ö¿¡ ¸ÞÀÏÀ» º¸³»¸é ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö·Î ¹Ý¼ÛµË´Ï´Ù. MX·¹ÄÚµå ¼³Á¤ÀÌ À߸øµÇ¾ú½À´Ï±î? ----- Transcript of session follows ----- 553 mail.linux.ac.kr. config error: mail loops back to me (MX problem?) 554 ... Local configuration error ¼¾µå¸ÞÀÏ ÀÔÀå¿¡¼­ µé¾î¿À´Â ¸ÞÀÏ¿¡ ´ëÇؼ­ ¸ÞÀÏÀ» ¹ÞÀ» ¼ö½ÅÀÚ°¡ ¾ø±â ¶§¹®ÀÔ´Ï´Ù. Áï ÀÚü Å¥À×»óÅ¿¡ ÀÖ´Â °æ¿ìÀÔ´Ï´Ù. ÀÌ¿Í °°Àº ¹®Á¦´Â ÇϳªÀÇ ±â°è¿¡¼­ ¿©·¯ °³ÀÇ °¡»ó È£½ºÆ® À̸§À» °°ÀÌ »ç¿ëÇÒ °æ¿ì ¹ß»ýÇÕ´Ï´Ù. ÇϳªÀÇ ±â°è·Î ¿©·¯ °³ÀÇ µµ¸ÞÀÎÀ» °ü¸®ÇÑ´Ù¸é ¸ÞÀÏÀ» ¹ÞÀ» ¼ö½ÅÀÚ°¡ ÇÊ¿äÇÕ´Ï´Ù. ¸ÞÀÏÀ» ¹ÞÀ» ¼ö½ÅÀÚ´Â sendmail °æ¿ì /etc/sendmail.cw ÆÄÀÏ¿¡ ¼³Á¤ÇÕ´Ï´Ù. # cat /etc/sendmail.cw (¿¹: MX ·¹Äڵ带 °®´Â °¡»ó È£½ºÆ®¸¦ ¼ö½ÅÀÚ·Î ¼³Á¤) linux.ac.kr mail.linux.ac.kr (¡ç Áú¹®ÀÇ ³»¿ë¿¡ ÇØ´çµË´Ï´Ù.) ... namu.co.kr mail.namu.co.kr ... # ÀÌ¿Í ºñ½ÁÇÑ ¿¡·¯°¡ Àִµ¥ ´ÙÀ½°ú °°½À´Ï´Ù. Subject: Returned mail: Local configuration error ----- Transcript of session follows ----- 554 MX list for linux.ac.kr. points back to mail.linux.ac.kr ... Deferred: Connection refused by www.linux.ac.kr. 554 ... Local configuration error www.linux.ac.kr È£½ºÆ®´Â Á¤»óÀûÀ¸·Î Å¥À×»óÅ¿¡ ÀÖÁö¸¸ Á¤ÀÛ ÃÖÁ¾ ¸ñÀûÁö È£½ºÆ®(mail.linux.ac.kr)°¡ Å¥À×»óÅ¿¡ ÀÖ´Â °æ¿ì·Î linux.ac.kr µµ¸ÞÀÎÀ» ¼ö½ÅÀÚ·Î ¼³Á¤ÇÏÁö ¾ÊÀº °æ¿ìÀÌ´Ù. ÀÌ °°Àº °æ¿ì´Â ³×ÀÓ¼­¹ö¿¡¼­ @(origin)¸¦ www.linux.ac.kr È£½ºÆ®ÀÇ IP ÁÖ¼Ò¸¦ ÁöÁ¤ÇÑ °æ¿ìÀÔ´Ï´Ù. ¸¶Âù°¡Áö·Î mail.linux.ac.kr È£½ºÆ®¿¡ "linux.ac.kr" µµ¸ÞÀÎÀ» ¼ö½ÅÁö·Î ¼³Á¤ÇØ Áà¾ßÇÕ´Ï´Ù. [Q]. ProFTPd ½´ÆÛµ¥¸óÀ¸·Î ÀÛµ¿ÇÏ°í ÀÖ´Â °Í °°½À´Ï´Ù. standaloneÀ¸·Î ¼³Á¤ÇÏ°í ½Í½À´Ï´Ù. °¡»óÈ£½ºÆ®·Î ¿î¿µÇÏ·Á¸é ServerTypeÀ» "standalone"À¸·Î ¼³Á¤ÇÏ°í /etc/inetd.conf ÆÄÀÏ¿¡ ftp µ¥¸ó¿¡ ´ëÇÑ ÁÖ¼®À»(#)À» ó¸®ÇØ ÁֽʽÿÀ. [Q]. ProFTPd ¿¡ Anonymous Á¢¼ÓÀÌ Çã¿ëµÇÁö ¾Ê½À´Ï´Ù. ÇØ´ç °¡»óÈ£½ºÆ®³ª Global·Î "RequireValidShell off"·Î ¼³Á¤ÇϽʽÿÀ. [Q]. Anonymous ´Â incoming µð·ºÅ丮¿¡ ´ëÇÑ ¾²±â°¡ °¡´ÉÇϳª ÀÏ¹Ý À¯Àú´Â Anonymous°¡ ¾´ µð·ºÅ丮 ¹Ø¿¡ ¾²±â°¡ ºÒ°¡´ÉÇÕ´Ï´Ù. ÇØ´ç °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ UmaskÀ» 070 À̳ª 050À¸·Î ¼³Á¤ÇϽʽÿÀ. [Q]. incoming µð·ºÅ丮¿¡ ´ëÇÑ ÀÌ¾î ¿Ã¸®±â¸¦ ÇÏ°í ½Í½À´Ï´Ù. proftpd.conf ÆÄÀÏ¿¡ AllowStoreRestart on AllowRetrieveRestart on À» Ãß°¡ÇϽʽÿÀ. À̶§ "on" Áö½ÃÀÚ »çÀÌ´Â <ÅÇ>¸¦ ÀÌ¿ëÇϽʽÿÀ. [Q]. ProFTPd ¿¡¼­ Anonymous ·Î±×¿Â ½Ã welcome.msg¿¡ ³²Àº ¿ë·®À» Ç¥½ÃÇÏ°í ½Í½À´Ï´Ù. 1.2.0Pre06 ¹öÀü¿¡¼­´Â %F ±× ÀÌ»óÀÇ ¹öÀü¿¡¼­´Â %f·Î ¼³Á¤ÇϽʽÿÀ. %F´Â KB·Î ³ªÅ¸³»¸ç %f´Â "MB" ¹®ÀÚ¸¦ Æ÷ÇÔÇÑ MB·Î ³ªÅ¸³³´Ï´Ù. [Q]. FTP Á¢¼Ó½Ã ÀϹÝÀ¯ÀúÀÇ È¨µð·ºÅ丮¸¦ ±âº» Root·Î ¼³Á¤ÇÏ°í ½Í½À´Ï´Ù. proftpd.conf ÆÄÀÏ¿¡ GlobalÀ̳ª °¡»óÈ£½ºÆ®¿¡ ´ëÇؼ­ "DefaultRoot ~ " ¶ó°í ±âÀÔÇϽʽÿÀ ¶ÇÇÑ " ~ " ´ÙÀ½¿¡ ±×·ìÀ» ÁöÁ¤ÇÏ¸é ±× ±×·ì¿¡ ¼ÓÇÑ À¯Àú¿¡ ´ëÇؼ­¸¸ ÀÚ½ÅÀÇ È¨µð·ºÅ丮°¡ ±âº» Root°¡ µË´Ï´Ù. ±× ¹Ý´ë·Î " ~ !san2 "¶ó°í ÁöÁ¤Çϸé "san2" ±×·ìÀ» Á¦¿ÜÇÑ ¸ðµç ÀÏ¹Ý À¯Àú´Â ÀÚ½ÅÀÇ È¨µð·ºÅ丮°¡ ±âº»ÀÌ µË´Ï´Ù. µÎ °¡Áö¸¦ º´ÇàÇÏ¿© " ~ kkk, !san2 " ¶ó°í ¼³Á¤Çϸé "kkk"±×·ìÀº ÀÚ½ÅÀÇ È¨µð·ºÅ丮°¡ ±âº» Root°¡ µÇ°í ³ª¸ÓÁö ±×·ì°ú "san2" Àº Á¦¿Ü°¡ µË´Ï´Ù. ÇÑ°¡Áö ÁÖÀÇÇÒ Á¡Àº À¥ºê¶ó¿ìÀú·Î Á¢¼ÓÇÏ¸é »óÀ§ µð·ºÅ丮·Î À̵¿ÇÒ ¼ö ÀÖ´Ù´Â ´ÜÁ¡ÀÌ ÀÖ½À´Ï´Ù. À̶§´Â ¿Ïº®ÇÏÁö´Â ¾ÊÁö¸¸ others À¯Àú¿¡ ´ëÇÑ Æ۹̼ÇÀ» "1=x" Á¤µµ·Î ÁÖ¸é µË´Ï´Ù.(º¸¿Ï¿¡ ´ëÇؼ­ ¿Ïº®ÇÏÁö ¾ÊÀ½) Áï, # chmod 751 / # chmod 751 /home "san2"´Â Á¦¿ÜÀ̹ǷΠ# chgrp san2 / # chgrp san2 /home ÀÚ½ÅÀÇ µð·ºÅ丮¿¡ ´ëÇÑ º¸¿ÏÀº $ chmod 751 /home/san2 ·Î ¼³Á¤Çϸé Á¤È®ÇÑ °æ·Î¸¦ ¾ËÁö ¸øÇÑ ÀÌ»ó ³»¿ëÀÌ º¸ÀÌÁú ¾ÊÀ» °ÍÀÔ´Ï´Ù. 6. ¸¶Ä¡¸ç ÈÞ~~~ ±ÛÀ» ¾´´Ù´Â °ÍÀÌ ÀÌ·¸°Ô Èûµé ÁÙÀº ¸ô¶ú½À´Ï´Ù. 4ÀÏ µ¿¾ÈÀÇ Å×½ºÆ® ¹× ¹®¼­ÀÛ¼ºÀ» ³¡³»°í ÀÖ´Â ÁßÀÔ´Ï´Ù. ¾î¶»°Ô ÇÏ´Ùº¸´Ï ½Ã½ºÅÛÀ» ÀÛ»ì(?)³»´Â °æ¿ì°¡ ÀÖ¾î ´Ù½Ã ¼³Ä¡ÇÏ¿© Å×½º Æ®ÇÏ´Â ½Ç¼öµµ ÀÖ¾ú½À´Ï´Ù. ¹°·Ð ÇÊÀÚ´Â Æò»ó½Ã¿¡ Backup ¿¡ ¸¹Àº ½Ã°£À» ÅõÀÚÇϹǷΠ´Ù½Ã ¼³Ä¡ÇÏ¿© º¹±¸ÇÏ´Â µ¥¿¡´Â ¸¹Àº ½Ã°£À» ¿äÇÏÁö ¾Ê¾Ò½À´Ï´Ù. ÀÌ ±ÛÀ» ¾²°Ú´Ù°í ¸¾ ¸ÔÀºÁö °ÅÀÇ ÇÑ´Þ ¸¸¿¡ ¹®¼­¸¦ ¿Ï·áÇÏ¿´½À´Ï´Ù. ±× µ¿¾È °³ÀÎÀûÀÎ »çÁ¤ µîÀ¸·Î Â÷ÀÏÇÇÀÏ ¹Ì·ç´Ù º¸´Ï ÀÌ·¸°Ô µÇ¾ú½À´Ï´Ù. ÀÌ»óÀÇ ³»¿ë¿¡¼­ Áú¹®À̳ª Àǹ®³ª´Â Á¡ ¶Ç´Â º¸°­À̳ª À߸øµÈ Á¡ÀÌ ÀÖÀ¸¸é http://linuxer.suwon.ac.kr/cgi-bin/CrazyWWWBoard.cgi?db=qna ÀÇ Áú¹®°ú ´äº¯ÀÇ °Ô½ÃÆÇÀ» ÀÌ¿ëÇØ ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù. ³¡±îÁö Àоî Áּż­ °¨»çÇÕ´Ï´Ù. 1999³â 9¿ù 16ÀÏ "µµ½Ã Ãø·®½ÇÇè½Ç" ¿¡¼­ ¹é¼ö"»êÀÌ" ¾¸..........