Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] setsockopt SO_DEBUG - ftp connection problems
Date: Tue, 05 Jul 2011 20:32:45
Message-Id: 201107052131.43701.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] setsockopt SO_DEBUG - ftp connection problems by Paul Hartman
1 On Tuesday 05 Jul 2011 20:50:55 Paul Hartman wrote:
2 > On Tue, Jul 5, 2011 at 2:34 PM, Mick <michaelkintzios@×××××.com> wrote:
3 > > On Tuesday 05 Jul 2011 19:42:53 Paul Hartman wrote:
4 > >> On Tue, Jul 5, 2011 at 6:58 AM, Mick <michaelkintzios@×××××.com> wrote:
5 > >> > 200 Switching to ASCII mode.
6 > >> > tnftp: setsockopt SO_DEBUG (ignored): Permission denied
7 > >> > ---> EPSV
8 > >> > 229 Entering Extended Passive Mode (|||62430|)
9 > >> > 229 Entering Extended Passive Mode (|||62430|)
10 > >>
11 > >> Don't use EPSV, use PASV instead, hopefully that will work.
12 > >
13 > > I tried defining passive when in the session. It was in passive by
14 > > default, so I had to toggle it back on again:
15 > >
16 > > got remotecwd as `/'
17 > > ---> TYPE I
18 > > 200 Switching to Binary mode.
19 > > ftp> passive
20 > > Passive mode: off; fallback to active mode: off.
21 > > ftp> passive
22 > > Passive mode: on; fallback to active mode: on.
23 > > ftp> ls
24 > > ---> TYPE A
25 > > 200 Switching to ASCII mode.
26 > > tnftp: setsockopt SO_DEBUG (ignored): Permission denied
27 > > ---> EPSV
28 > > 229 Entering Extended Passive Mode (|||9832|)
29 > > 229 Entering Extended Passive Mode (|||9832|)
30 > >
31 > > How can I control it to not go into extended passive?
32 > >
33 > > PS. The server reports EPSV in its features, so I am not sure why it
34 > > would not work with EPSV.
35 >
36 > FTP is the bastard protocol from hell. There are more ways it can go
37 > wrong than right. :)
38
39 Yes, I can attest to this! :@
40
41 > Firewalls especially love to silently rewrite FTP
42 > commands and port mappings. It can be a real PITA to debug. So, even
43 > if your client supports EPSV and your server supports EPSV, if
44 > firewall/router in-between does not then it could still break things.
45
46 I've turned off my machine's firewall thinking that all this passive/active
47 malarkey was causing the problem, but couldn't do anything about the router's
48 firewall.
49
50
51 > Even if you wireshark the session on your computer, what you see may
52 > not match what's being sent to the remote server, and vice-versa.
53 >
54 > Standard PASV mode is much more widely supported than EPSV mode, so
55 > that's the line of thought that brought me to suggest trying that.
56 >
57 > I've never used tnftp but from the manpage I googled, it looks like
58 > "epsv4 off " is the command to toggle EPSV off.
59
60 YES! :-)
61
62 That's what was causing the problem, it was EPSV. I assume that Konqueror
63 switches it off and tnftp has it on by default.
64
65 Thank you very much.
66 --
67 Regards,
68 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature