From owner-freebsd-questions@FreeBSD.ORG Fri Jun 22 08:38:12 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 0631316A475 for ; Fri, 22 Jun 2007 08:38:12 +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 CB98313C487 for ; Fri, 22 Jun 2007 08:38:11 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from localhost (localhost [127.0.0.1]) by stargate.alaskaparadise.com (Postfix) with ESMTP id 603B9807C for ; Fri, 22 Jun 2007 00:38:11 -0800 (AKDT) From: Beech Rintoul To: freebsd-questions@freebsd.org User-Agent: KMail/1.9.6 References: <21525942.7391182497737308.JavaMail.root@shoemasters.com> In-Reply-To: <21525942.7391182497737308.JavaMail.root@shoemasters.com> 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-Disposition: inline Date: Fri, 22 Jun 2007 00:38:08 -0800 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200706220038.09484.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:38:12 -0000 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. 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 ---------------------------------------------------------------------------------------