From owner-FreeBSD-users-jp@jp.freebsd.org  Thu Apr  5 19:33:50 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id TAA10150;
	Thu, 5 Apr 2001 19:33:50 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from tortoise.jp.freebsd.org (root@tortoise.jp.FreeBSD.ORG [210.157.158.41])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id TAA10145
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 5 Apr 2001 19:33:50 +0900 (JST)
	(envelope-from mistral@imasy.or.jp)
Received: from ns5.sony.co.jp ([3ffe:50f:10:1:290:27ff:fe5c:d112])
	by tortoise.jp.freebsd.org (8.11.3+3.4W/8.11.3) with ESMTP/inet6 id f35AXlb24042
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 5 Apr 2001 19:33:47 +0900 (JST)
	(envelope-from mistral@imasy.or.jp)
Received: from mail3.sony.co.jp (gatekeeper8.Sony.CO.JP [202.238.80.22])
	by ns5.sony.co.jp (R8) with ESMTP id f35AXi382316
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 5 Apr 2001 19:33:44 +0900 (JST)
Received: from mail3.sony.co.jp (localhost [127.0.0.1])
	by mail3.sony.co.jp (R8) with ESMTP id f35AXio21405
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 5 Apr 2001 19:33:44 +0900 (JST)
Received: from mistral.imasy.or.jp ([43.17.43.194])
	by mail3.sony.co.jp (R8) with ESMTP id f35AXhS21399
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 5 Apr 2001 19:33:43 +0900 (JST)
Received: (from yohta@localhost)
	by mistral.imasy.or.jp (8.11.3/3.7Wpl2-010215) id f35AXfx41136;
	Thu, 5 Apr 2001 19:33:41 +0900 (JST)
From: mistral@imasy.or.jp (Yoshihiko SARUMARU)
To: FreeBSD-users-jp@jp.freebsd.org
In-Reply-To: Your message of "Thu, 05 Apr 2001 18:23:58 +0900".
	<4.3.2-J.20010405174736.030addc8@zenon.rite.or.jp>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Mailer: mnews [version 1.22PL5] 2001-02/07(Wed)
Date: Thu, 5 Apr 2001 19:33:41 +0900
Message-ID: <010405193341.M0141033@mistral.imasy.or.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: FreeBSD-users-jp 60605
Subject: [FreeBSD-users-jp 60605] Re: TCP_WRAPPER
 =?ISO-2022-JP?B?GyRCJEskRCQkJEYbKEI=?= 
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: mistral@imasy.or.jp

$B!!1n4]$G$9!#(B

2001-04-05($BLZ(B) 18:23:58.$B:"!"(Btetuya@rite.or.jp$B$5$s$O=q$-$^$7$?!#(B

> inetd$B$N4IM}2<$KCV$-!"(Btcp_wrapper$B$G(BACL$B$7$?$$%G!<%b%s$O(B/usr/libexec$B$KCV$+$J$$$H(B 
> $B$$$1$J$$$N$G$7$g$&$+!)(B

  $B$$$$$(!"<+J,$G;n$;$P$o$+$j$^$9$,!"$=$s$J$3$H$O$"$j$^$;$s!#(B
  inetd $B$N(B -w $B%*%W%7%g%s$N0UL#$r9M$($F$/$@$5$$!#(B
  tcpdchk $B$O(B FreeBSD $B$G$O$"$^$j0UL#$,$"$j$^$;$s!#(B
  TCP_Wrapper $B$,(B inetd $B$K<h$j9~$^$l$F$$$J$+$C$?;~Be$N0dJ*$G$9(B($B8@(B
$B$$2a$.!)(B)$B!#(B


  $B$?$H$($P(B /usr/local/sbin/ $B$K%$%s%9%H!<%k$5$l$k(B swat (Samba $B$N(B 
web$B@_Dj%D!<%k(B) $B$O(B inetd $B$+$i5/F0$5$;$^$9$,!"(B/etc/hosts.allow $B$G(B
$B@)8f2DG=$G$9!#(B
# $B$U$D$&$O(B smb.conf $B$G%"%/%;%9@)8B$7$^$9$,!#(B


mistral% grep swat /etc/inetd.conf
swat    stream  tcp     nowait.400 root /usr/local/sbin/swat    swat
mistral% grep swat /etc/hosts.allow
swat : ALL : deny
mistral% telnet 127.0.0.1 901
Trying 127.0.0.1...
Apr  5 19:22:57 mistral /kernel: Connection attempt to TCP ::0001:901 from ::0001:3259
Connected to localhost.
Escape character is '^]'.
Apr  5 19:22:57 mistral inetd[41096]: refused connection from localhost, service swat (tcp)
Connection closed by foreign host.


> sshd$B<+BN$r(Binetd$B$+$i!"F0:n$5$;$k$3$H$O!"?J$a$i$l$F$$$J$$$N$G$9$,!"2?$H$J$/!"DL(B 
> $B>o;H$C$F$$$J$$%G!<%b%s$,(B
> $BF0$$$F$$$k$N$,$$$d$G$7$?$N$G!"EvJ,!"(Binetd$B$+$i$N;HMQ$r$7$h$&$H9M$($F$$$^$9!#(B

  $BDL>o;H$C$F$$$J$1$l$P!"(Bselect() $B$G$:!<$C$HBT$A$KF~$C$F2?$b$7$^(B
$B$;$s$+$i!"FC$K5$$K$9$kI,MW$O$J$$$G$9!#(B
  $B$^$!<qL#$NLdBj$+$b$7$l$^$;$s$,!#(B

--
$B1n4]K'I'(B (Yoshihiko SARUMARU)
mail: mistral@imasy.or.jp       web: http://www.imasy.or.jp/~mistral/
