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
  #1  
Old 4th July 2006, 04:41
n1kol1s n1kol1s is offline
Member
 
Join Date: May 2006
Posts: 60
Thanks: 2
Thanked 0 Times in 0 Posts
Default Cannot connect to anonymus ftp

Hi all
I have a problem with anonymus ftp.when i try to connect with smartftp and windows as anonymus and i get this error. I have enable the anonymus ftp in ispconfig and because i can connect to my user ftp i believe that my firewall settings r ok. i have the same problem with both internal and external ip's .
ftp://wrl.homelinux.com

220 FTP Server ready.
[12:26:19] USER anonymous
[12:26:19] 331 Password required for anonymous.
[12:26:19] PASS (hidden)
[12:26:19] 530 Login incorrect.

My web9_nikolis ftp with password is working with no problems
the proftpd_ispconfig.conf output is:

###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################
<VirtualHost 10.10.64.164>
DefaultRoot ~
AllowOverwrite on
Umask 002
<Anonymous /var/www/web9/ftp>
User web9_anonftp
Group web9_anonftp
UserAlias anonymous web9_anonftp
UserAlias guest web9_anonftp
MaxClients 10
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory /var/www/web9/ftp/incoming>
Umask 002
<Limit STOR>
AllowAll
</Limit>
<Limit READ>
DenyAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>

and the proftpd.conf output is :

# This is the ProFTPD configuration file
# $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $

ServerName "ProFTPD server"
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
ServerType standalone
#ServerType inetd
DefaultServer on
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off

# Use this to excude users from the chroot
DefaultRoot ~ !adm

# Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# Default to show dot files in directory listings
ListOptions "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
#RootLogin off
#LoginPasswordPrompt on
#MaxLoginAttempts 3
#MaxClientsPerHost none
#AllowForeignAddress off # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on

# 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 20

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

# This is where we want to put the pid file
ScoreboardFile /var/run/proftpd.score

# Normally, we want users to do a few things.
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
</Global>

# Define the log formats
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"

# TLS
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
#TLSEngine on
#TLSRequired on
#TLSRSACertificateFile /etc/pki/tls/certs/proftpd.pem
#TLSRSACertificateKeyFile /etc/pki/tls/certs/proftpd.pem
#TLSCipherSuite ALL:!ADH:!DES
#TLSOptions NoCertRequest
#TLSVerifyClient off
##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
#TLSLog /var/log/proftpd/tls.log

# SQL authentication Dynamic Shared Object (DSO) loading
# See README.DSO and howto/DSO.html for more details.
#<IfModule mod_dso.c>
# LoadModule mod_sql.c
# LoadModule mod_sql_mysql.c
# LoadModule mod_sql_postgres.c
#</IfModule>

# A basic anonymous configuration, with an upload directory.
#<Anonymous ~ftp>
# User ftp
# Group ftp
# AccessGrantMsg "Anonymous login ok, restrictions apply."
#
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
#
# # Limit the maximum number of anonymous logins
# MaxClients 10 "Sorry, max %m users -- try again later"
#
# # Put the user into /pub right after login
# #DefaultChdir /pub
#
# # We want 'welcome.msg' displayed at login, '.message' displayed in
# # each newly chdired directory and tell users to read README* files.
# DisplayLogin /welcome.msg
# DisplayFirstChdir .message
# DisplayReadme README*
#
# # Some more cosmetic and not vital stuff
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# # Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE SITE_CHMOD>
# DenyAll
# </Limit>
#
# # An upload directory that allows storing files but not retrieving
# # or creating directories.
# <Directory uploads/*>
# AllowOverwrite no
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>
#
# # Don't write anonymous accesses to the system wtmp file (good idea!)
# WtmpLog off
#
# # Logging for the anonymous transfers
# ExtendedLog /var/log/proftpd/access.log WRITE,READ default
# ExtendedLog /var/log/proftpd/auth.log AUTH auth
#
#</Anonymous>


DefaultRoot ~

Include /etc/proftpd_ispconfig.conf
Reply With Quote
Sponsored Links
  #2  
Old 4th July 2006, 10:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,070
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Please try to set:

DefaultServer on

to:

DefaultServer off

and restart proftpd.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th July 2006, 00:47
n1kol1s n1kol1s is offline
Member
 
Join Date: May 2006
Posts: 60
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I did but i got this message trying to connect with smartftp so i turn the default server back on .

[08:43:11] SmartFTP v2.0.996.25
[08:43:11] Resolving host name "10.10.64.164"
[08:43:11] Connecting to 10.10.64.164 Port: 21
[08:43:11] Connected to 10.10.64.164.
[08:43:11] 500 Sorry, no server available to handle request on ::ffff:10.10.64.164
[08:43:11] Cannot login waiting to retry (30s)...
[08:43:11] Server closed connection

nikolis
Reply With Quote
  #4  
Old 7th July 2006, 10:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
netstat -tap
and
Code:
iptables -L
? Any errors in your logs?
__________________
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
  #5  
Old 8th July 2006, 03:26
n1kol1s n1kol1s is offline
Member
 
Join Date: May 2006
Posts: 60
Thanks: 2
Thanked 0 Times in 0 Posts
Question

