From owner-FreeBSD-users-jp@jp.freebsd.org  Thu May 10 01:45:11 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA53366;
	Thu, 10 May 2001 01:45:11 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from mail2.netwave.or.jp (mail2.netwave.or.jp [202.214.48.115])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id BAA53361
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 10 May 2001 01:45:10 +0900 (JST)
	(envelope-from senbo@mail2.netwave.or.jp)
Received: from AMDK6PR200 (cm245.cms2.catvnet.ne.jp [210.142.249.245])
	by mail2.netwave.or.jp (8.9.3+3.2W/3.7W) with SMTP id BAA13375
	for <FreeBSD-users-jp@jp.freebsd.org>; Thu, 10 May 2001 01:45:07 +0900 (JST)
From: "Shinichiro Senbo" <senbo@mail2.netwave.or.jp>
To: <FreeBSD-users-jp@jp.freebsd.org>
Date: Thu, 10 May 2001 01:45:05 +0900
Message-ID: <NDBBIJDJILEEEEJBBDILEECMCKAA.senbo@mail2.netwave.or.jp>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <NDBBIJDJILEEEEJBBDILIEADCKAA.senbo@mail2.netwave.or.jp>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Importance: Normal
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 61319
Subject: [FreeBSD-users-jp 61319] RE: ftp =?ISO-2022-JP?B?GyRCJTUbKEI=?=
 =?ISO-2022-JP?B?GyRCITwlUyU5TVc1YSRyQj4kTiVeJTclcyRLJWobKEI=?=
 =?ISO-2022-JP?B?GyRCJUAlJBsoQg==?=
	=?ISO-2022-JP?B?GyRCJWwlLyVIJDkkayRLJE8hKRsoQg==?= 
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: senbo@mail2.netwave.or.jp

