From owner-freebsd-questions Mon Jun 17 9:31:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from temne.zahrobie.sk (temne.zahrobie.sk [212.89.236.90]) by hub.freebsd.org (Postfix) with SMTP id ADEDB37B405 for ; Mon, 17 Jun 2002 09:31:48 -0700 (PDT) Received: (qmail 3608 invoked by uid 0); 17 Jun 2002 16:29:37 -0000 Received: from localhost (HELO brano) (127.0.0.1) by localhost with SMTP; 17 Jun 2002 16:29:37 -0000 Message-ID: <0c2401c2161c$958a0120$c28c630a@brano> From: "[brano]" To: =?iso-8859-2?Q?S=F8ren_Neigaard?= Cc: References: <273418715.20020617182351@e-box.dk> Subject: Re: How do I only permit some IP's to access FTP? Date: Mon, 17 Jun 2002 18:32:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Hi, you must add this syntax before => # Start by allowing everything (this prevents the rest of the file # from working, so remove it when you need protection). # The rules here work on a "First match wins" basis. ALL : ALL : allow because first rule wins ;-) Brano from Slovakia ----- Original Message ----- From: "Søren Neigaard" To: Sent: Monday, June 17, 2002 6:23 PM 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 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message