릴리스 노트
제품 공지
X-Forwarded-For 또는 remote_addr 필드를 사용하여 클라이언트 IP를 직접 가져올 수 있습니다. 레이어 7 CLB의 액세스 로그는 Configuring Access Logs를 참고하십시오.x86\\Release 또는 x64\\Release 디렉터리의 F5XForwardedFor.dll을 특정 디렉터리(예시: 본문의 C:\\ISAPIFilters)에 복사하고 IIS 프로세스에 이 디렉터리에 대한 읽기 권한이 있는지 확인합니다.F5XForwardedFor.dll의 전체 경로를 입력한 다음 확인을 클릭합니다.x86\\Release 또는 x64\\Release 디렉터리의 F5XFFHttpModule.dll 및 F5XFFHttpModule.ini를 특정 디렉터리(예시: 본문의 C:\\x_forwarded_for)에 복사하고 IIS 프로세스에 이 디렉터리에 대한 읽기 권한이 있는지 확인합니다.





wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gztar zxvf mod_rpaf-0.6.tar.gzcd mod_rpaf-0.6/usr/bin/apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c
/etc/httpd/conf/httpd.conf를 수정합니다.LoadModule rpaf_module modules/mod_rpaf-2.0.soRPAFenable OnRPAFsethostname OnRPAFproxy_ips IP 주소(CLB에서 제공하는 공중망 IP가 아니며, 특정 IP에 대해서는 Apache 로그를 조회하고, 일반적으로 두 개의 IP 주소가 있으며 둘 다 입력해야 함)RPAFheader X-Forwarded-For
/usr/sbin/apachectl restart
--with-http_realip_module을 추가하려면 Nginx를 다시 컴파일해야 합니다.yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-develwget http://nginx.org/download/nginx-1.17.0.tar.gztar zxvf nginx-1.17.0.tar.gzcd nginx-1.17.0./configure --prefix=/path/server/nginx --with-http_stub_status_module --without-http-cache --with-http_ssl_module --with-http_realip_modulemakemake install
vi /etc/nginx/nginx.conf
xx.xx.xx.xx를 리얼 IP 주소(CLB에서 제공하는 공중망 IP가 아님)로 변경해야 합니다. 특정 IP 주소에 대해 이전 Nginx 로그를 쿼리합니다. IP 주소가 여러 개인 경우 모든 IP 주소를 입력해야 합니다.fastcgi connect_timeout 300;fastcgi send_timeout 300;fastcgi read_timeout 300;fastcgi buffer_size 64k;fastcgi buffers 4 64k;fastcgi busy_buffers_size 128k;fastcgi temp_file_write_size 128k;set_real_ip_from xx.xx.xx.xx;real_ip_header X-Forwarded-For;
service nginx restart
cat /path/server/nginx/logs/access.log
피드백