r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Rebol School] Rebol School

Pekr
30-Oct-2008
[729]
Vladimir - IIRC, FTP is strange beast, and network admins don't like 
it. FTP uses port 21 to establish connection, but to transfer data, 
other port is used  - 20 IIRC.
Vladimir
30-Oct-2008
[730x4]
path is simply  one directory name....
thats what is bugging me.... ftp from windows command line works...
from commander works...
even my script works up to the point....
Pekr
30-Oct-2008
[734]
You also should be sure, that you use passive mode. So check your 
firewall, if port 20 is opened. But usually all ports going to WAN 
are opened ...
Vladimir
30-Oct-2008
[735x4]
[["CWD" port/path] ["25" "200"]]
what does it mean?
port 25?
Ill try to open port 25 ?
Pekr
30-Oct-2008
[739]
here's list from my system:

connecting to: www.jablunkovsko.cz
Net-log: [none ["220" "230"]]
Net-log: "220 (vsFTPd 1.2.1)"
Net-log: [["USER" port/user] "331"]
Net-log: "331 Please specify the password."
Net-log: [["PASS" port/pass] "230"]
Net-log: "230 Login successful."
Net-log: ["SYST" "*"]
Net-log: "215 UNIX Type: L8"
Net-log: ["PWD" "25"]
Net-log: {257 "/"}
Net-log: "Opening listen port 50061"
Net-log: [["PORT" port/locals/active-check] "200"]
Net-log: "200 PORT command successful. Consider using PASV."
Net-log: "Type: dir"
Net-log: ["TYPE A" "200"]
Net-log: "200 Switching to ASCII mode."
Net-log: ["LIST" ["150" "125"]]
Net-log: "150 Here comes the directory listing."
Net-log: "Closing listen port 50061"
Net-log: "Closing data port 193.85.151.2 50061 20"
Net-log: [none ["226" "250"]]
Net-log: "226 Directory send OK."
Net-log: "Caching cmd-port www.jablunkovsko.cz 50060 21"
Anton
30-Oct-2008
[740x2]
Check here to understand FTP return codes:
http://en.wikipedia.org/wiki/Ftp#FTP_return_codes
2xx: Positive Completion reply
  so you can see the 200 codes when things went well.
Pekr
30-Oct-2008
[742]
Vladimir: does simple one liner as print read ftp://user:[pass-:-ftp-:-domain-:-com] 
fails too?
Vladimir
30-Oct-2008
[743x2]
Ill try... in a minute
hey guys thanks for helping ! :)
Anton
30-Oct-2008
[745]
Well, it looks like the PureFTPd server likes passive mode less than 
it likes active mode.
Graham
30-Oct-2008
[746]
[["CWD" port/path] ["25" "200"]]
doesn't that mean, match the next response against 25*
Vladimir
30-Oct-2008
[747x2]
print read ftp://visaprom.com:[pass-:-ftp-:-visaprom-:-com]
URL Parse: visaprom.com 8ofhjo99 ftp.visaprom.com none none none
Net-log: ["Opening" "tcp" "for" "FTP"]
Net-log: [none ["220" "230"]]

Net-log: {220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------}
Net-log: "220-You are user number 210 of 400 allowed."
Net-log: "220-Local time is now 11:43. Server port: 21."
Net-log: "220-This is a private system - No anonymous login"
Net-log: {220-IPv6 connections are also welcome on this server.}

Net-log: {220 You will be disconnected after 15 minutes of inactivity.}
Net-log: [["USER" port/user] "331"]
Net-log: "331 User visaprom.com OK. Password required"
Net-log: [["PASS" port/pass] "230"]
Net-log: {230-User visaprom.com has group access to:  www     }
Net-log: "230 OK. Current restricted directory is /"
Net-log: ["SYST" "*"]
Net-log: "215 UNIX Type: L8"
Net-log: ["PWD" "25"]
Net-log: {257 "/" is your current location}
Net-log: ["PASV" "227"]
Net-log: "227 Entering Passive Mode (194,9,94,127,232,3)"
Net-log: "Type: dir"
Net-log: ["TYPE A" "200"]
Net-log: "Closing cmd port 3783 21"
** Access Error: Network timeout
** Where: confirm
** Near: print read ftp://visaprom.com:[8ofhjo99-:-ftp-:-visaprom-:-com]
here is what simple print read ftp does... :)
Pekr
30-Oct-2008
[749]
ouch, password leaked here ;-)
Graham
30-Oct-2008
[750]
the server is closing the port ..
Pekr
30-Oct-2008
[751]
I tried it here, here's where it starts to differ:

Net-log: ["TYPE A" "200"]
Net-log: "200 TYPE is now ASCII"
Net-log: ["LIST" ["150" "125"]]
Net-log: "150 Accepted data connection"
Net-log: "Closing data port 194.9.94.127 50078 56405"
Net-log: [none ["226" "250"]]
Net-log: "226-Options: -a -l "
Net-log: "226 11 matches total"
Net-log: "Caching cmd-port 194.9.94.127 50077 21"

apl/ apl101/ apl104/ apl105/ apl201/ apl202/ apl204/ apl206/ visaprom.com/
Vladimir
30-Oct-2008
[752]
never mind ..... :) you are good guys :)
Graham
30-Oct-2008
[753x2]
yep, works for me too ....
must be your router
Vladimir
30-Oct-2008
[755]
so where to look for error?
Pekr
30-Oct-2008
[756]
There seems to be problem with cmd port. But that runs on port 21, 
whereas data usually runs on 20. Have you tried with system/schemes/ftp/passive: 
true   ?
Graham
30-Oct-2008
[757x4]
tried that
it's not a server problem ...
as it works for us
have you tried puting your PC into the DMZ ?
Pekr
30-Oct-2008
[761]
Dunno how FTP works, but if not in passive mode, then ftp server 
tries to open data port on your side, but that might not be true. 
Definitely some issue on the router ...
Graham
30-Oct-2008
[762]
ps, this group is web public .. better change your password now!
Pekr
30-Oct-2008
[763x2]
Do you have statefull firewall enabled? What kind of router do you 
have?
Graham: good catch! Vladimir - you better change your password ...
Anton
30-Oct-2008
[765x2]
Graham, yes. "Confirm pairs of stimuli to their expected responses"
Graham, I mean, No.
Graham
30-Oct-2008
[767]
Huh?
Anton
30-Oct-2008
[768x2]
where above you asked:
	[["CWD" port/path] ["25" "200"]]
	doesn't that mean, match the next response against 25*
... no, it doesn't quite mean that.
Graham
30-Oct-2008
[770]
or 200
Vladimir
30-Oct-2008
[771x2]
password changed... :)
it didnt help.... error is still the same :)
Graham
30-Oct-2008
[773x2]
what didn't help?  The DMZ ?
Have you tried a different PC?
Pekr
30-Oct-2008
[775]
Vladimir - what is your router type? Any config docs online with 
screenshots? If it is small router, don't forget to enable statefull 
firewall. FTP connections are "related", without statefull firewall 
enabled it might not work!
Vladimir
30-Oct-2008
[776x2]
i have to restart router.... and since currently five guys are using 
network..... ill have to wait a little.... will report results... 
tried to set up dmz....
Dual-Port Broadband Gateway
Graham
30-Oct-2008
[778]
but other ftp clients work for him.  Odd.