Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th November 2008, 05:08
nbakewell nbakewell is offline
Junior Member
 
Join Date: Nov 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Use TCP Wrappers to disallow FTP from certain IP?

I need to disallow FTP from a certain IP address and am trying to use TCP wrappers to do so. After reading some online articles, I thought it was as simple as adding this line to my hosts.deny file:

Code:
vsftpd : 192.168.20.120
And making sure nothing in my hosts.allow file was overriding that, but after doing so and attempting to FTP in from 192.168.20.120 I still have access. Am I missing something here? I also tried changing vsftpd to just ftpd and ftp. How can I deny FTP from just certain IPs using TCP Wrappers?
Reply With Quote
Sponsored Links
  #2  
Old 26th November 2008, 16:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's in /etc/vsftpd.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 26th November 2008, 17:41
nbakewell nbakewell is offline
Junior Member
 
Join Date: Nov 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I believe I got it working now - turns out my 20.120 machine was actually using it's second ethernet card, 30.200, to connect through FTP, so hosts.deny was not blocking it. Now I've added that second IP address and it works.

Just to clarify, this is the method of using TCP wrappers, correct? Or is this not the same?
Reply With Quote
  #4  
Old 27th November 2008, 17:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
Originally Posted by nbakewell View Post
Just to clarify, this is the method of using TCP wrappers, correct?
Yes, that's right.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto analyse a IPTables firewall issue? chillifire Installation/Configuration 2 27th August 2008 07:23
Facing problem with ICMP (ping request) princeu28 Installation/Configuration 5 14th August 2008 00:13
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 21:12
Opening TPC ports thehappyappy Installation/Configuration 12 7th May 2008 18:39
Question about Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch ikkem HOWTO-Related Questions 30 26th February 2008 19:38


All times are GMT +2. The time now is 07:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.