Reverse / Forward ÇÁ·Ï½Ã¸¦ ÀÌ¿ëÇÒ¶§ Á¢±Ù ¾ÆÀÌÇǺκп¡ Ŭ¶óÀ̾ðÆ® IP¸¦ Á¤»óÀûÀ¸·Î º¯È¯½ÃÄÑÁÖ´Â ¾ÆÆÄÄ¡ ¸ðµâÀÌ´Ù.
¹°·Ð PHP ÇÔ¼ö¿¡¼ $HTTP_X_FORWARDED_FOR ȯ°æº¯¼ö¸¦ ÀÌ¿ëÇϸé Á¤»óÀûÀÎ ¾ÆÀÌÇÇ ¸®½ºÆ®µéÀÌ Ãâ·ÂµÇ±ä ÇÏÁö¸¸ À̹ø¹æ¹ýÀº ¾ÆÆÄÄ¡ ¸ðµâ mod_rpaf ¸¦ ÀÌ¿ëÇؼ IP ÃßÀûÀ» ÇÏ´Â ¹æ¹ýÀÌ´Ù.
http://stderr.net/apache/rpaf/
mod_rpaf-0.6.tar.gz 01-Jan-2008 22:42 8k [ 2008³â 1¿ù 01ÀÏ ÀÌÈÄ·Î ¾ÆÁ÷ ¾÷µ¥ÀÌÆ® µÈ°Ç ¾ø´Âµí º¸¿©Áø´Ù.)
INSTALL
[root@mojily src]# wget
http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz[root@mojily src]# tar zxvf mod_rpaf-0.6.tar.gz
Compile and Install for Apache 1.3:[root@mojily src]# apxs -i -a -c mod_rpaf.c
Compile and Install for Apache 2.0:
[root@mojily src]# apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c
¾ÆÆÄÄ¡ ¸ðµâÆú´õ¿¡ mod_rpaf.so ÆÄÀÏÀÌ »ý¼ºµÇ¾ú´Ù.
ÀÌÁ¦ httpd.con ÆÄÀÏ¿¡ ÇØ´ç ¸ðµâÀ» »ðÀÔÇØÁÖ°í Àû¿ëÇØÁØ´Ù.
httpd.conf »ðÀÔ
Edit for Apache 1.3:
LoadModule rpaf_module libexec/mod_rpaf.so
AddModule mod_rpaf.c
Edit for Apache 2.0:
LoadModule rpaf_module modules/mod_rpaf-2.0.so
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 211.119.250.2 # ¾ÆÆÄÄ¡ ·Î±×»ó¿¡ ÂïÈ÷´Â ÇÁ·Ï½Ã ¾ÆÀÌÇÇ!
RPAFheader X-Forwarded-For
ÀÌÁ¦ ¾ÆÆÄÄ¡ ·Î±×¸¦ ÅëÇؼ È®ÀÎÇغ»´Ù..
¾ÆÆÄÄ¡ ·Î±×»Ó¸¸ ¾Æ´Ï¶ó $REMOTE_ADD ȯ°æº¯¼ö°ªµµ Á¦´ë·Î º¯°æµÈ´Ù.