Ok sounds liek your firewall doesnt bind to the 192 address. When connecting to your FTP enter "passive" be4 you do ls and it should work fine. See the http://www.w3.org/Protocols/rfc959/ for more details on FTP modes. If that works then make sure you put the FTP client mode to Firewall mode { passive or non passive}. If it doesnt then your firewall is not leting anything through on port 21.
Mark ----- Original Message ----- From: "Foreman" <[EMAIL PROTECTED]> To: "Mark Goland" <[EMAIL PROTECTED]> Cc: "perl" <[EMAIL PROTECTED]> Sent: Tuesday, December 24, 2002 2:14 PM Subject: Re: problem with Net::FTP and Netgear FVS318 firewall > Mark, I can log in from the Windows XP cmd line, but if I try to do an ls I > get a 'port command successful' but nothing returned from the ls command. > If I ftp directly to my server machine (192.168.0.10) and bypass the > firewall as you observed, then when I do an ls, I get a response back from > the server with the contents of that directory. I wonder if this has > something to do with the way the ports are being managed for comms to the > server vs. comms from the server. Notice that the ftp server accepted my > login id and password but got hung up when attempting to send the data from > the ls command back to the ftp client. Thanks, Linc > > > The contents of the command window are below: > > THE FOLLOWING SESSION WAS NOT SUCCESSFUL: > > C:\Documents and Settings\Lincoln>ftp ftp.lforeman.homeip.net > Connected to lforeman.homeip.net. > 220-Linc's FTP Server > 220-Welcome to Linc's FTP Server. This server has been up 38 days, 3 hours, > 56 > minutes, 18 seconds. Your IP address is . There is 17648 MB of diskspace > left > for you in the upload directory. > 220 Please enter your name: > User (lforeman.homeip.net:(none)): anonymous > 331 User name okay, Need password. > Password: > 230 User logged in. > ftp> ls > 200 PORT command successful. > 150 Opening ASCII mode data connection for /bin/ls (5 bytes). > Aborting any active data connections... > 425 Can't build data connection. > ftp> bye > 221 Goodbye. Control connection closed. > > THE FOLLOWING SESSION WAS SUCCESSFUL: > > > C:\Documents and Settings\Lincoln>ftp 192.168.0.10 > Connected to 192.168.0.10. > 220-Linc's FTP Server > 220-Welcome to Linc's FTP Server. This server has been up 38 days, 3 hours, > 58 > minutes, 41 seconds. Your IP address is . There is 17648 MB of diskspace > left > for you in the upload directory. > 220 Please enter your name: > User (192.168.0.10:(none)): anonymous > 331 User name okay, Need password. > Password: > 230 User logged in. > ftp> ls > 200 PORT command successful. > 150 Opening ASCII mode data connection for /bin/ls (5 bytes). > pub > 226 Transfer successful. > ftp: 5 bytes received in 0.00Seconds 5000.00Kbytes/sec. > ftp> > > > ----- Original Message ----- > From: "Mark Goland" <[EMAIL PROTECTED]> > To: "Foreman" <[EMAIL PROTECTED]> > Cc: "perl" <[EMAIL PROTECTED]> > Sent: Tuesday, December 24, 2002 11:52 AM > Subject: Re: problem with Net::FTP and Netgear FVS318 firewall > > > > 192....is a privat address, this never get to the firewall. > > > > It seems that your port 21 is totally blocked. Can you login to your ftp > > server from the prompt ?? try from shell > > > > #FTP ftp.lforeman.homeip.net > > #user pass > > #passive > > > > ----- Original Message ----- > > From: "Foreman" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, December 23, 2002 3:40 PM > > Subject: problem with Net::FTP and Netgear FVS318 firewall > > > > > > > Hi. I am able to get to my ftp server through Internet explorer if I > set > > the "Use Passive FTP for compatability..." to true in the Internet Options > > menu. Otherwise, I can only get to my ftp server using the local IP > > address. Presumably, using passive mode in ftp (pasv) should get me the > > same result when trying to get to my server through the internet. > However, > > no luck. I have included the ftp code below. If I subsititute the local > IP > > address for the full internet path then the script works, otherwise it > hangs > > (probably because my firewall won't allow access. Any ideas would be > > appreciated. Thanks, Lincoln > > > > > > use Net::FTP; > > > > > > #$ftp = Net::FTP->new("192.168.0.10"); # if I uncomment this line and > > comment the next line the script works. > > > > > > $ftp = Net::FTP->new("ftp.lforeman.homeip.net"); > > > $ftp->login("anonymous","anypassword"); > > > $ftp->pasv; > > > $ftp->cwd("/pub"); > > > $ftp->get("front_porch_outlet.pl"); > > > $ftp->quit; > > > > > > exit; > > > > > > > > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]