hi lemon,

U need to deny everything in deny then open whatever that u need in allow
Please follow as below:
To deny all access to ftpd
-put "in.ftpd:ALL" in /etc/hosts.deny

To allow access to ftpd
-put "ftpd:192.168." in  /etc/hosts.allow

Then u can use following to test your setting
"tcpdmatch in.ftpd 192.168.1.10" (shd get granted)
"tcpdmatch in.ftpd 168.15.122.22" (shd get denied)

This work well for me, hope it will help for u, :)...

rdgs,
gary

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 09, 2001 2:16 PM
Subject: how to deny some hosts access


> i want to deny some hosts and ip addresses to access my ftp services,how
should i do
>
> #more /etc/hosts.allow
> in.ftpd:all
> #more/etc/hosts.deny
> in.ftpd:`192.168.?
>
> is that correct?
>
> i want to deny some ip addresses match my patterns,i man hosts.allow,the
manual say `192.168.? matches 192.168.*.*,i try,but it does not work
>
> ----------------------------------------------
> »¶Ó­Ê¹Óà 21CN µç×ÓÓʼþϵͳ http://www.21cn.com
> Thank you for using 21cn.com Email system
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to