LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Closed Thread
  Search this Thread
Old 11-29-2004, 12:44 PM   #1
mairot
LQ Newbie
 
Registered: Nov 2004
Posts: 6

Rep: Reputation: 0
RH8 with perl ftp across firewall


Hello,

i'm doing ftp with perl across a firewall. Before transfering files, i want to list them. But in RH8, my ftp connection is passive mode on and i do not know , in my perl script how to turn it off.

Manually i get this :

ftp xxx.xx.xx.xx

230 User toto logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> passive
Passive mode off.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls (yy.yy.yy.yy,abcd).
total 856
drwxr-xr-x 2 toto users 843776 Nov 29 13:38 dir_to_list
226 Transfer complete.

if i do not invoque passive i got this :

227 Entering Passive Mode (xxx,xx,xx,xx,aa,bb)
ftp: connect: Connection refused

Since passive on is the default in RedHat8, how can i turn it off in my script.

i've tried ftp->pasv() but it doesn't seem to work. I'm still not able to list the directory.

Is there a way to tell perl not sending the passive command so i will connect in passove mode off?

Merci
 
Old 11-29-2004, 02:37 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

The original is here:
http://www.linuxquestions.org/questi...hreadid=260609
 
  


Closed Thread



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Help: Perl FTP Script Using NET::FTP xboxter Programming 8 05-16-2005 06:57 PM
Help with RH8.0 Firewall DakotaMan2002 Linux - Networking 7 07-03-2003 10:30 AM
RH8 PERL install? kidwired Linux - Newbie 6 01-02-2003 05:11 PM
RH8 Setting up firewall - how to start? melmore Linux - Networking 2 12-21-2002 05:18 PM
RH8 firewall zeky Linux - Security 4 12-11-2002 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration