리눅스 분류
책에 나와있는 snort 스크립트인대 실행이 안됩니다.
작성자 정보
- 욱욱 작성
- 작성일
컨텐츠 정보
- 2,841 조회
- 0 추천
- 목록
본문
책에 나와있는 ./snort -c ./etc/snort.conf 로 문법검사를 하여도 메시지는 없습니다.
하지만 stop,start 등 구동이 되질 않습니다.
status에선 종료되었으나 subsys가 잠겨있음.
이렇게 뜨내요.
문제점이 있는건지 고수님들 도움바랍니다.
======================================
#!/bin/sh
#
# snort IDS
#
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n "Starting snort: "
daemon /usr/local/bin/snort -d -D \
-c /usr/local/snort/etc/snort.conf
touch /var/lock/subsys/snort
echo
;;
stop)
echo -n "Stopping snort: "
killproc snort
rm -f /var/lock/subsys/snort
echo
;;
restart)
$0 stop
$0 start
;;
status)
status snort
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
~
관련자료
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.