
17th July 2009, 23:18
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 23
Thanks: 1
Thanked 2 Times in 1 Post
|
|
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
|
|

18th July 2009, 11:13
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
This is probably a firewall problem.
|

18th July 2009, 14:50
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 23
Thanks: 1
Thanked 2 Times in 1 Post
|
|
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 ?
|

19th July 2009, 13:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,195 Times in 3,212 Posts
|
|
Please post the output of:
netstat -tap
and
iptables -L
|

20th July 2009, 02:59
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 23
Thanks: 1
Thanked 2 Times in 1 Post
|
|
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
|
|

20th July 2009, 13:22
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
What's the output of
Code:
grep erpc /etc/services
?
|

20th July 2009, 16:16
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 23
Thanks: 1
Thanked 2 Times in 1 Post
|
|
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
|
|

21st July 2009, 14:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Your FTP daemon is listening on port 121 instead of 21...
|

21st July 2009, 16:35
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 23
Thanks: 1
Thanked 2 Times in 1 Post
|
|
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
|

23rd July 2009, 17:51
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 23
Thanks: 1
Thanked 2 Times in 1 Post
|
|
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
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 05:25.
|
Recent comments
23 hours 37 min ago
1 day 6 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 20 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 10 hours ago
2 days 14 hours ago
2 days 14 hours ago