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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 6th July 2010, 09:09
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 271
Thanks: 75
Thanked 6 Times in 5 Posts
Default

Big thnks for Help Falko!
Output is:

Code:
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                         off
# If set on you can experience a longer connection delay in many cases.
IdentLookups                    off

ServerName                      "FTP server"
ServerType                      standalone
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayChdir                    .message true
ListOptions                     "-l"

DenyFilter                      \*.*/
UseReverseDNS                   off
# Use this to jail all users in their homes

<Global>
DefaultRoot                     ~
IdentLookups                    off
ServerIdent on "FTP Server ready."
</Global>
# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell             off

# Port 21 is the standard FTP port.
Port                            21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
PassivePorts                  60000 60050

# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
MasqueradeAddress               132.123.123.123

# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            proftpd
Group                           nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask                           022  022
# Normally, we want files to be overwriteable.
AllowOverwrite                  on

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>

<IfModule mod_ratio.c>
Ratios off
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        off
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>

############MANUAL
DefaultRoot ~
ServerIdent on "FTP Server ready."
DefaultAddress 192.168.123.116


Include /etc/proftpd_ispconfig.conf
/etc/proftpd_ispconfig.conf
Code:
DefaultAddress 127.0.0.1
<VirtualHost 192.168.123.116>
        DefaultRoot             ~
        AllowOverwrite          on
        Umask                   002
</VirtualHost>
<VirtualHost 123.123.123.123>
        DefaultRoot             ~
        AllowOverwrite          on
        Umask                   002
</VirtualHost>
/etc/proftpd_ispconfig.conf~
Code:
DefaultAddress 127.0.0.1
<VirtualHost 192.168.123.116>
        DefaultRoot             ~
        AllowOverwrite          on
        Umask                   002
</VirtualHost>

Last edited by Captain; 6th July 2010 at 09:25.
Reply With Quote
Sponsored Links
  #12  
Old 7th July 2010, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Can you comment out the
Code:
DefaultAddress 192.168.123.116
line in /etc/proftpd/proftpd.conf and restart ProFTPd?
__________________
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
  #13  
Old 8th July 2010, 21:00
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 271
Thanks: 75
Thanked 6 Times in 5 Posts
Default

it didnt help!
Reply With Quote
  #14  
Old 9th July 2010, 10:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

What happens if you comment out the
Code:
Include /etc/proftpd_ispconfig.conf
line in your proftpd.conf and restart ProFTPd?
__________________
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
  #15  
Old 9th July 2010, 15:15
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 271
Thanks: 75
Thanked 6 Times in 5 Posts
Default

Output of FileZilla in Active Mode:
Code:
Command:	MLSD
Response:	425 Unable to build data connection: Connection refused
Error:	Failed to retrieve directory listing
And in ISPConfig Web-FTP didnt work.

If I restart without this line "Include /etc/proftpd_ispconfig.conf" output after restart is:
Code:
root@itex:~# /etc/init.d/proftpd restart
 * Stopping ftp server proftpd                                           [ OK ]
 * Starting ftp server proftpd                                                  itex.intechnologies.lv - 192.168.123.116:21 masquerading as 123.123.123.123
                                                                         [ OK ]
If with this line, output is:
Code:
root@itex:~# /etc/init.d/proftpd restart
 * Stopping ftp server proftpd                                           [ OK ]
 * Starting ftp server proftpd                                                   - setting default address to 127.0.0.1
localhost.localdomain - 127.0.0.1:21 masquerading as 123.123.123.123                                                                         [ OK ]
I dont but may be it is after this restartings, but my proftpd didnt works at all.
In log files all looks OK.
Please help.

Last edited by Captain; 9th July 2010 at 16:00.
Reply With Quote
  #16  
Old 10th July 2010, 11:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Comment out
Code:
MasqueradeAddress               132.123.123.123
Restart ProFTPd and try again.
__________________
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
  #17  
Old 10th July 2010, 21:12
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 271
Thanks: 75
Thanked 6 Times in 5 Posts
Default

Now works in active mode only via FileZilla.
But via ISPConfig WebFTP didnt work. When I try to connect I have this error:
"Could not connect to localhost "
Reply With Quote
  #18  
Old 11th July 2010, 23:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
netstat -tap
now?
__________________
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
  #19  
Old 12th July 2010, 09:25
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 271
Thanks: 75
Thanked 6 Times in 5 Posts
Default

Output is:
Code:
root@itex:~# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:40421                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:32773                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:32774                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:31337                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:mysql                 *:*                     LISTEN      746/mysqld
tcp        0      0 *:ircd                  *:*                     LISTEN      3990/portsentry
tcp        0      0 *:systat                *:*                     LISTEN      3990/portsentry
tcp        0      0 *:5742                  *:*                     LISTEN      3990/portsentry
tcp        0      0 *:sunrpc                *:*                     LISTEN      3990/portsentry
tcp        0      0 *:finger                *:*                     LISTEN      3990/portsentry
tcp        0      0 *:netstat               *:*                     LISTEN      3990/portsentry
tcp        0      0 *:www                   *:*                     LISTEN      1783/apache2
tcp        0      0 *:webmin                *:*                     LISTEN      4420/perl
tcp        0      0 *:54320                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:cisco-sccp            *:*                     LISTEN      3990/portsentry
tcp        0      0 *:81                    *:*                     LISTEN      1581/ispconfig_http
tcp        0      0 *:27665                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:ingreslock            *:*                     LISTEN      3990/portsentry
tcp        0      0 *:ftp                   *:*                     LISTEN      29916/proftpd: (acc
tcp        0      0 itex.domain:domain *:*                     LISTEN      1923/named
tcp        0      0 localhost.locald:domain *:*                     LISTEN      1923/named
tcp        0      0 *:ssh                   *:*                     LISTEN      754/sshd
tcp        0      0 *:nntp                  *:*                     LISTEN      3990/portsentry
tcp        0      0 *:socks                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:smtp                  *:*                     LISTEN      30153/master
tcp        0      0 localhost.localdoma:953 *:*                     LISTEN      1923/named
tcp        0      0 *:12345                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:12346                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:https                 *:*                     LISTEN      1783/apache2
tcp        0      0 *:635                   *:*                     LISTEN      3990/portsentry
tcp        0      0 *:49724                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:uucp                  *:*                     LISTEN      3990/portsentry
tcp        0      0 localhost.localdo:60000 *:*                     LISTEN      1600/postgrey.pid -
tcp        0      0 *:tcpmux                *:*                     LISTEN      3990/portsentry
tcp        0      0 *:20034                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:32771                 *:*                     LISTEN      3990/portsentry
tcp        0      0 *:32772                 *:*                     LISTEN      3990/portsentry
Reply With Quote
  #20  
Old 13th July 2010, 19:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
 
Default

Hm, looks ok. Is this a physical server or a virtual machine?
__________________
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
The Following User Says Thank You to falko For This Useful Post:
Captain (14th July 2010)
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
ERROR- Connection dropped by imap-server Al1937 Installation/Configuration 10 4th September 2009 21:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 08:04
problem after upgrade from 2.2.8 to 2.2.9 smartcall Installation/Configuration 15 23rd January 2007 09:48
Big unespected problem in upgrade!!! donaldblake Installation/Configuration 6 6th December 2005 22:31


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


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