Hallo, I've finished the installation of ISPConfig3. But couldn’t connect with ftp, from extern computer. A local connection within the server works fine. I have tried a ftp connection from a other Linux and a windows system: Code: ftp> open 192.168.10.10 Connected to 192.168.10.10. 421 Service not available, remote server has closed connection The server internet connection is through proxy, maybe because of some part of the installation does not work good? Apache and SquirrelMail works fine. I looked up the forum and gathered some information that could be useful: wsc:/etc# /etc/init.d/pure-ftpd-mysql restart Code: Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -E -b -A -u 1000 -O clf:/var/log/pure-ftpd/transfer.log –B wsc:/etc# /etc/init.d/openbsd-inetd restart Code: Restarting internet superserver: inetdNot starting internet superserver: no services enabled. wsc:/etc# netstat -tap | grep ftp Code: tcp 0 0 *:ftp *:* LISTEN 6339/pure-ftpd (SER tcp 1 0 localhost.localdo:36555 localhost.localdoma:ftp CLOSE_WAIT 6103/ftp tcp 20 0 localhost.localdo:36553 localhost.localdoma:ftp CLOSE_WAIT 6100/ftp tcp 20 0 localhost.localdo:36553 localhost.localdoma:ftp CLOSE_WAIT 6100/ftp tcp6 0 0 [::]:ftp [::]:* LISTEN 6339/pure-ftpd (SER wsc:/etc# netstat -tap Code: Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 localhost.localdo:10024 *:* LISTEN 2443/amavisd (maste tcp 0 0 localhost.localdo:10025 *:* LISTEN 3083/master tcp 0 0 *:mysql *:* LISTEN 2507/mysqld tcp 0 0 localhost.localdo:spamd *:* LISTEN 2596/spamd.pid tcp 0 0 *:sunrpc *:* LISTEN 2201/portmap tcp 0 0 *:ftp *:* LISTEN 6339/pure-ftpd (SER tcp 0 0 wsc.cer.com:domain *:* LISTEN 3011/mydns tcp 0 0 localhost.locald:domain *:* LISTEN 3011/mydns tcp 0 0 *:ssh *:* LISTEN 6231/sshd tcp 0 0 localhost.localdoma:761 *:* LISTEN 3129/famd tcp 0 0 *:smtp *:* LISTEN 3083/master tcp 0 0 *:44254 *:* LISTEN 2212/rpc.statd tcp 1 0 localhost.localdo:36555 localhost.localdoma:ftp CLOSE_WAIT 6103/ftp tcp 0 0 localhost.localdo:mysql localhost.localdo:54277 ESTABLISHED 2507/mysqld tcp 48 0 localhost.localdo:35479 localhost.localdo:10025 CLOSE_WAIT 3142/amavisd (ch1-a tcp 0 0 localhost.localdo:54277 localhost.localdo:mysql ESTABLISHED 3142/amavisd (ch1-a tcp 0 0 wsc.cer.com:ssh 192.168.10.28:56577 ESTABLISHED 6085/0 tcp 20 0 localhost.localdo:36553 localhost.localdoma:ftp CLOSE_WAIT 6100/ftp tcp6 0 0 [::]:imaps [::]:* LISTEN 2988/couriertcpd tcp6 0 0 [::]:pop3s [::]:* LISTEN 3006/couriertcpd tcp6 0 0 [::]:pop3 [::]:* LISTEN 2994/couriertcpd tcp6 0 0 [::]:imap2 [::]:* LISTEN 2976/couriertcpd tcp6 0 0 [::]:http-alt [::]:* LISTEN 3194/apache2 tcp6 0 0 [::]:www [::]:* LISTEN 3194/apache2 tcp6 0 0 [::]:ftp [::]:* LISTEN 6339/pure-ftpd (SER tcp6 0 0 localhost:domain [::]:* LISTEN 3011/mydns tcp6 0 0 [::]:ssh [::]:* LISTEN 6231/sshd tcp6 0 0 [::]:https [::]:* LISTEN 3194/apache2
Please post the output of: iptables -L And did you try active as well as passive FTP? You should also enable debugging in pure-ftp to get more details about the connection: http://www.faqforge.com/linux/contr...nable-debugging-in-pure-ftpd-on-debian-linux/
Hi, I tried active as well as passive FTP. Here is the requested output of the following commands: wsc:~# tail -n 100 /var/log/syslog Code: Sep 29 12:07:57 wsc mysqld_safe[2107]: started Sep 29 12:07:57 wsc mysqld[2110]: 090929 12:07:57 InnoDB: Started; log sequence number 0 43655 Sep 29 12:07:57 wsc mysqld[2110]: 090929 12:07:57 [Note] /usr/sbin/mysqld: ready for connections. Sep 29 12:07:57 wsc mysqld[2110]: Version: '5.0.51a-24+lenny2' socket: '/var/ru n/mysqld/mysqld.sock' port: 3306 (Debian) Sep 29 12:07:58 wsc /etc/mysql/debian-start[2151]: Upgrading MySQL tables if nec essary. Sep 29 12:07:58 wsc /etc/mysql/debian-start[2156]: Looking for 'mysql' in: /usr/ bin/mysql Sep 29 12:07:58 wsc /etc/mysql/debian-start[2156]: Looking for 'mysqlcheck' in: /usr/bin/mysqlcheck Sep 29 12:07:58 wsc /etc/mysql/debian-start[2156]: This installation of MySQL is already upgraded to 5.0.51a, use --force if you still need to run mysql_upgrade Sep 29 12:07:58 wsc /etc/mysql/debian-start[2165]: Checking for insecure root ac counts. Sep 29 12:07:58 wsc /etc/mysql/debian-start[2169]: Triggering myisam-recover for all MyISAM tables Sep 29 12:07:59 wsc spamd[2160]: logger: removing stderr method Sep 29 12:07:59 wsc kernel: [ 58.731109] ip_tables: (C) 2000-2006 Netfilter Co re Team Sep 29 12:07:59 wsc kernel: [ 58.888885] nf_conntrack version 0.5.0 (16384 buc kets, 65536 max) Sep 29 12:07:59 wsc ntpdate[1786]: can't find host 0.debian.pool.ntp.org Sep 29 12:07:59 wsc ntpdate[1786]: can't find host 1.debian.pool.ntp.org Sep 29 12:07:59 wsc ntpdate[1786]: can't find host 2.debian.pool.ntp.org Sep 29 12:07:59 wsc ntpdate[1786]: can't find host 3.debian.pool.ntp.org Sep 29 12:07:59 wsc ntpdate[1786]: no servers can be used, exiting Sep 29 12:08:01 wsc kernel: [ 60.473850] eth0: no IPv6 routers present Sep 29 12:08:06 wsc authdaemond: modules="authmysql", daemons=5 Sep 29 12:08:06 wsc authdaemond: Installing libauthmysql Sep 29 12:08:06 wsc authdaemond: Installation complete: authmysql Sep 29 12:08:06 wsc mydns[2774]: mydns 1.2.8.25 started Tue Sep 29 12:08:06 2009 (listening on 3 addresses) Sep 29 12:08:07 wsc postfix/master[2846]: daemon started -- version 2.5.5, confi guration /etc/postfix Sep 29 12:08:07 wsc kernel: [ 66.877387] warning: `pure-ftpd-mysql' uses 32-bi t capabilities (legacy support in use) Sep 29 12:08:08 wsc ntpd[2906]: ntpd [email protected] Mon May 11 19:58:14 UTC 20 09 (1) Sep 29 12:08:08 wsc ntpd[2907]: precision = 1.000 usec Sep 29 12:08:08 wsc ntpd[2907]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled Sep 29 12:08:08 wsc ntpd[2907]: Listening on interface #1 wildcard, ::#123 Disab led Sep 29 12:08:08 wsc ntpd[2907]: Listening on interface #2 lo, ::1#123 Enabled Sep 29 12:08:08 wsc ntpd[2907]: Listening on interface #3 eth0, fe80::20b:cdff:f e4d:f7f0#123 Enabled Sep 29 12:08:08 wsc ntpd[2907]: Listening on interface #4 lo, 127.0.0.1#123 Enab led Sep 29 12:08:08 wsc ntpd[2907]: Listening on interface #5 eth0, 192.168.10.10#12 3 Enabled Sep 29 12:08:08 wsc ntpd[2907]: kernel time sync status 0040 Sep 29 12:08:08 wsc ntpd[2907]: frequency initialized 0.000 PPM from /var/lib/nt p/ntp.drift Sep 29 12:08:08 wsc /usr/sbin/cron[2935]: (CRON) INFO (pidfile fd = 3) Sep 29 12:08:08 wsc /usr/sbin/cron[2936]: (CRON) STARTUP (fork ok) Sep 29 12:08:08 wsc /usr/sbin/cron[2936]: (CRON) INFO (Running @reboot jobs) Sep 29 12:08:13 wsc spamd[2200]: spamd: server started on port 783/tcp (running version 3.2.5) Sep 29 12:08:13 wsc spamd[2200]: spamd: server pid: 2200 Sep 29 12:08:13 wsc spamd[2200]: spamd: server successfully spawned child proces s, pid 3019 Sep 29 12:08:13 wsc spamd[2200]: spamd: server successfully spawned child proces s, pid 3020 Sep 29 12:08:13 wsc spamd[2200]: prefork: child states: II Sep 29 12:09:01 wsc /USR/SBIN/CRON[3026]: (root) CMD ( [ -x /usr/lib/php5/maxli fetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/li b/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm) Sep 29 12:09:01 wsc /USR/SBIN/CRON[3025]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:10:01 wsc /USR/SBIN/CRON[3050]: (getmail) CMD (/usr/local/bin/run-getm ail.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:10:01 wsc /USR/SBIN/CRON[3049]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:10:01 wsc pure-ftpd: ([email protected]) [INFO] New connection f rom localhost.localdomain Sep 29 12:10:01 wsc pure-ftpd: ([email protected]) [DEBUG] Command [quit] [] Sep 29 12:10:01 wsc pure-ftpd: ([email protected]) [INFO] Logout. Sep 29 12:10:01 wsc mydns[2776]: read_tcp_length: no data for fd 8: 127.0.0.1: C lient closed TCP connection Sep 29 12:10:01 wsc imapd: Connection, ip=[::ffff:127.0.0.1] Sep 29 12:10:01 wsc imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0 Sep 29 12:10:01 wsc pop3d: Connection, ip=[::ffff:127.0.0.1] Sep 29 12:10:01 wsc pop3d: Disconnected, ip=[::ffff:127.0.0.1] Sep 29 12:10:02 wsc postfix/smtpd[3066]: connect from localhost.localdomain[127. 0.0.1] Sep 29 12:10:02 wsc postfix/smtpd[3066]: lost connection after CONNECT from loca lhost.localdomain[127.0.0.1] Sep 29 12:10:02 wsc postfix/smtpd[3066]: disconnect from localhost.localdomain[1 27.0.0.1] Sep 29 12:11:01 wsc /USR/SBIN/CRON[3087]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:12:01 wsc /USR/SBIN/CRON[3094]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:13:01 wsc /USR/SBIN/CRON[3102]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:14:01 wsc /USR/SBIN/CRON[3110]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:15:01 wsc /USR/SBIN/CRON[3119]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:15:01 wsc /USR/SBIN/CRON[3120]: (getmail) CMD (/usr/local/bin/run-getm ail.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:15:01 wsc pure-ftpd: ([email protected]) [INFO] New connection f rom localhost.localdomain Sep 29 12:15:01 wsc pure-ftpd: ([email protected]) [DEBUG] Command [quit] [] Sep 29 12:15:01 wsc pure-ftpd: ([email protected]) [INFO] Logout. Sep 29 12:15:01 wsc pop3d: Connection, ip=[::ffff:127.0.0.1] Sep 29 12:15:01 wsc imapd: Connection, ip=[::ffff:127.0.0.1] Sep 29 12:15:01 wsc imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0 Sep 29 12:15:01 wsc pop3d: Disconnected, ip=[::ffff:127.0.0.1] Sep 29 12:15:01 wsc postfix/smtpd[3137]: connect from localhost.localdomain[127. 0.0.1] Sep 29 12:15:01 wsc postfix/smtpd[3137]: lost connection after CONNECT from loca lhost.localdomain[127.0.0.1] Sep 29 12:15:01 wsc postfix/smtpd[3137]: disconnect from localhost.localdomain[1 27.0.0.1] Sep 29 12:15:44 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:15:59 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:16:01 wsc /USR/SBIN/CRON[3157]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:16:48 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:17:01 wsc /USR/SBIN/CRON[3167]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:17:01 wsc /USR/SBIN/CRON[3168]: (root) CMD ( cd / && run-parts --rep ort /etc/cron.hourly) Sep 29 12:17:02 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:17:17 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:18:01 wsc /USR/SBIN/CRON[3178]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:18:01 wsc /USR/SBIN/CRON[3179]: (amavis) CMD (test -e /usr/sbin/amavis d-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync) Sep 29 12:19:01 wsc /USR/SBIN/CRON[3188]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:20:01 wsc /USR/SBIN/CRON[3197]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:20:01 wsc /USR/SBIN/CRON[3198]: (getmail) CMD (/usr/local/bin/run-getm ail.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:20:01 wsc pure-ftpd: ([email protected]) [INFO] New connection f rom localhost.localdomain Sep 29 12:20:01 wsc pure-ftpd: ([email protected]) [DEBUG] Command [quit] [] Sep 29 12:20:01 wsc pure-ftpd: ([email protected]) [INFO] Logout. Sep 29 12:20:01 wsc pop3d: Connection, ip=[::ffff:127.0.0.1] Sep 29 12:20:01 wsc pop3d: Disconnected, ip=[::ffff:127.0.0.1] Sep 29 12:20:01 wsc imapd: Connection, ip=[::ffff:127.0.0.1] Sep 29 12:20:01 wsc imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0 Sep 29 12:20:01 wsc postfix/smtpd[3215]: connect from localhost.localdomain[127. 0.0.1] Sep 29 12:20:01 wsc postfix/smtpd[3215]: lost connection after CONNECT from loca lhost.localdomain[127.0.0.1] Sep 29 12:20:01 wsc postfix/smtpd[3215]: disconnect from localhost.localdomain[1 27.0.0.1] Sep 29 12:21:01 wsc /USR/SBIN/CRON[3233]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:22:01 wsc /USR/SBIN/CRON[3240]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:23:01 wsc /USR/SBIN/CRON[3251]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) I think here is a problem: Code: Sep 29 12:15:01 wsc postfix/smtpd[3137]: connect from localhost.localdomain[127. 0.0.1] Sep 29 12:15:01 wsc postfix/smtpd[3137]: lost connection after CONNECT from loca lhost.localdomain[127.0.0.1] Sep 29 12:15:01 wsc postfix/smtpd[3137]: disconnect from localhost.localdomain[1 27.0.0.1] Sep 29 12:15:44 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:15:59 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:16:01 wsc /USR/SBIN/CRON[3157]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:16:48 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:17:01 wsc /USR/SBIN/CRON[3167]: (root) CMD (/usr/local/ispconfig/serve r/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log) Sep 29 12:17:01 wsc /USR/SBIN/CRON[3168]: (root) CMD ( cd / && run-parts --rep ort /etc/cron.hourly) Sep 29 12:17:02 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given Sep 29 12:17:17 wsc pure-ftpd: (?@?) [ERROR] Sorry, invalid address given I am new to Linux, but I thought maybe the host settings are not set correctly. But i think the settings are correct: vi /etc/hosts Code: 127.0.0.1 localhost.localdomain localhost 192.168.10.10 wsc.cer.com wsc
Please disable resolving in pure-ftpd: http://www.faqforge.com/linux/contr...ian-or-ubuntu-linux-by-disable-name-rsolving/
The problem was solved by a previous thread made by Till http://www.faqforge.com/linux/contr...nable-debugging-in-pure-ftpd-on-debian-linux/ Thanks