>> Delete Reply from No. 1584 article
No. RE: 코드레드 여기저기 짬뽕 팁

등록 2001-08-23 00:36:00     조회 7
이름 김정균    

		제일 좋은 방법은 iptables 의 ipt_string 을 사용해서
패킷 자체를 원천적으로 막아 버리는 방법이 제일 좋지요 :-)
 iptables -A INPUT -p tcp --tcp-flags ACK ACK --dport 80 -m string
       --string "default.ida?" -j REJECT --reject-with tcp-reset
 과 같이 할수 있습니다. 단 -m string 을 사용하기 위해서는
iptables 와 커널 컴파일이 필요하죠 ^^;
 ftp://mirror.oops.org 의 UPDATES 에 있는 iptables rpm package 를
받으시면 /usr/doc/iptables/README 또는 /usr/share/doc/iptables/README
를 보시면 설명해 놓았습니다. ^^; 참고록 2.4.9 는 max/min 함수의 변화
때문에 제 ftp 의 커널 디렉토리에 있는 oops_patch 에서 ipt_string.patch
를 받으셔서 패치하셔야 합니다.
 : oops.org에 있는 팁과 여기 올라온 팁을 합해보면...
:
: /etc/httpd/conf/httpd.conf 파일을 편집합니다.
:
: LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
: LogFormat "%h %l %u %t "%r" %>s %b" common
: LogFormat "%{Referer}i -> %U" referer
: LogFormat "%{User-agent}i" agent
:
: 부분 다음에;
:
: SetEnvIf Request_URI .ida CodeRedII
: SetEnvIf Referer .ida CodeRedII
:
: 추가.
:
: CustomLog /var/log/httpd/access_log combined
:
: 줄에 추가해서;
:
: CustomLog /var/log/httpd/access_log combined env=!CodeRedII
:
: 로 만들고.
:
: #
: # Redirect allows you to tell clients about documents which used to exist in
: # your server's namespace, but do not anymore. This allows you to tell the
: # clients where to look for the relocated document.
: # Format: Redirect old-URI new-URL
: #
:
: 다음에;
:
: Redirect /default.ida http://www.microsoft.com/ :
: 추가...
: 그리고,
:
: touch /var/www/html/default.ida
:
: 음... 고수들의 조언부탁드립니다.
:
: --
: ICQ#: 103231199
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved