[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:23050] delegate での FTP 中継



はじめまして。坂本と申します。

potatoマシンにPPXPインストールとIPマスカレード設定(カーネルの再構築による設
定)
をしてダイアルアップルータとして使用しています。クライアントはWindows2000で
す。

この環境でインターネット上にあるFTPサーバに接続する場合、パッシブモードが利
用で
きるFTPサーバに関しては問題なく接続・利用できるのですが、パッシブモードが利
用で
きないFTPサーバに対しては、PORTコマンドが受け付けられないため接続はできるも
の
の、利用ができません。私なりに調べて、
例えば FTPクライアント(192.168.1.3) が PORT 192,168,1,3,5,12 とやった場
合、
コマンド内の 192,168,1,3 部分は当然マスカレードされていないアドレスなわけで
す
から、ルータにしているpotatoマシン(aaa.bbb.ccc.ddd)と接続していると思ってい
るFT
Pサーバ側に拒否されるのでは?と考えました。プロクシサーバによる中継ならばこ
の点
は問題にならないと思い、 delegate5.9.12-1.deb をインストールし、delegateの
ウェ
ブサイト等を参考に

# delegated -P8021 SERVER=ftp

とやったのですが、

# <DeleGate/5.9.12 by ysato@xxxxxxxxx> [8440] -P8021 READY AIST Research
Product No. 1994-ETL-8715-1
Copyright (c) 1994-1999 Yutaka Sato
Copyright (c) 1994-1999 Electrotechnical Laboratory (ETL), AIST, MITI
-delegated[8440]- Warning! ADMIN="your_mail_address" should be set.
DeleGate: cannot create ${ACTDIR}/pid/${PORT}

と表示されました。表示を 「ADMIN="your_mail_address"」を指定しなければなら
な
い」という意味に受け取り、

# delegated -P8021 SERVER=ftp ADMIN="root@xxxxxxxxxx"
とやりましたら、今度は

# -delegated[8442]- DeleGate: cannot open server port :8021

と表示され、これは「8021番のポートが使えない」という意味に解釈し、

# less /etc/services

して確認しましたが、8021番に関する記述を見つけることができませんでした。その
後、
MLの過去ログや検索エンジンで参考になりそうな文書を探してみたのですが、見つけ
る
ことができず、ここまでが私の自力での限界と感じ、MLに質問させていただくにいた
り
ました。「この文書を読みなさい」「ここは調べたのか?」という情報でも結構で
す。
次に私がすべきことの手がかりを与えていただければ幸いです。以下にご教授いただ
く
のに必要かと(私なりに)思う情報を記載します(他に「こういう情報を提供しなけ
れ
ばアドバイスのしようがないよ」ということがあれば、教えていただけると幸いで
す)。
よろしくお願いします。


#dmesg
Linux version 2.2.15 (root@hoge) (gcc version 2.95.2 20000313 (Debian
GNU/Linux)) #1 Sat Jul 1 06:34:48 JST 2000
Detected 200459379 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 399.77 BogoMIPS
Memory: 30960k/32768k available (828k kernel code, 416k reserved, 524k data,
40k init)
Dentry hash table entries: 4096 (order 3, 32k)
Buffer cache hash table entries: 32768 (order 5, 128k)
Page cache hash table entries: 8192 (order 3, 32k)
CPU: Intel Pentium 75 - 200 stepping 0c
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
Intel Pentium with F0 0F bug - workaround enabled.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfd9bc
PCI: Using configuration type 1
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 32768 bhash 32768)
Starting kswapd v 1.5
parport0: PC-style at 0x3bc [SPP]
Serial driver version 4.27 with no serial options enabled
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
lp0: using parport0 (polling).
Uniform Multi-Platform E-IDE driver Revision: 6.30
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX3: IDE controller on PCI bus 00 dev 41
PIIX3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfe80-0xfe87, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xfe88-0xfe8f, BIOS settings: hdc:pio, hdd:pio
PDC20262: IDE controller on PCI bus 00 dev 60
PDC20262: not 100% native mode: will probe irqs later
PDC20262: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode.
    ide2: BM-DMA at 0x1200-0x1207, BIOS settings: hde:DMA, hdf:pio
    ide3: BM-DMA at 0x1208-0x120f, BIOS settings: hdg:DMA, hdh:pio
