From owner-freebsd-questions Wed Jul 28 4:42: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.128.198]) by hub.freebsd.org (Postfix) with ESMTP id 7DA1E14F22 for ; Wed, 28 Jul 1999 04:41:58 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id MAA99445; Wed, 28 Jul 1999 12:40:48 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id MAA01614; Wed, 28 Jul 1999 12:41:22 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199907281141.MAA01614@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Loren Daniel Koss Cc: Brian Somers , freebsd-questions@FreeBSD.ORG Subject: Re: FTP through NATD.. In-reply-to: Your message of "Tue, 27 Jul 1999 17:11:03 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 28 Jul 1999 12:41:22 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, The only other thing I can think of is that your client may be having a problem with the port number from which the back-channel comes. You could try the -same_ports switch - it may help, although I belive it's the default anyway. If all else fails, passive mode on the client is probably the best thing to aim for :-/ > No, I'm trying to get *in* to a "dodgy" (are you english?) ftp port.. > Actually, I have it exposed to the world as 8002, but internally on my NT > box it is 6002. It could very well be 8002 on the internal, but for some > reason when I tried 6002 on the 216.32.46.218, it failed, so I moved it.. > I Like I said, I can still connect.. I just can't do anything over the > data connection.. It fails on the PORT command.. What do you think is > the problem? > > Loren > > On Wed, 28 Jul 1999, Brian Somers wrote: > > > Hmm, I thought you were trying to get *out* to a dodgy ftp port.... I > > didn't read your post properly. You don't need to use passive mode > > for this. > > > > Shouldn't your config say something like > > > > redirect_port tcp 192.168.1.20:6002 216.32.46.218:6002 > > > > assuming the incoming packets are addressed to 216.32.46.218 ? Is > > the 8002 below a typo ? > > > > > Okay, I did that and now it just hangs after it connects and tries to do > > > a listing of the files.. What should > > > the NATD.CONF file look like? I have: > > > > > > redirect_port tcp 192.168.1.20:6002 216.32.46.218:8002 > > > > > > It's really weird.. > > > > > > Thanks for your help. > > > > > > Loren > > > > > > On Tue, 27 Jul 1999, Brian Somers wrote: > > > > > > > > Brian, > > > > > do you mean passive mode on the FTP server? Its a WIN NT box.. Or do you > > > > > mean passive mode of NATD or something? Sorry I'm such a newbie.. > > > > > > > > Passive mode on the client side. > > > > > > > > Passive mode basically means that the server does not try to open up > > > > a second channel back to the client. The NAT stuff can only handle > > > > this sort of thing if it can recognise the ``PORT'' command going out > > > > on the original channel (it then prepares itself for the > > > > back-connect), but natd only looks for PORT commands on the standard > > > > ftp port. > > > > > > > > > On Tue, 27 Jul 1999, Brian Somers wrote: > > > > > > > > > > > > > > > > > > I am having a helluva time with this.. I moved the port of my FTP server > > > > > > > that is behind my FreeBSD box to 6002.. I am able to connect to it from > > > > > > > the outside just fine, except for doing any LIST, PUT, or GETs.. They get > > > > > > > me a "INVALID PORT COMMAND" Does anyone know how to solve this?? > > > > > > > > > > > > If you're not using the standard ftp port, you *must* use passive > > > > > > mode ftp (otherwise libalias won't detect and fix the port command). > > > > > > > > > > > > Passive mode is enabled in FreeBSD with ``-p''. > > > > > > > > > > > > > Thanks > > > > > > > Loren > > > > > > > > > > > > > > loren@pciway.com -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message