From owner-freebsd-questions@FreeBSD.ORG Fri Jun 22 08:47:01 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 932DA16A421 for ; Fri, 22 Jun 2007 08:47:01 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from stargate.alaskaparadise.com (181-11-178-69.gci.net [69.178.11.181]) by mx1.freebsd.org (Postfix) with ESMTP id 60C9613C458 for ; Fri, 22 Jun 2007 08:47:01 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from localhost (localhost [127.0.0.1]) by stargate.alaskaparadise.com (Postfix) with ESMTP id 19FB0807C for ; Fri, 22 Jun 2007 00:47:01 -0800 (AKDT) From: Beech Rintoul To: freebsd-questions@freebsd.org Date: Fri, 22 Jun 2007 00:46:57 -0800 User-Agent: KMail/1.9.6 References: <21525942.7391182497737308.JavaMail.root@shoemasters.com> <200706220038.09484.beech@freebsd.org> In-Reply-To: <200706220038.09484.beech@freebsd.org> X-Face: jC2w\k*Q1\0DA2Q0Eh&BrP/Rt2M,^2O#R07VoT98m*>miQF9%Bi9vy`F6cPjwEe?m,)=?utf-8?q?2=0A=09X=3FM=5C=3AOE9QgZ?="xT3/n3,3MJ7N=Cfkmi%f(w^~X"SUxn>; 27NO; C+)g[7J`$G*SN>{<=?utf-8?q?O=3Bg7=7C=0A=09o=7D=265A=5D4?=@7D`=Eb@Zs1Ln814?]|k@'bG=.Ca"[|8+_.OsNAo8!#?4u MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706220046.58450.beech@freebsd.org> Subject: Re: ftp woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Beech Rintoul List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 08:47:01 -0000 On Friday 22 June 2007, Beech Rintoul said: > On Thursday 21 June 2007, RYAN M. vAN GINNEKEN said: > > Hello all i have been going crazy trying to sort out this ftp > > problem. I have a server machine that is connected directly to > > the net i have opened my ipf firewall to accept all connections. > > At first i thought i did not need ipnat rules becuase this host > > is not acting as a gateway just a standalone machine. I added > > these rules to ipnat just to be on the safe side even though i do > > not have a internal network. > > > > # This rule will handle all the traffic for the internal LAN: > > map xl0 192.168.0.0/16 -> 0/32 proxy port 21 ftp/tcp > > > > # This rule handles the FTP traffic from the gateway: > > map xl0 0.0.0.0/0 -> 0/32 proxy port 21 ftp/tcp > > > > # THE RULE THAT FORWARDS EVERTHING > > map xl0 192.168.0.0/16 -> 0/32 > > map xl0 192.168.1.0/16 -> 0/32 > > > > I tried the default ftpd and lukemftp now i have installed and > > configured proftpd > > > > I can login ok but when i try to do a cd or ls i always get this > > error > > > > ftp new.computerking.ca > > Connected to new.computerking.ca. > > 220 ProFTPD 1.3.1rc2 Server (ProFTPD Default Installation) > > [68.144.1.51] Name (new.computerking.ca:rmvg): computerking > > 331 Password required for computerking > > Password: > > 230 User computerking logged in > > Remote system type is UNIX. > > Using binary mode to transfer files. > > ftp> ls > > ftp: connect: No route to host > > ftp> cd > > (remote-directory) / > > 250 CWD command successful > > ftp> ls > > ftp: connect: No route to host > > ftp> dir > > ftp: connect: No route to host > > ftp> > > You need both port 20 and port 21. This might help explain it to you: http://slacksite.com/other/ftp.html > > Beech -- --------------------------------------------------------------------------------------- Beech Rintoul - FreeBSD Developer - beech@FreeBSD.org /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html ---------------------------------------------------------------------------------------