Disable ftp

HI all,

I am using Solaris 10 and would like to know if it possible to disable ftp use for a single entry in my /etc/hosts file.

Thanks

not sure what you're asking. you want to disable the ability for a single host that resolves in your /etc/hosts file to not be able to ftp to your current system?

You can totally disable ftp using svcadm disable ftp command for globally change ftp denial.
If you want ftp enabled on the system and restricted some hosts, for eg you can make use of the /.rhosts file

Couldn't tell from the preceding posts whether you wanted to stop uploads or downloads (or both) relative to your server.

I don't think that you can disable ftp for a particular IP address on a unix system without using TCP/IP firewall software or an external TCP/IP firewall.

Off topic: On most unix systems you can disable outgoing ftp from your server for particular users by use of a "ftpusers" file. (See the man pages for ftp on your system. Be prepared to write an "everybody except" script to seed the "ftpusers" file).

I suppose that you would like to disable FTP connection from one from one IP address in /etc/hosts ?? I suppose that the most elegant way will be use ipfilter. By this way you can "lock" single IP before using certain local service.

ipfilter is the in-built firewall provided by Solaris OS.
You can download this pdf and refer to this:-