Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Ftp Not working in Firewall Networks

by madtoperl (Hermit)
on Nov 09, 2006 at 14:14 UTC ( [id://583109]=perlquestion: print w/replies, xml ) Need Help??

madtoperl has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I faced an scenario previously in my perl script,but I am not having the code now.Script will run in the vendor side and create a report file and ftp the report file to a server(which is residing inside my network).I used FTP module inside the script for ftp purpose

The script was converted to exe file using pp module and it was running fine in the Firewall Based vendor site.But the same Exe file is not working in the Non-Firewall based vendor site.It given the error message as "File Transfer failed".

Could anyone suggest me why the ftp module inside script's working is different in firewall based and nonfirewall based networks?
Thanks
madtoperl.

Replies are listed 'Best First'.
Re: Ftp Not working in Firewall Networks
by McDarren (Abbot) on Nov 09, 2006 at 14:23 UTC
    A couple of non-Perl suggestions:

    • Do some tcpdumping (or use windump if you're on a windoze machine) to see where the packets are stopping.
    • Grab any FTP client and try a manual FTP. If this works, then it's probably a problem with your Perl script.

    Cheers,
    Darren

Re: Ftp Not working in Firewall Networks
by blue_cowdawg (Monsignor) on Nov 09, 2006 at 15:06 UTC
        Could anyone suggest me why the ftp module inside script's working is different in firewall based and nonfirewall based networks?

    As McDarren points out you need to do more digging. Trying a manual FTP with a vanilla flavored FTP client is a good start. It very well could be the difference between passive and non-passive FTP or an ACL issue.

    This could even be a case where the Firewall Gods don't want to allow FTP through the firewall and if your customer has a requirement for this then they need to negotiate with their firewall team an exception.

    I know that a lot of financial institutions categorically don't allow FTP in either direction through their firewalls for regulatory reasons.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: Ftp Not working in Firewall Networks
by planetscape (Chancellor) on Nov 10, 2006 at 00:49 UTC

    You might also find Ethereal useful in diagnosing network problems.

    HTH,

    planetscape

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://583109]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found