From owner-freebsd-security Wed Sep 19 4:20:16 2001 Delivered-To: freebsd-security@freebsd.org Received: from mail.webmonster.de (datasink.webmonster.de [194.162.162.209]) by hub.freebsd.org (Postfix) with SMTP id B9AE837B415 for ; Wed, 19 Sep 2001 04:20:10 -0700 (PDT) Received: (qmail 52472 invoked by uid 1000); 19 Sep 2001 11:20:32 -0000 Date: Wed, 19 Sep 2001 13:20:32 +0200 From: "Karsten W. Rohrbach" To: "Chutima S." Cc: freebsd-security@FreeBSD.ORG, chutima@infoquest.co.th Subject: Re: How to config ipfw for ftp server Message-ID: <20010919132032.F52106@mail.webmonster.de> Mail-Followup-To: "Karsten W. Rohrbach" , "Chutima S." , freebsd-security@FreeBSD.ORG, chutima@infoquest.co.th References: <20010919062757.RNAO7831.mta04.onebox.com@onebox.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="QXO0/MSS4VvK6f+D" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010919062757.RNAO7831.mta04.onebox.com@onebox.com>; from chutima_s@zdnetonebox.com on Tue, Sep 18, 2001 at 11:27:56PM -0700 X-Arbitrary-Number-Of-The-Day: 42 X-URL: http://www.webmonster.de/ X-Disclaimer: My opinions do not necessarily represent those of my employer X-Work-URL: http://www.ngenn.net/ X-Work-Address: nGENn GmbH, Schloss Kransberg, D-61250 Usingen-Kransberg, Germany X-Work-Phone: +49-6081-682-304 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --QXO0/MSS4VvK6f+D Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Chutima S.(chutima_s@zdnetonebox.com)@2001.09.18 23:27:56 +0000: > I try to config ipfw fot outside world can ftp to ftp server in internal > network (real IP but behide my firewall). I config as: >=20 > ipfw add pass tcp from any to 21 setup >=20 > I test by ftp from Internet world. I can login to ftpserver but can > not open data connection for get or list files in folder. Is it concern > about passive mode or ftp-data port (20)? you probably want to check out ipfilter in conjunction with ipnat which maps ftp requests through an in-kernel stateful proxy which opens and closes the port pair rules for established ftp sessions' data connections via state table entries. check out the ipfilter docs for more info. /k --=20 > "I think pop music has done more for oral intercourse than anything else > that has ever happened, and vice versa." --Frank Zappa KR433/KR11-RIPE -- WebMonster Community Founder -- nGENn GmbH Senior Techie http://www.webmonster.de/ -- ftp://ftp.webmonster.de/ -- http://www.ngenn.n= et/ karsten&rohrbach.de -- alpha&ngenn.net -- alpha&scene.org -- catch@spam.de GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE DF22 3340 4F4E 2964 B= F46 Please do not remove my address from To: and Cc: fields in mailing lists. 1= 0x --QXO0/MSS4VvK6f+D Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7qH+AM0BPTilkv0YRAu1CAJ9xrzF5h85OWDoRMFFnC7oY1YkVXwCbBd3s UXQTUm4sHz4U4NPxKG/KJXI= =woBl -----END PGP SIGNATURE----- --QXO0/MSS4VvK6f+D-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message