LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-13-2006, 06:36 PM   #1
kurrupt
Member
 
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202

Rep: Reputation: 31
Exclamation vsftpd + denying & allowing IP's


Hey guys, iam trying to filter out IP addresses for my ftp server. Iam using TCP Wrappers to do this.

in my /etc/hosts.deny i have:

Code:
#FILE: /etc/hosts.deny
vsftpd : 192.168.1.: spawn /bin/echo  `/bin/date` access denied >> /var/log/vsftpd.log : deny
this is just a test to block local access into the ftp. But it doesnt seem to work at all, it still allows everyone on the network.

i even tried:

Code:
#FILE: /etc/hosts.deny
vsftpd : ALL : spawn /bin/echo  `/bin/date` access denied >> /var/log/vsftpd.log : deny
with same results.


any tips guys?
 
Old 10-17-2006, 04:34 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
It sounds like your setup does not use the tcp_wrappers. There is an option in the vsftpd.conf file to enable it. By default it's off, so if you run it stand-alone (not started from inetd), it will not work.

If you start it through inetd, you probably have to make sure that it goes through tcpd. That's the way I use it on my Slack boxes and it works.

man vsftpd.conf
man tcpd
man hosts_access
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
VSFTPD refusing login/denying cause anon only gonus Linux - Networking 3 10-09-2005 09:22 PM
Allowing/Denying login by group twsnnva Linux - Security 2 03-22-2005 04:14 PM
vsftpd not allowing external access bubby Linux - Software 8 12-06-2004 12:48 PM
Allowing only certain IP's to see my web site. bruce1271 Linux - General 5 01-22-2004 02:03 PM
IPchains - Allowing certain blocked IP's AndrewG Linux - Security 1 12-31-2001 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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