Block / Restrict FTP Users by TCP Wrapper

  • Share
  • CevherShare
  • Share

In Redhat Linux a ftp user can be blocked by admin by tcp wrapper. By blocking /restricting thew ftp users, they can’t access the server files through FTP method. TCP Wrapper need a package called XINETD

Package name:  Xinetd

Service name:   Xinetd

We are going to block the FTP users, so we have to edit hosts.deny file

 

#vim /etc/hosts.deny 

Block all FTP request and login, except the IP address 192.168.1.10

Any user can login from the IP address 192.168.1.10

vsftpd: ALL EXCEPT 192.168.1.10

 

#vim /etc/hosts.deny

Blcok all FTP access(login) for the whole network 192.168.1.0/24

vsftpd: ALL EXCEPT 192.168.1.0/24
( or )
vsftpd: ALL EXCEPT 192.168.1.0/255.255.255.0

 

#vim /etc/hosts.deny

None of the FTP users can login into the server.

vsftpd: ALL

prasad

About prasad

Prasad K has written 111 post in this blog.