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.
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 | [reply] |
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
| [reply] |
Re: Ftp Not working in Firewall Networks
by planetscape (Chancellor) on Nov 10, 2006 at 00:49 UTC
|
| [reply] |
|