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 17th July 2009, 23:18
IzFazt IzFazt is offline
Junior Member
 
Join Date: Jul 2009
Posts: 24
Thanks: 1
Thanked 2 Times in 1 Post
Default ftp issues user cannot connect Centos

pure-ftpd (followed howto install for centos) generates this in with PASV off and a hanging loop passive mode, see data below? Any ideas?

PASV on:

Quote:
Connecting to jl-websites.discounthost.biz on port 121. Attempt 1 of 3...
220---------- Welcome to Pure-FTPd [TLS ----------
220-You are user number 2 of 5 allowed.
220-Local time is now 00:10. Server port: 121.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
USER leppers001
331 User leppers001 OK. Password required
PASS *****
230-User leppers001 has group access to: client4
230 OK. Current restricted directory is /
SYST
215 UNIX Type: L8
Server Type: UNIX (standard)
FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNI X.gid*;unique*;
MLSD
ESTP
PASV
EPSV
SPSV
ESTA
AUTH TLS
PBSZ
PROT
UTF8
211 End.
PWD
257 "/" is your current location
TYPE A
200 TYPE is now ASCII
PASV
227 Entering Passive Mode (192,168,1,4,164,25)
Operation timed out
Processing item, attempt 2...
PASV
227 Entering Passive Mode (192,168,1,4,164,22)
Operation timed out
Processing item, attempt 3...
PASV
227 Entering Passive Mode (192,168,1,4,164,24)
Operation timed out
Failed timed out
PASV
227 Entering Passive Mode (192,168,1,4,164,23)
Operation timed out
Processing item, attempt 2...
PASV
227 Entering Passive Mode (192,168,1,4,164,18)
Operation timed out
Processing item, attempt 3...
PASV
227 Entering Passive Mode (192,168,1,4,164,21)
Operation timed out
Failed timed out
PASV
227 Entering Passive Mode (192,168,1,4,164,19)
Operation timed out
Processing item, attempt 2...
PASV
227 Entering Passive Mode (192,168,1,4,164,21)
Operation timed out
Processing item, attempt 3...
PASV
227 Entering Passive Mode (192,168,1,4,164,17)
Operation timed out
Failed timed out
PASV
227 Entering Passive Mode (192,168,1,4,164,17)
Operation timed out
Processing item, attempt 2...
PASV
227 Entering Passive Mode (192,168,1,4,164,16)
PASV off:

Quote:
Connecting to jl-websites.discounthost.biz on port 121. Attempt 1 of 3...
220---------- Welcome to Pure-FTPd [TLS ----------
220-You are user number 1 of 5 allowed.
220-Local time is now 00:48. Server port: 121.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
USER leppers001
331 User leppers001 OK. Password required
PASS *****
230-User leppers001 has group access to: client4
230 OK. Current restricted directory is /
Server Type: UNIX (standard)
FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNI X.gid*;unique*;
MLSD
ESTP
PASV
EPSV
SPSV
ESTA
AUTH TLS
PBSZ
PROT
UTF8
211 End.
PWD
257 "/" is your current location
TYPE A
200 TYPE is now ASCII
PORT 192,168,1,101,242,84
500 I won't open a connection to 192.168.1.101 (only to 83.87.8.129)
Unable to open data socket
Processing item, attempt 2...
PORT 192,168,1,101,242,85
500 I won't open a connection to 192.168.1.101 (only to 83.87.8.129)
Unable to open data socket
Processing item, attempt 3...
PORT 192,168,1,101,242,86
500 I won't open a connection to 192.168.1.101 (only to 83.87.8.129)
Unable to open data socket
Failed to open data socket
PORT 192,168,1,101,242,87
500 I won't open a connection to 192.168.1.101 (only to 83.87.8.129)
Unable to open data socket
Processing item, attempt 2...
PORT 192,168,1,101,242,88
500 I won't open a connection to 192.168.1.101 (only to 83.87.8.129)
Unable to open data socket
Processing item, attempt 3...
PORT 192,168,1,101,242,89
500 I won't open a connection to 192.168.1.101 (only to 83.87.8.129)
Unable to open data socket
Failed to open data socket
PORT 192,168,1,101,242,90
Reply With Quote
Sponsored Links
  #2  
Old 18th July 2009, 11:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

This is probably a firewall problem.
__________________
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 18th July 2009, 14:50
IzFazt IzFazt is offline
Junior Member
 
Join Date: Jul 2009
Posts: 24
Thanks: 1
Thanked 2 Times in 1 Post
Default

ok, which firewall are you referring to? The user tested on more then one occasion with his firewall off and the same result. The system is using the ISP firewall and ports 120,121, 42000 tot 42010 are open, portforwarding is set correctly and of course in pure-ftpd.conf 42000 to 42010 is PassivePortsRange. FTP server was restarted more then once and just to be sure reboot also done. The result does not change. Could you be a bit more specific and explain what else there is that can cause a firewall problem ?
Reply With Quote
  #4  
Old 19th July 2009, 13:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,003 Times in 3,912 Posts
Default

Please post the output of:

netstat -tap

and

iptables -L
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 20th July 2009, 02:59
IzFazt IzFazt is offline
Junior Member
 
Join Date: Jul 2009
Posts: 24
Thanks: 1
Thanked 2 Times in 1 Post
Default

ok, here they are

Quote:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdomain:10024 *:* LISTEN 2400/amavisd (maste
tcp 0 0 localhost.localdomain:10025 *:* LISTEN 2490/master
tcp 0 0 *:mysql *:* LISTEN 2326/mysqld
tcp 0 0 *:fcp-udp *:* LISTEN 1900/rpc.statd
tcp 0 0 localhost.local:dyna-access *:* LISTEN 2230/clamd
tcp 0 0 *:sunrpc *:* LISTEN 1859/portmap
tcp 0 0 server1.discounthost:domain *:* LISTEN 2356/mydns
tcp 0 0 localhost.localdomai:domain *:* LISTEN 2356/mydns
tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2215/cupsd
tcp 0 0 *:erpc *:* LISTEN 32229/pure-ftpd (SE
tcp 0 0 *:smtp *:* LISTEN 1613/smtpd
tcp 0 0 localhost.localdomain:41053 localhost.localdomai:domain TIME_WAIT -
tcp 0 0 localhost.localdomain:33405 localhost.localdomain:http TIME_WAIT -
tcp 0 0 *:imaps *:* LISTEN 2418/couriertcpd
tcp 0 0 *op3s *:* LISTEN 2430/couriertcpd
tcp 0 0 *op3 *:* LISTEN 2424/couriertcpd
tcp 0 0 *:imap *:* LISTEN 2411/couriertcpd
tcp 0 0 *:http *:* LISTEN 2524/httpd
tcp 0 0 *:8085 *:* LISTEN 2524/httpd
tcp 0 0 localhost6.localdoma:domain *:* LISTEN 2356/mydns
tcp 0 0 *:ssh *:* LISTEN 2183/sshd
tcp 0 0 localhost6.localdomain6:ipp *:* LISTEN 2215/cupsd
tcp 0 0 *:erpc *:* LISTEN 32229/pure-ftpd (SE
tcp 0 0 *:https *:* LISTEN 2524/httpd
tcp 0 148 server1.discounthost.bi:ssh ::ffff:192.168.1.:nms-dpnss ESTABLISHED 399/0
Quote:
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
Reply With Quote
  #6  
Old 20th July 2009, 13:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

What's the output of
Code:
grep erpc /etc/services
?
__________________
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 20th July 2009, 16:16
IzFazt IzFazt is offline
Junior Member
 
Join Date: Jul 2009
Posts: 24
Thanks: 1
Thanked 2 Times in 1 Post
Default

as requested....

Quote:
erpc 121/tcp # Encore Expedited Remote Pro.Call
erpc 121/udp # Encore Expedited Remote Pro.Call
caerpc 42510/tcp # CA eTrust RPC
caerpc 42510/udp # CA eTrust RPC
Reply With Quote
  #8  
Old 21st July 2009, 14:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

Your FTP daemon is listening on port 121 instead of 21...
__________________
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
  #9  
Old 21st July 2009, 16:35
IzFazt IzFazt is offline
Junior Member
 
Join Date: Jul 2009
Posts: 24
Thanks: 1
Thanked 2 Times in 1 Post
Default

I know, everything is set for port 121 and not for 21 we have a reason for that, but as you can see in the top of this post, that is not the problem, the problem is the hangs and the loops when logged in on port 121
Reply With Quote
  #10  
Old 23rd July 2009, 17:51
IzFazt IzFazt is offline
Junior Member
 
Join Date: Jul 2009
Posts: 24
Thanks: 1
Thanked 2 Times in 1 Post
 
Default

Even when Joomla tries to use PASV FTP on the site to delete some cache files somewhere else in its own directory this is the response.

Quote:

* JFTP::login: Unable to login
* JFTP::write: Unable to use passive mode
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::write: Unable to use passive mode
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::write: Unable to use passive mode
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::write: Unable to use passive mode
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::delete: Bad response
* JFTP::delete: Bad response
Reply With Quote
Reply

Bookmarks

Tags
pure-ftpd, time out in pasv mode, unable to open socket

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
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 16:54
How to have user e-mail separated from ftp t-mug Tips/Tricks/Mods 1 26th June 2009 23:43
Can't send mail [Lenny ISPConfig 3] Deficit HOWTO-Related Questions 2 14th June 2009 14:30
Virtual Hosting ProFTPD -- Cant Connect Ftp Serv ibrahimak HOWTO-Related Questions 1 27th December 2007 22:38
FTP 101 the basics koegies Installation/Configuration 7 17th November 2005 15:55


All times are GMT +2. The time now is 02:35.


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