--- In lucknow-lug@yahoogroups.com, "pcy1988" <pcy1988@...> wrote:
>
> in RHCE examination if a question is asked that "configure a ftp server
> for your local system and rest of the network should not be able to
> access your ftp repository".
> let assume that i configured the server correctly, but problem is
> related with denying access.
> should we simply use the file "/etc/hosts.deny" or IPTABLES.
> which one will be better.
> is it necessary to apply netfilter rule to all server related question.
>
I think the case is similar when we configure telnet, where we can
deny the access by editing the file /etc/xinetd.d/telnet. Open the
file in any editor and add a line
only_from = 172.25.0.0 where 172.25.0.0 is your local network.
Restart the servie xinetd . This would solve the problem in telnet.It
should work for ftp too, I beleive..
Hope Anooj will have a better solution
Try it once