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 8th February 2010, 17:01
prisfeo prisfeo is offline
Member
 
Join Date: Jan 2010
Posts: 38
Thanks: 3
Thanked 2 Times in 2 Posts
Default limit FTP access by specific Remote Access IPs for specified ftpuser

ipconfig 3.0.1.6 on Cento 5.4 - all works
some websites created and relative ftp accounts.

well,
is there a way to limit FTP access by specific Remote Access IPs
only for specified ftpuser account ?
(i believe is not present this option inside ispconfig panel, only for phpmyadmin access)

in other Centos server i use proftpd and i have to configure the proftpd.conf file in order to do this..
i was wondering how to do the same thing inside this ISPconfig environment
that i know it does not use proftpd ftp server.

thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 9th February 2010, 09:31
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,185
Thanks: 829
Thanked 5,416 Times in 4,258 Posts
Default

I'am not aware of such an option in pure-ftpd. But you might be able to limit access to ftp with iptables.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th February 2010, 09:45
prisfeo prisfeo is offline
Member
 
Join Date: Jan 2010
Posts: 38
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by till View Post
I'am not aware of such an option in pure-ftpd. But you might be able to limit access to ftp with iptables.
thanks Till..
however, i am almost sure that if i'd use iptables (so a firewall)
i would limit by specific external IP the entire ftp protocol for all ftpusers and not for a single one.. (since the configured ip is only one onto ispconfig server)
..
i'll look for a solution tweaking the pure-ftpd configuration..

bye.

Last edited by prisfeo; 9th February 2010 at 09:52.
Reply With Quote
  #4  
Old 9th February 2010, 10:06
prisfeo prisfeo is offline
Member
 
Join Date: Jan 2010
Posts: 38
Thanks: 3
Thanked 2 Times in 2 Posts
 
Default

perhaps know how to do, can be useful for others:

looking inside: /etc/pure-ftpd/pureftpd-mysql.conf
it seems configuration can be "enhanced" in order to take in consideration
the source IP connected to the ftp server.


# In the following directives, parts of the strings are replaced at
# run-time before performing queries :
#
# \L is replaced by the login of the user trying to authenticate.
# \I is replaced by the IP address the user connected to.
# \P is replaced by the port number the user connected to.
# \R is replaced by the IP address the user connected from.
# \D is replaced by the remote IP address, as a long decimal number.
#
# Very complex queries can be performed using these substitution strings,
# especially for virtual hosting.


i think changing the actual queries configured adding the following statement:

"AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")"

can achieve the result..
but in the ispconfig mysql db should be added an extra column called "ipaddress" inside the ftp_user table..and put there the desired IP who can connect from to that specified user..

i'll try..
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
Attacks on MTA dclardy Installation/Configuration 4 29th September 2009 16:50
ftp is very slow and asks for user/passwd continuously chico58 Installation/Configuration 7 8th October 2008 12:43
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 21:12
slow download through webserver problem snewp Technical 14 9th May 2008 05:25
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 13:03.


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