ssh 는 standalone 이지만
tcp_wrapper 의 라이브러리를 이용하기 때문에
tcp_wrapper 의 세팅이 적용됩니다.
:
: 그러면 sshd도 standalone으로 돌리는데..
: 왜 그건 tcp_wrapper에 자동으로 막혀서 접속이 안돼는지 아시나요?
:
: 이것도 portsentry랑 상관없는 건가요? ^^
:
:
: : hosts.deny(tcp_wrappers)는 inetd로 운영되는 데몬만 적용을 받습니다.
: : standalone 데몬은 영향을 안받죠..
: :
: : portsentry를 빠삭하게 아는것과는 상관없는듯 하군요..
: :
: :
: :
: : :
: : : 지금 해당 서버에 portsentry를 돌리고 있습니다. 그래서 test로 다른쪽
: : : 서버에서 포트스캔을 했더니 해당서버 /etc/hosts.deny파일에 ip가
: : : 정상적으로 적혀 있더군요.. ALL:211.174.***.***
: : :
: : : 그래서 포트스캔을 한 서버에서 ssh와 ftp접속을 해봤더니.. ssh는
: : : 접속이 안됐고.. ftp는 접속이 정상적으로 되더군요..
: : : 당연히 ftp도 접속이 되지 않아야 하지 않나요?
: : :
: : : [root@MRTG root]# ssh root@211.174.***.***
: : : ssh_exchange_identification: Connection closed by remote host
: : : [root@MRTG root]# ftp 211.174.***.***
: : : Connected to 211.174.***.*** (211.174.***.***).
: : : 220 PorFTPd Account Server ready ..
: : : Name (211.174.***.***:root):
: : :
: : : 그렇다면 portsentry.conf에서 어딜 더 봐줘야 하나요?
: : : 제가 설정해 놓은 부분(주석제거)은 아래와 같거든요..
: : :
: : : # Use these if you just want to be aware:
: : : TCP_PORTS="21,22,25,53,80,110,3306"
: : : UDP_PORTS="21,22,25,53,80,110,3306"
: : :
: : : ADVANCED_PORTS_TCP="1024"
: : : ADVANCED_PORTS_UDP="1024"
: : :
: : : # Default TCP ident and NetBIOS service
: : : ADVANCED_EXCLUDE_TCP="113,139"
: : : # Default UDP route (RIP), NetBIOS, bootp broadcasts.
: : : ADVANCED_EXCLUDE_UDP="520,138,137,67"
: : :
: : : # Hosts to ignore
: : : IGNORE_FILE="/usr/local/psionic/portsentry/portsentry.ignore"
: : : # Hosts that have been denied (running history)
: : : HISTORY_FILE="/usr/local/psionic/portsentry/portsentry.history"
: : : # Hosts that have been denied this session only (temporary until next restart)
: : : BLOCKED_FILE="/usr/local/psionic/portsentry/portsentry.blocked"
: : :
: : : # Generic Linux
: : : KILL_ROUTE="/sbin/route add -host $TARGET$ gw 333.444.555.666"
: : : # ipchain support for Linux (no logging of denied packets)
: : : KILL_ROUTE="/sbin/ipchains -I input -s $TARGET$ -j DENY"
: : : ................
: :
: : --
: : EcusE is not EQUUS :)