$B@tJ]!J$;$s$\!K$G$9!#(B
$B;~4V$,$J$+$J$+<h$l$J$/$F!"6u$$$?;~4V$G?'!9(B
$B3NG'$7$F$_$^$7$?$,!":G=*E*$KFbIt$N(Bftp$B%5!<%P$K(B
$B%$%s%?!<%M%C%H$+$iL5;v@\B3$G$-$^$7$?!#(B
$B$o$?$J$Y$5$s!"1v8+$5$s!"CfED$5$s!";{K\$5$s(B
$B$465<($"$j$,$H$&$4$6$$$^$7$?!#(B

proxy(delegate)$B$r(BFireWall$B$K%$%s%9%H!<%k$7$F!"(B
$B%$%s%?!<%M%C%H$+$i(BFireWall$BFbIt$N(Bftp$B%5!<%P$K@\B3(B
$B$9$k$h$&$K$7$^$7$?!#(B
$B;d$,9T$C$?$3$H$r0J2<$K<($7$^$9!#(B

$B#1!%(Bdelegate$B$NF~<j(B
    "ftp://ftp.etl.go.jp/pub/DeleGate/delegate.7.3.0.tar.gz"
$B#2!%(Bdelegate$B$N%$%s%9%H!<%k(B
    cd /var/tmp
    tar xvfz delegate.7.3.0.tar.gz
    cd delegate.7.3.0
    make "PATH=.:$PATH"
        $B!&(B
        $B!&(B
    $B%a!<%k%"%I%l%9$NF~NO8e!"(B"Y"$BF~NO(B
    install -s src/delegate /usr/local/sbin
$B#3!%(Bdelegated$B<+F05/F0$N@_Dj(B
    /usr/local/etc/rc.d/delegated.sh $B$r:n@.(B
    ===== delegated.sh $B$3$3$+$i(B ====
    #!/bin/sh
    /usr/local/sbin/delegated -P21 SERVER=ftp://-/-/ MOUNT="/
ftp://192.168.5.150/" RELIABLE=*
    echo 'delegated Start !!!'
    echo '(/usr/local/etc/rc.d/delegated.sh)'
    ===== delegated.sh $B$3$3$^$G(B ====
$B#4!%(B/etc/inetd.conf $B$N=$@5(B
    "ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l"
    $B$N%9%F%C%W$r%3%a%s%H%"%&%H(B
    $B!J<B:]$O!"4{$K(B"ftp stream tcp nowait nobody /usr/local/bin/socket socket
192.168.5.150 ftp"$B$K(B
      $BJQ99$7$F$$$?$N$G!"$3$A$i$r%3%a%s%H%"%&%H$7$F$$$^$9!K(B
$B#5!%(BFreeBSD$B$N:F5/F0(B
$B#6!%%$%s%?!<%M%C%H$+$i@\B3(B
    ftp 210.XXX.YYY.ZZZ
    anonymous $B$NF~NO(B
    senbo@mail2.netwave.or.jp $B$NF~NO(B
        $B!&(B
        $B!&(B
    $B@\B3@.8y!*!*(B
    ls -la $B$G0lMw<hF@=PMh$?(B
    get $B$G%U%!%$%k%@%&%s%m!<%I@.8y(B

ftp$B@\B3%m%0$rE:IU$7$^$9(B
========= $B$3$3$+$i(B(IP$B%"%I%l%9$H(BDNS$BL>$N0lIt$K<j$r2C$($F$$$^$9(B)
===============
C:\WINDOWS>ftp 210.XXX.YYY.ZZZ
Connected to 210.XXX.YYY.ZZZ.
220- ZZZZZ.YYYY.catvnet.ne.jp PROXY-FTP server (DeleGate/7.3.0) ready.
220-   @ @
220-  ( - ) { DeleGate/7.3.0 (April 27, 2001) }
220- AIST Research Product No. 2000-ETL-198715-01
220- Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
220- Copyright (c) 2001 National Institute of Advanced Industrial Science
and Te
chnology (AIST)
220- WWW: http://www.delegate.org/delegate/
220- --
220- You can connect to a SERVER by `user' command:
220-    ftp> user username@SERVER
220- or by `cd' command (after logged in as an anonymous user):
220-    ftp> cd //SERVER
220- Cache is enabled by default and can be disabled by `cd .' (toggle)
220- This (proxy) service is maintained by 'root@ROUTER.myname.my.domain'
220-extended FTP [MODE XDC][XDC/BASE64]
220
User (210.XXX.YYY.ZZZ:(none)): anonymous
331- Guest login ok, enter your E-mail address as password.
331  Default value is: ?
Password:
230- Guest login ok, your E-mail address is <senbo@mail2.netwave.or.jp>
230  Now you can select a FTP SERVER by cd //SERVER
ftp> ls -la
200 PORT command successful [delaying].
150-- NLST for anonymous@192.168.5.150.
220- WWW.myname.my.domain FTP server (Version wu-2.6.1(8) Sat Sep 9 11:01:34
JST
 2000) ready.
331- Guest login ok, send your complete e-mail address as password.
230-Welcome, archive user!  This is an experimental FTP server.  If have any
230-unusual problems, please report them via e-mail to
root@WWW.myname.my.domain

230-If you do have problems, please try using a dash (-) as the first
character
230-of your password -- this will turn off the continuation messages that
may
230-be confusing your ftp client.
230-
230- Guest login ok, access restrictions apply.
150- Opening ASCII mode data connection for file list.
150--  @ @
150  \( - )/ -- { connected to `192.168.5.150' }
welcome.msg
226 Transfer complete.
ftp: 13 bytes received in 0.00Seconds 13000.00Kbytes/sec.
ftp> cd incoming
250 CWD command successful.
ftp> ls -la
200 PORT command successful [translated to PASV by DeleGate].
150 Opening ASCII mode data connection for /bin/ls.
total 21385
drwxrwxr-x   2 0        10           1024 Mar  1 01:38 .
drwxrwxr-x   8 0        10           1024 Jan 29 00:00 ..
-rw-r--r--   1 0        0        21809132 Mar  1 01:38
jdk-1_2_2_007-linux-i386.
tar.gz
226 Transfer complete.
ftp: 218 bytes received in 0.06Seconds 3.63Kbytes/sec.
ftp> binary
200 Type set to I.
ftp> get jdk-1_2_2_007-linux-i386.tar.gz
200 PORT command successful [translated to PASV by DeleGate].
150 Opening BINARY mode data connection for jdk-1_2_2_007-linux-i386.tar.gz
(218
09132 bytes).
226 Transfer complete.
ftp: 21809132 bytes received in 46.85Seconds 465.51Kbytes/sec.
ftp> bye
221-You have transferred 21809132 bytes in 1 files.
221-Total traffic for this session was 21810605 bytes in 3 transfers.
221-Thank you for using the FTP service on WWW.myname.my.domain.
221 Goodbye.

C:\WINDOWS>
========= $B$3$3$^$G(B ===============

# $B:G=i!"(B natd $B$N(B "punch_fw"$B%*%W%7%g%s$r8!F$$7$^$7$?$,!"(B
# FreeBSD 4.1-RELEASE $B$+$iBP1~$J$N$G$"$-$i$a$^$7$?!#(B
# $B!J<+J,$N(BFireWall $B%^%7%s$N%P!<%8%g%s$O(B
#   FreeBSD 3.5.1-RELEASE$B$J$N$G!K(B
#
# $B$"$j$,$H$&$4$6$$$^$7$?!#(B

==============================================================
$B9a@n8)9b>>;T54L5D.(B
$B@tJ]!!?-0lO:(B
NiftyID:QZW03255
E-Mail:senbo@mail2.netwave.or.jp
==============================================================


