Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Sep 2004 10:37:16 +0200
From:      "Danny Carroll" <newsacct01@dannysplace.net>
To:        <stable@freebsd.org>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Problems with fetch but not ftp in a jail?
Message-ID:  <009f01c49fb7$c4c1e710$1ad0260a@capgemini.nl>

next in thread | raw e-mail | index | archive | help
I am having a strange problem with my home network.
Here is what it looks like.


Internet <-> FreeBSD Firewall/Natd box (guard) <------> Local Net
(192.168.100.0/24)

|------------ testsrv (192.168.100.12)

|----- testjail (192.168.10.1)

Testjail is a jail (192.168.10.1) running under testsrv (192.168.100.12).
Subnet 192.168.10.0/24 is routed to testsrv at the firewall.

The nat stuff works fine for everything else.

The problem is I cannot do this from testjail (passive mode is needed for my
natd setup).

   fetch -p -v ftp://ftp.nl.freebsd.org/pub/README.nluug

As you can imagine it is making it hard to install ports.
I can do it from testsrv but not from within the jail.

I can do a file transfer (of the same file in passive mode) just by using
the ftp client from both testsrv and testjail.
It looks to me, but checking the TCPdump output that it's just not
requesting the data channel.  (Or the data channel is not comming back) as
it is able to establish the control channel fine.

Has anyone else had some problems like this with fetch in a jail?

I am using 5.2.1-RELEASE-p9 and ipfw/natd to do my nat on the firewall (a
4.9 box).
-D

p.s. I can post tcpdump output if needed.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009f01c49fb7$c4c1e710$1ad0260a>