Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2002 21:31:22 -0400
From:      "Charles J. Gaush" <cgaush@adelphia.net>
To:        "Noman Rafiq" <nomi218@hotmail.com>, questions@FreeBSD.ORG
Subject:   Re: Help
Message-ID:  <200209092131.22913.cgaush@adelphia.net>
In-Reply-To: <F4541W2ufyWOxbCJnEM000005d8@hotmail.com>
References:  <F4541W2ufyWOxbCJnEM000005d8@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 08 September 2002 05:41 am, Noman Rafiq wrote:
> Hello
>
> I want to do that on my FreeBsd machine only telnet from specified ip
> address like in linux i specfied ip address in file hosts.allow only fr=
om
> that ip address my machine will be telnet no other from. Is there any f=
ile
> configuration in freebsd i can and stop telnet from other ip address.
>
> thanks
> Noman
>
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

Noman,

FreeBSD's /etc/hosts.allow works pretty much like Linux's.  To allow one =
IP=20
and deny all others, just add these lines to the file:

# Allow one friendly IP and block all others
telnetd : x.x.x.x : allow
telnetd : ALL : deny

CG


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209092131.22913.cgaush>