hda: WDC AC32100H, ATA DISK drive
hde: IBM-DPTA-372050, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide2 at 0x1268-0x126f,0x1276 on irq 11
hda: Disabling (U)DMA for WDC AC32100H
hda: DMA disabled
hda: WDC AC32100H, 2014MB w/128kB Cache, CHS=1023/64/63
hde: IBM-DPTA-372050, 19574MB w/1961kB Cache, CHS=39770/16/63, UDMA(66)
PPP: version 2.3.7 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
ne.c:v1.10 9/23/94 Donald Becker (becker@xxxxxxxxxxxxxxxxxxxx)
NE*000 ethercard probe at 0x300: 00 00 f4 5d 75 08
eth0: NE2000 found at 0x300, using IRQ 10.
Partition check:
 hda: hda1 hda2 < hda5 hda6 hda7 >
 hde: hde1
NTFS version 990411
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 40k freed
Adding Swap: 116892k swap-space (priority -1)

#dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ フセチー           ・ミ。シ・ク・逾・    タ篶タ
+++-==============-==============-==========================================
==
ii  adduser        3.11.1         Add users and groups to the system.
ii  ae             962-21         Anthony's Editor -- a tiny full-screen
edito
ii  apache         1.3.9-13.1     Versatile, high-performance HTTP server
ii  apache-common  1.3.9-13.1     Support files for all Apache webservers
ii  apt            0.3.18         Advanced front-end for dpkg
ii  at             3.1.8-2.1      Delayed job execution and batch processing
ii  base-files     2.2            Debian base system miscellaneous files
ii  base-passwd    3.1.7          Debian Base System Password/Group Files
ii  bash           2.03-6         The GNU Bourne Again SHell
ii  bash-doc       2.03-6         Documentation and examples for the The GNU
B
ii  bc             1.04-4         An arbitrary precision calculator
language.
ii  bin86          0.14.9-3       16-bit assembler and loader
ii  binutils       2.9.5.0.31-3   The GNU assembler, linker and binary
utiliti
ii  bsdmainutils   4.2            More utilities from 4.4BSD-Lite.
ii  bsdutils       4.2.0.1        Basic utilities from 4.4BSD-Lite.
ii  bzip2          0.9.5d-2       A high-quality block-sorting file
compressor
ii  canna          3.5b2-23       A japanese input system (server and
dictiona
ii  cpio           2.4.2-32       GNU cpio -- a program to manage archives
of
ii  cpp            2.95.2-9       The GNU C preprocessor.
ii  cron           3.0pl1-45      management of regular background
processing
ii  dc             1.04-4         An arbitrary precision reverse-polish
calcul
ii  debconf        0.2.80.15      Debian configuration management system
ii  debhelper      2.0.86         helper programs for debian/rules
ii  debianutils    1.9            Miscellaneous utilities specific to
Debian.
ii  delegate       5.9.12-1       general purpose proxy server for various
app
ii  dh-make        0.21           Debianizing Tool for debhelper
ii  diff           2.7-16         File comparison utilities
ii  dpkg           1.6.12.99      Package maintenance system for Debian
ii  dpkg-dev       1.6.12.99      Package building tools for Debian
ii  dpkg-ftp       1.6.7          Ftp method for dselect.
ii  dpkg-mountable 0.8            Enhanced access method for dselect
ii  dpkg-multicd   0.16.1         Installation methods for multiple binary
CDs
ii  e2fsprogs      1.10-17        The EXT2 file system utilities and
libraries
ii  ed             0.2-16         The classic unix line editor
ii  elvis-tiny     1.4-5          Tiny vi compatible editor for the base
syste
ii  fdflush        1.0.0-12       A disk-flushing program.
ii  fdutils        5.2pl4-3       Linux floppy utilities
ii  file           3.24-4         Determines file type using "magic" numbers
ii  fileutils      4.0l-7         GNU file management utilities.
ii  findutils      4.1-28         utilities for finding files--find, xargs,
an
ii  gcc            2.95.2-9       The GNU C compiler.
ii  grep           2.1-8          GNU grep, egrep and fgrep.
ii  gzip           1.2.4-27       The GNU compression utility.
ii  hostname       2.04           A utility to set/show the host name or
domai
ii  info           3.9-5          Standalone GNU Info documentation browser
ii  isapnptools    1.13-3.1       ISA Plug-And-Play configuration utilities.
ii  ja-trans       0.7-3          Japanese gettext message files
ii  jgroff         0.100-1        GNU troff text-formatting system (Japanese
E
ii  jless          332iso240-1    A paginator similar to "more" or "pg"
suppor
ii  kbd            0.95-16        Linux console font and keytable utilities.
ii  kernel-headers 2.2.15-2       Header files related to a specific Linux
ker
ii  kernel-image-2 ruby.1.3       Linux kernel binary image for version
2.2.15
ii  kernel-package 7.04.potato.3  Debian Linux kernel package build scripts.
ii  kernel-patch-2 20000405-1     Andre Hedrick's IDE patch.
ii  kernel-source- 2.2.15-3       Linux kernel source for version 2.2.15
ii  kon2           0.3.7-7        Kanji ON Console.
ii  konfont        0.1-3          Public domain japanese fonts for kon2.
ii  ldso           1.9.11-7       The Linux dynamic linker, library and
utilit
ii  libbz2         0.9.5d-2       A high-quality block-sorting file
compressor
ii  libbz2-dev     0.9.5d-2       A high-quality block-sorting file
compressor
ii  libc6          2.1.3-8        GNU C Library: Shared libraries and
Timezone
ii  libc6-dev      2.1.3-8        GNU C Library: Development Libraries and
Hea
ii  libcanna1g     3.5b2-23       Canna Runtime Library (Libc6).
ii  libdb2         2.4.14-2.7.7.1 The Berkeley database routines (run-time
fil
ii  libg++272      2.7.2.8-0.1    The GNU C++ libraries (libc6 version).
ii  libgdbmg1      1.7.3-25       GNU dbm database routines (runtime
version).
ii  libncurses4    4.2-9          Shared libraries for terminal handling
ii  libncurses5    5.0-6          Shared libraries for terminal handling
ii  libnet-perl    1.0703-3       Implementation of Internet protocols for
Per
ii  libnewt0       0.50-7         Not Erik's Windowing Toolkit - text mode
win
ii  libpam-modules 0.72-7         Pluggable Authentication Modules for PAM
ii  libpam-runtime 0.72-7         Runtime support for the PAM library
ii  libpam0g       0.72-7         Pluggable Authentication Modules library
ii  libpopt0       1.4-1.1        lib for parsing cmdline parameters
ii  libreadline4   4.1-1          GNU readline and history libraries,
run-time
ii  libreadlineg2  2.1-19         GNU readline and history libraries,
run-time
ii  libstdc++2.10  2.95.2-9       The GNU stdc++ library
ii  libstdc++2.8   2.90.29-0.6    The GNU stdc++ library (egcs version)
ii  libwrap0       7.6-4          Wietse Venema's TCP wrappers library
ii  lilo           21-14          LInux LOader - The Classic OS loader can
loa
ii  locale-ja      13             Locale definition files for Japanese.
ii  locales        2.0.7t-1.wcsmb Locale data files and utilities.
ii  login          980403-0.3     Sign on to the system.
ii  lprng          3.6.12-6       lpr/lpd printer spooling system
ii  lynx           2.8.3-1        Text-mode WWW Browser
ii  magicfilter    1.2-39         automatic printer filter.
ii  mailx          8.1.1-10       A simple mail user agent.
ii  make           3.78.1-8       The GNU version of the "make" utility.
ii  makedev        2.3.1-42       Creates special device files in /dev.
ii  man-db         2.3.10-65.jp4  Display the on-line manual (JAPANESE
EXTENDE
ii  manpages       1.19-1         Man pages about using a Linux system.
ii  manpages-ja    0.4.0.0.200001 Japanese version of the manual pages
ii  mawk           1.3.3-2        a pattern scanning and text processing
langu
ii  mbr            1.0.0-6        Master Boot Record for IBM-PC compatible
com
ii  menu           2.1.5-3        provides update-menus functions for some
app
ii  mime-support   3.9-1          MIME files 'mime.types' & 'mailcap', and
sup
ii  modconf        0.2.17         Device Driver Configuration
ii  modutils       2.1.85-11      Linux module utilities.
ii  mount          2.7l-5         Tools for mounting and manipulating
filesyst
ii  mtools         3.8-1          Tools for manipulating MSDOS files
ii  ncurses-base   1.9.9g-8.10    Video terminal manipulation - Minimum
termin
ii  ncurses-bin    1.9.9g-8.10    Video terminal manipulation - associated
pro
ii  ncurses-term   1.9.9g-8.10    Video terminal manipulation - additional
ter
ii  ncurses3.4     1.9.9g-8.10    Video terminal manipulation - shared
librari
ii  netbase        3.18-4         Basic TCP/IP networking binaries
ii  netstd         3.07-2hamm.2   Networking binaries and daemons for Linux
ii  newt0.21       0.21-8         Not Erik's Windowing Toolkit - text mode
win
ii  nvi            1.79-5         4.4BSD re-implementation of vi.
ii  nvi-m17n-canna 1.79+19991117- Multilingualized nvi with Canna.
ii  nvi-m17n-commo 1.79+19991117- Multilingualized nvi's common files.
ii  passwd         19990827-20    Change and administer password and group
dat
ii  patch          2.5-2.2        Apply a diff file to an original
ii  perl-5.005     5.005.03-7.1   Larry Wall's Practical Extracting and
Report
ii  perl-5.005-bas 5.005.03-7.1   The Pathologically Eclectic Rubbish Lister
ii  perl-5.005-deb 5.005.03-7.1   View internals of Perl and debug Perl
itself
ii  perl-5.005-sui 5.005.03-7.1   Runs setuid Perl scripts.
ii  perl-5.005-thr 5.005.03-7.1   Experimental Perl binary with threading
enab
ii  perl-base      5.004.05-1.1   Fake package assuring that one of
the -base
ii  ppp            2.3.5-2        Point-to-Point Protocol (PPP) daemon.
ii  pppconfig      1.0            pppconfig is a text based utility for
config
ii  ppxp           0.99120923-1   Yet another PPP program.
ii  ppxp-x11       0.99120923-1   X console of ppxp
ii  procps         1.2.7-1        The /proc file system utilities.
ii  proftpd        1.0.0-7        Versatile, virtual-hosting FTP daemon
ii  psmisc         16-2           Utilities that use the proc filesystem
ii  samba          2.0.7-3        A LanManager like file and printer server
fo
ii  samba-common   2.0.7-3        Samba common files used by both the server
a
ii  sed            2.05-22        The GNU sed stream editor.
ii  setserial      2.12-6         Controls configuration of serial ports.
ii  shellutils     1.16-6         The GNU shell programming utilities.
ii  slang0.99.38   0.99.38-6      The S-Lang programming library, shared
libra
ii  slang1         1.3.9-1        The S-Lang programming library - runtime
ver
ii  smail          3.2.0.101-4.5  Electronic mail transport system.
ii  swat           2.0.7-3        Samba Web Administration Tool
ii  sysklogd       1.3-26         Kernel and system logging daemons
ii  syslinux       1.40-2.1       Bootloader for Linux/i386 using MS-DOS
flopp
ii  sysvinit       2.75-3         System-V like init.
ii  tar            1.13.17-2      GNU tar
ii  tcpd           7.6-4          Wietse Venema's TCP wrapper utilities
ii  textutils      1.22-2.4       The GNU text file processing utilities.
ii  update         1.3-2          daemon to periodically flush filesystem
buff
ii  user-ja        0.28           simple configuration tool for Japanese
envir
ii  util-linux     2.7.1-3        Miscellaneous system utilities.
ii  whiptail       0.50-7         Displays user-friendly dialog boxes from
she
ii  xfree86-common 3.3.6-8        X Window System (XFree86) infrastructure
ii  xlib6g         3.3.6-8        shared libraries required by X clients
ii  xpm4g          3.4k-5         the X PixMap library
ii  zlib1g         1.1.3-5        compression library - runtime

FTPクライアントソフト(Windows2000上のFFFTP ver1.78)のログ
----パッシブモード使用を指定したとき
ホスト hoge.hoge.ne.jp を探しています.
ホスト hoge.hoge.ne.jp (aaa.bbb.ccc.dd (21)) に接続しています.
接続しました.
220 hoge.hoge.ne.jp FTP server ready.
>USER sakamoto
331 Password required for sakamoto.
>PASS [xxxxxx]
230 User sakamoto logged in.  Access restrictions apply.
>>CD N:\public_html
>PWD
257 "/" is current directory.
>TYPE A
200 Type set to A.
>PASV
425 Cannot open passive connection
ファイル一覧の取得を中止しました.
ファイル一覧の取得に失敗しました.
切断しました 

----パッシブモード使用をしない設定のとき
ホスト hoge.hoge.ne.jp を探しています.
ホスト hoge.hoge.ne.jp (aaa.bbb.ccc. (21)) に接続しています.
接続しました.
220 hoge.hoge.ne.jp FTP server ready.
>USER sakamoto
331 Password required for sakamoto.
>PASS [xxxxxx]
230 User sakamoto logged in.  Access restrictions apply.
>>CD N:\public_html
>PWD
257 "/" is current directory.
>TYPE A
200 Type set to A.
>PORT 192,168,1,3,5,12
500 Illegal PORT Command
PORTコマンドが受け付けられません.
ファイル一覧の取得を中止しました.
ファイル一覧の取得に失敗しました.
切断しました