LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-27-2013, 06:11 AM   #1
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Rep: Reputation: Disabled
ip filtering in VSFTPD


can i allow just specific client Ip to get ftp servies in redhat
 
Old 09-27-2013, 07:44 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by AbidDhanaiser View Post
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
 
1 members found this post helpful.
Old 09-27-2013, 09:12 AM   #3
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
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.

Last edited by SAbhi; 09-27-2013 at 09:14 AM.
 
Old 09-28-2013, 12:41 AM   #4
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Original Poster
Rep: Reputation: Disabled
thanks , its working
 
Old 09-28-2013, 01:02 AM   #5
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SAbhi View Post
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
 
Old 09-28-2013, 02:56 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by AbidDhanaiser View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant login via ftp(vsftpd) in centos 6.4 and cant start vsftpd SarahGurung Linux - Software 3 03-18-2013 08:35 AM
content filtering with layer7- filtering rose1366m Linux - Networking 1 05-04-2011 11:10 AM
Starting vsftpd for vsftpd: 500 OOPS: SSL: cannot load RSA certificate MisterTickle Linux - Server 2 02-11-2011 07:41 PM
vsftpd settingd and VSFTPD DEAD BUT SUBSYS LOCKED pc_copat Linux - Newbie 15 11-05-2009 10:31 PM
Sendmail Spam filtering and Virus filtering MrJoshua Linux - General 2 04-03-2003 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration