|
|
|
|
|
|
ۼ : 05-09-09 16:27
tcp_wrappers ġ os: solaris 9 |
۾ :
ȸ : 10,686
|
TCP Ʈũ (finger, ftp, telnet )û ϱ û ȣƮ Ȼ ʿ ˻縦 Ͽ DZ ֵ ִ αԴϴ.
α ٿε
Ű α www.sunfreeware.com ֽϴ.
tcp_wrappers-7.6-sol9-sparc-local.gz
---------------------------------------------------------------------------------
Ű ġ.
(file>root)/#gunzip tcp_wrappers-7.6-sol9-sparc-local.gz
(file>root)/#pkgadd -d tcp_wrappers-7.6-sol9-sparc-local
ġ δ
/usr/local/bin ġ ˴ϴ.
---------------------------------------------------------------------------------
inetd.conf
(file>root)/#vi /etc/inetd.conf
ġ 158 ° ٿ ֽϴ. -----> ٹȣ :set nu
Ư ͳ Ʈũ ؼ ۵ ϴ ֽϴ. ̹ /etc/services Ͽ 'service name' Ʈ, ؼ Ư Ѵ.
- inetd.conf .
telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd
ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -a
- inetd.conf .
telnet stream tcp nowait root /usr/local/bin/tcpd in.telnetd
ftp stream tcp nowait root /usr/local/bin/tcpd in.ftpd -a
wq!
"/etc/inetd.conf"ȭϿ ftp, telnetܿ finger, exec, rsh, rlogin,tftp, talk, comsat ٸ tcp Ǵ udp 鵵 Ҽ Ƿ Ʈ ؾ ʿ䰡 ִ /usr/local/bin/tcpd ü Ҽ ֽϴ.
---------------------------------------------------------------------------------
hosts.allow hosts.deny .
-ش (hosts.allow) ּҿ ٺ(hosts.deny) մϴ.
ϵ ġ /etc ؿ ˴ϴ.
-hosts.deny
(file>root)/#vi /etc/hosts.deny
ALL:ALL
wq!
ALL: ALL ----> ALL ǹϸ, κ ALL (IP address) ǹմϴ.
-hosts.allow
(file>root)/#vi /etc/hosts.allow
in.telnetd:192.168.0.55 , 192.168.0.
in.ftpd -a : 192.168.0.55 , 192.168.0.
wq!
---------------------------------------------------------------------------------
inetd -s
(test>root)/# ps -ef | grep inetd
root 154 1 0 15:32:53 ? 0:00 /usr/sbin/inetd -s
root 585 544 0 16:12:07 pts/5 0:00 grep inetd
(test>root)/# pkill -HUP 154
---------------------------------------------------------------------------------
Ʈ....
̿ ϸ hosts.allow ip ϴ°
ֽϴ.
(file>root)/# telnet 192.168.0.212 4001
Trying 192.168.0.212...
Connected to 192.168.0.212.
Escape character is '^]'.
Connection closed by foreign host.
(file>root)/# ftp 192.168.0.212 4002
Connected to 192.168.0.212.
421 Service not available, remote server has closed connection
ftp>
|
|
|
Total
185
|
|
|
|
|
|
|
|