Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd July 2009, 07:44
jysse jysse is offline
Member
 
Join Date: Aug 2005
Location: Laihia, Finland
Posts: 31
Thanks: 0
Thanked 3 Times in 1 Post
Default Restricting access to ftp and ispconfig3

Hi,

What is the best method to restrict access to ftp ? I mean that I would like to allow ftp access only to certain ip's not for the whole world.
If that can be done with iptables, then what kind of a rule ? Where shall I put it ?

Thank,

Jysse
Reply With Quote
Sponsored Links
  #2  
Old 4th July 2009, 13:25
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

This should give you the idea:
http://www.computing.net/answers/lin...low/10586.html
http://www.troutman.org/tech/linux_guides/secure.html
__________________
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 6th July 2009, 12:05
jysse jysse is offline
Member
 
Join Date: Aug 2005
Location: Laihia, Finland
Posts: 31
Thanks: 0
Thanked 3 Times in 1 Post
 
Default

Unfortunately I did'nt succeed with this. I don't that think that I can use host.deny/host.allow because pure-ftpd is a stanalone daemon. Is this correct ?
Looks like it when I check /etc/default/pure-ftpd-common.

Tried to add an iptables rule:
iptables -A PUB_IN -s ipaddresssource -d ipaddressserver -p tcp --dport 21 -j ACCEPT
This would not let me in with ftp.

I think that fail2ban could also be a nice solution. Tested it with ssh. Result was not what I expected. Looking at fail2ban.log I can see that ip was banned. Despite that I was able to log in from that same address with ssh client ?
Also I did add a jail for pure-ftpd but there was no affect. (/etc/fail2ban/jail.conf)

Thanks for your help.

jysse
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
ISPConfig3.. for the sake of clarity.. :-) I'm little bit confused :-) bajodel General 8 5th August 2009 09:24
FTP on Unbuntu with ISPconfig digiplay Installation/Configuration 3 7th April 2009 17:47
ispconfig3 ftp problem Mannensson Installation/Configuration 12 25th March 2009 15:33
ISPConfig3 RC1 -- no /var/client folder created. insideoutsolutions Installation/Configuration 3 30th January 2009 22:57


All times are GMT +2. The time now is 12:19.


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