LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ip filtering in VSFTPD (https://www.linuxquestions.org/questions/linux-server-73/ip-filtering-in-vsftpd-4175478737/)

AbidDhanaiser 09-27-2013 06:11 AM

ip filtering in VSFTPD
 
can i allow just specific client Ip to get ftp servies in redhat

bathory 09-27-2013 07:44 AM

Quote:

Originally Posted by AbidDhanaiser (Post 5035859)
can i allow just specific client Ip to get ftp servies in redhat

You can put in /etc/hosts.allow the IP in question:
Code:

vsftpd: x.x.x.x
and deny anyone else in /etc/hosts.deny
Code:

vsftpd: ALL

SAbhi 09-27-2013 09:12 AM

you already have a nice reply..

but if you are looking for providing access to your FTP in terms of network firewall, then too yes you can do it by adding a IPtable rule accept incoming connections (-A INPUT) from a specific IP (-d destination ip) to your ftp server ip (-s sourceip) and (-j ACCEPT).

EDIT: above hints are just for examples if you want to implement it we should know what you exactly looking for.

AbidDhanaiser 09-28-2013 12:41 AM

thanks , its working

AbidDhanaiser 09-28-2013 01:02 AM

Quote:

Originally Posted by SAbhi (Post 5035933)
you already have a nice reply..

but if you are looking for providing access to your FTP in terms of network firewall, then too yes you can do it by adding a IPtable rule accept incoming connections (-A INPUT) from a specific IP (-d destination ip) to your ftp server ip (-s sourceip) and (-j ACCEPT).

EDIT: above hints are just for examples if you want to implement it we should know what you exactly looking for.

i try vsftpd:192.168.0.1 /24 to allow all user of this network , but its not working its just allowing only 192.168.0.1 , what should i do

bathory 09-28-2013 02:56 AM

Quote:

Originally Posted by AbidDhanaiser (Post 5036237)
i try vsftpd:192.168.0.1 /24 to allow all user of this network , but its not working its just allowing only 192.168.0.1 , what should i do

Try one of the following 2 notations instead:
Code:

vsftpd:  192.168.0.
vsftpd: 192.168.0.0/255.255.255.0

Regards


All times are GMT -5. The time now is 04:39 PM.