Steve Philp wrote:
> 
> Lang Zhi wrote:
> >
> > Hi,
> > I want to restric telnet or ftp to only mydomain.com, others connection will
> > be rejected. How to do this ?
> > Is ipchains will do this or the tcp wrapers ?
> 
> TCP wrappers will work fine for this.  Edit /etc/hosts.allow and add:
> 
>         in.telnetd: .mydomain.com
>         in.ftpd: .mydomain.com
> 
> Then edit /etc/hosts.deny and add:
> 
>         ALL: ALL
> 
To make the changes effective, do not forget to restart inetd.

prompt# killall -HUP inetd

and you should be all set.


-- 
Ramon Gandia ================= Sysadmin ================ Nook Net
http://www.nook.net                                  [EMAIL PROTECTED]
285 West First Avenue                           tel. 907-443-7575
P.O. Box 970                                    fax. 907-443-2487
Nome, Alaska 99762-0970 ========== Alaska Toll Free. 888-443-7525

Reply via email to