From owner-freebsd-questions Mon Jun 17 9:55:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp030.tiscali.dk (smtp030.tiscali.dk [212.54.64.105]) by hub.freebsd.org (Postfix) with ESMTP id 3BCD737B406 for ; Mon, 17 Jun 2002 09:55:41 -0700 (PDT) Received: from NEIGAARD_MOB (213.237.13.224.adsl.hc.worldonline.dk [213.237.13.224]) by smtp030.tiscali.dk (8.12.4/8.12.4) with ESMTP id g5HGtQdK003260 for ; Mon, 17 Jun 2002 18:55:27 +0200 (MEST) Date: Mon, 17 Jun 2002 18:54:25 +0200 From: =?ISO-8859-2?B?U/hyZW4gTmVpZ2FhcmQ=?= X-Mailer: The Bat! (v1.60q) Reply-To: =?ISO-8859-2?B?U/hyZW4gTmVpZ2FhcmQ=?= X-Priority: 3 (Normal) Message-ID: <1265252903.20020617185425@e-box.dk> To: questions@FreeBSD.ORG Subject: Re[2]: How do I only permit some IP's to access FTP? In-Reply-To: <0c2401c2161c$958a0120$c28c630a@brano> References: <273418715.20020617182351@e-box.dk> <0c2401c2161c$958a0120$c28c630a@brano> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks to all, that was my problem, the 'ALL : ALL : allow' was first :) /Søren Monday, June 17, 2002, 6:32:30 PM, [brano] wrote: b> Hi, b> you must add this syntax before => b> # Start by allowing everything (this prevents the rest of the file b> # from working, so remove it when you need protection). b> # The rules here work on a "First match wins" basis. b> ALL : ALL : allow b> because first rule wins ;-) b> Brano from Slovakia b> ----- Original Message ----- b> From: "Søren Neigaard" b> To: b> Sent: Monday, June 17, 2002 6:23 PM b> Subject: How do I only permit some IP's to access FTP? >> I have tried to alter my hosts.allow like this: >> >> ftpd : localhost : allow >> ftpd : MY_IP : allow >> ftpd : ALL : deny >> >> But still everybody can FTP to my box, what am I missing? >> >> -- >> Med venlig hilsen/Best regards, >> Søren Neigaard mailto:neigaard@e-box.dk >> -- >> "Perfection is reached, not when there is no longer anything to add, but b> when there is no longer anything to take away. " To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message