1753797 Members
8508 Online
108805 Solutions
New Discussion юеВ

ftp / firewall

 
Keith Floyd
Advisor

ftp / firewall

Hi

I have problerms with ftp and going throufg a firewall.

Using netstat -p tcp what pertinent info can I gleam from this, that may help me diagnose the problem


Thanks

Keith
8 REPLIES 8
Mike McKinlay
Honored Contributor

Re: ftp / firewall

What are you trying to do? Outbound FTP to a server on the other side of the firewall, or inbound FTP to a server on your side of the firewall?

Is FTP enabled on the firewall? What kinds of errors are you getting?
"Hope springs eternal."
Berlene Herren
Honored Contributor

Re: ftp / firewall

You might need a program like Socks, available from
http://www.socks.nec.com

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Kofi ARTHIABAH
Honored Contributor

Re: ftp / firewall

What firewall are you using. It sounds like you are having difficulties with PASV mode transfers...
nothing wrong with me that a few lines of code cannot fix!
Rick Garland
Honored Contributor

Re: ftp / firewall

The firewall may be set to block the ftp traffic. Can you check to see if the ftp port is blocked? If so, you may want to look into the socks solution that Berlene mentioned.
ESC Team
Advisor

Re: ftp / firewall

It is possible that the port FTP uses
(usually 21) is closed. You will need to
contact the network administrator for your
site and check that this port is open. To
check that the FTP service is functioning
correctly, try connecting to another machine
on the same subnet. If this works, then
check that the firewall port is open.
ESC Team
Keith Floyd
Advisor

Re: ftp / firewall

thanks so far more info

ftp works - is constantly cron'd to send/rec. My issue is that quite often ftp seems to lock up.
I wonder whether it's due to TCP timeout etc, hence I wanted to interpret the netstat -p

thanks

Keith
Andrew_4
Honored Contributor

Re: ftp / firewall

You might need to try doing a trace on the ftp protocol, between the two hosts you're ftp'ing (This is done by filter by IP address). You can do this via the nettl command.

It can be a little complex, so you're best to read the man page.

Andrew
The Unix Programmer's Manual, 2nd Edition, June, 1972: "The number of Unix installations has grown to 10, with more expected."
Kofi ARTHIABAH
Honored Contributor

Re: ftp / firewall

Keith,
If your ftp files are really really large then you could run to the TCP timeout problem causing it to fail. If that is the case, you would have to fix the TCP timeout on the firewall itself. BTW what firewall are you running? is it a proxy, or packet filter, or stateful?

nothing wrong with me that a few lines of code cannot fix!