[root@wrl ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address Stat e PID/Program name
tcp 0 0 *:48868 *:* LIST EN 1618/rpc.statd
tcp 0 0 *:mysql *:* LIST EN 1945/mysqld
tcp 0 0 *:sunrpc *:* LIST EN 1600/portmap
tcp 0 0 *:hosts2-ns *:* LIST EN 11725/ispconfig_htt
tcp 0 0 10.10.64.164:domain *:* LIST EN 21310/named
tcp 0 0 localhost.localdomai:domain *:* LIST EN 21310/named
tcp 0 0 localhost.localdomain:ipp *:* LIST EN 1823/cupsd
tcp 0 0 *:smtp *:* LIST EN 18508/master
tcp 0 0 localhost.localdomain:rndc *:* LIST EN 21310/named
tcp 0 0 *:imaps *:* LIST EN 1970/dovecot
tcp 0 0 *op3s *:* LIST EN 1970/dovecot
tcp 0 0 *op3 *:* LIST EN 1970/dovecot
tcp 0 0 *:imap *:* LIST EN 1970/dovecot
tcp 0 0 *:http *:* LIST EN 11750/httpd
tcp 0 0 *:ftp *:* LIST EN 9412/proftpd: (acce
tcp 0 0 *:ssh *:* LIST EN 1841/sshd
tcp 0 0 localhost:rndc *:* LIST EN 21310/named
tcp 0 0 *:https *:* LIST EN 11750/httpd
tcp 0 0 ::ffff:10.10.64.164:ssh ::ffff:10.10.64.:seagulllms ESTA BLISHED 31453/0
tcp 0 932 ::ffff:10.10.64.164:ssh ::ffff:10.10:isoipsigport-1 ESTA
BLISHED 31552/1

[root@wrl ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

the path cd /var/log/proftpd is empty no error logs there
Reply With Quote
  #6  
Old 9th July 2006, 13:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you change

Code:
###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################
<VirtualHost 10.10.64.164>
DefaultRoot ~
AllowOverwrite on
Umask 002
<Anonymous /var/www/web9/ftp>
User web9_anonftp
Group web9_anonftp
UserAlias anonymous web9_anonftp
UserAlias guest web9_anonftp
MaxClients 10
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory /var/www/web9/ftp/incoming>
Umask 002
<Limit STOR>
AllowAll
</Limit>
<Limit READ>
DenyAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>
to

Code:
###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################

DefaultAddress 127.0.0.1

<VirtualHost 10.10.64.164>
DefaultRoot ~
AllowOverwrite on
Umask 002
<Anonymous /var/www/web9/ftp>
User web9_anonftp
Group web9_anonftp
UserAlias anonymous web9_anonftp
UserAlias guest web9_anonftp
MaxClients 10
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory /var/www/web9/ftp/incoming>
Umask 002
<Limit STOR>
AllowAll
</Limit>
<Limit READ>
DenyAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>
in /etc/proftpd_ispconfig.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
  #7  
Old 10th July 2006, 02:39
n1kol1s n1kol1s is offline
Member
 
Join Date: May 2006
Posts: 60
Thanks: 2
Thanked 0 Times in 0 Posts
Default

no , no luck
sould i add a virual ip and set that up for the anonymus ftp..ill try that and ill post results.
tnx
nikolis
Reply With Quote
  #8  
Old 10th July 2006, 02:59
n1kol1s n1kol1s is offline
Member
 
Join Date: May 2006
Posts: 60
Thanks: 2
Thanked 0 Times in 0 Posts
Default

still same problem with the virual ip
even tryed to to use it as a defaultaddress (virtual ip) anwell as 127.0.0.1
nothing...

ftp://wrl.homelinux.com

[10:53:23] Connected to 10.10.64.165.
[10:53:23] 220 Welcomme to my Ftp Server. Enjoy!
[10:53:23] USER anonymous
[10:53:23] 331 Password required for anonymous.
[10:53:23] PASS (hidden)
[10:53:23] 530 Login incorrect.
[10:53:23] Active Help: http://www.smartftp.com/support/kb/index.php/51
[10:53:27] Server closed connection
Reply With Quote
  #9  
Old 11th July 2006, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you add the DefaultAddress line to /etc/proftpd_ispconfig.conf and /root/ispconfig/isp/conf/proftpd_ispconfig.conf.master and 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
  #10  
Old 12th July 2006, 02:21
n1kol1s n1kol1s is offline
Member
 
Join Date: May 2006
Posts: 60
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

I added :
###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################
DefaultAddress 127.0.0.1
<!-- BEGIN DYNAMIC BLOCK: vhost -->
DefaultAddress 127.0.0.1
<VirtualHost {IP}>
DefaultRoot ~
AllowOverwrite on
Umask 002
{ANON_FTP}
</VirtualHost>
<!-- END DYNAMIC BLOCK: vhost -->
and
###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################
DefaultAddress 127.0.0.1
<VirtualHost 10.10.64.164>
DefaultRoot ~
AllowOverwrite on
Umask 002
<Anonymous /var/www/web9/ftp>
User web9_anonftp
Group web9_anonftp
UserAlias anonymous web9_anonftp
UserAlias guest web9_anonftp
MaxClients 10
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory /var/www/web9/ftp/incoming>
Umask 002
<Limit STOR>
AllowAll
</Limit>
<Limit READ>
DenyAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>

with no luck!
it seems to be a some sort of authentication/authorisation mix up with the anonymus ftp.
tnx
nikolis
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
E-mail problem MateKrisz Installation/Configuration 9 2nd June 2006 09:48
Webmail Relay Error palkat General 17 23rd April 2006 18:12
Email seemingly not working... Duplex Installation/Configuration 11 19th April 2006 14:48
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 11:30


All times are GMT +2. The time now is 04:59.


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