Ramon Gandia wrote:
> 
> 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.

Good catch!  Thanks Ramon!

-- 
Steve Philp
Network Administrator
Advance Packaging Corp.
[EMAIL PROTECTED]

Reply via email to