Re: SecureFTP through firewall fails
From: Joachim Schipper (jDOTschipper_at_math.uu.nl)
Date: 01/27/05
- Next message: all mail refused: "Re: SecureFTP through firewall fails"
- Previous message: Darren Tucker: "Re: What's the deal on the -X vs -Y thing?"
- In reply to: Sachin: "SecureFTP through firewall fails"
- Next in thread: all mail refused: "Re: SecureFTP through firewall fails"
- Reply: all mail refused: "Re: SecureFTP through firewall fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 27 Jan 2005 00:53:28 GMT
Sachin <sachinajoshi@gmail.com> wrote:
> Hi friends,
>
> I am trying for Secure FTP conneciton through firewall, but it is
> failing before the SSL handshake.
> FTP client starts the handshake & sends the client Hello message to
> server, but before I receive server Hello, the conneciton is broken & I
> get IOException.
> I feel, it is because, server is trying to connect to connect to the
> the client for Data Connection, but failing to get the connection due
> to the firewall rules. We have tried to set different firewall rules by
> referring the data on net, but still it fails.
>
> Has anybody ever tried this ? is there any clue for setting the
> firewall rules for this ?
>
> Any help is appreciated.
>
> Thanks,
> Sachin
Dear Sachin,
just a single pointer, not a complete solution (you didn't give enough
data for that) - but do realize that FTP connection tracking
(ip_conntrack_ftp or whatever it is on your system) does not work with
encrypted traffic (very obvious if you think about it...), so your
firewall cannot automagically open a couple ports when you try to
request data. I've spend quite a few hours debugging this particular
issue...
However, you mention the server not even returning a greeting. This does
not require a data connection, really.
Before continuing, test and post the following using a simple FTP client
that will actually show what's happening (so that you know exactly what
commands were executed and which failed):
- Can you connect using plain FTP? Login? Get a listing?
- Idem for encrypted FTP
- Are you using active or passive FTP? Whichever you use now,
try the other as well.
- What does the server show in the logfiles? What does the
client say, other than IOException (which isn't terribly
useful)?
- Is your firewall stateful? Do you open up a range of ports, or
do you use connection tracking? (If so, see above.) Does it
work with plain FTP?
Joachim
- Next message: all mail refused: "Re: SecureFTP through firewall fails"
- Previous message: Darren Tucker: "Re: What's the deal on the -X vs -Y thing?"
- In reply to: Sachin: "SecureFTP through firewall fails"
- Next in thread: all mail refused: "Re: SecureFTP through firewall fails"
- Reply: all mail refused: "Re: SecureFTP through firewall fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|