FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 23rd, 2003, 11:12 PM
Mintpepper Mintpepper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 7 Mintpepper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ftp via MS's ISA-Server

Hello everyone,

I've been looking for a good place for perl programmer and reached here finally. This is my very first post here, hope that I can get some good results :-)

Back to my question. Recently I were requested to alter my ftp program to utilize MS's ISA-server as a proxy when getting files from the Internet. I browsed through the documents and found that the "Firewall" option may help so I altered my source code as follows,

use Net::FTP;
require "getopts.pl";

$ftp = Net::FTP->new("www.abc.org",
Firewall => "15.19.70.1:8080"
) || die "Could not contact server.\n";

.
.
.

However, my program always hung at the above call after I added the "Firewall" option.

Frankly speaking I am not sure whether this "Firewall" option is applicable here for what I'm trying to achieve.

Can someone please shed me some light on this?

Thanks.

Reply With Quote
  #2  
Old June 24th, 2003, 03:25 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
Frankly speaking I am not sure whether this "Firewall" option is applicable here for what I'm trying to achieve.

That depends what you're trying to achieve. Did the code work as expected with out the firewall option? If so, why put it in?
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old June 24th, 2003, 05:34 PM
Mintpepper Mintpepper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 7 Mintpepper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by alexgreg
That depends what you're trying to achieve. Did the code work as expected with out the firewall option? If so, why put it in?



Using the ISA server as ftp proxy will a mandatory requirement in my firm soon. That's why I have to make the changes now.

Yes the program works fine at the moment when not going through the proxy.

So, is that "Firewall" option the right direction for my purpose?

Reply With Quote
  #4  
Old June 24th, 2003, 05:40 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
So, is that "Firewall" option the right direction for my purpose?

In this instance, yes. I would suggest that you try this out on the ISA server before it becomes policy so that you can be sure that it'll work (and so that you have time to fix it if it doesn't...).

Reply With Quote
  #5  
Old June 24th, 2003, 08:06 PM
Mintpepper Mintpepper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 7 Mintpepper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by alexgreg
In this instance, yes. I would suggest that you try this out on the ISA server before it becomes policy so that you can be sure that it'll work (and so that you have time to fix it if it doesn't...).



Already tried. The program didn't work that was why I posted the question here !!!

During my testing, I have a feeling that the ISA Server isn't the traditional ftp proxy that the net::ftp package expects. Any idea?

Reply With Quote
  #6  
Old June 25th, 2003, 06:53 AM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
During my testing, I have a feeling that the ISA Server isn't the traditional ftp proxy that the net::ftp package expects.

What does the ISA Server documentation say with regards to it being used as an FTP proxy?

Reply With Quote
  #7  
Old June 25th, 2003, 07:32 AM
Mintpepper Mintpepper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 7 Mintpepper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by alexgreg
What does the ISA Server documentation say with regards to it being used as an FTP proxy?


First of all, the ISA Server doesn't allow my program logging into it. This is contradictory to my understanding of what a FTP proxy firewall supposes to do. I always thought of the typical approach below,

$ftp = Net::FTP->new($firewall) or die $@;
$ftp->login($firewall_user, $firewall_passwd) or die $ftp->message;
$ftp->login($ext_user . '@' . $ext_host, $ext_passwd) or die $ftp->message;


BTW, I found a solution to my problem. I get around it by making up a web-client (with libwww-perl) that fetch the target ftp URL such as "ftp://username:mypassword@abc.com/.../xyz.zip" into the "getstore" call. However, this solution is no good when getting multiple files a task that the MGET command can handle easily.

Do you think this behaviour of the ISA Server is normal? or this is just the Microsoft-way ?

Last edited by Mintpepper : June 25th, 2003 at 07:36 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > ftp via MS's ISA-Server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT