FTP SSL Over Cellular Network

0 votes
asked Jan 23, 2013 by TD84 (120 points)
edited Dec 12, 2013

Hi,

I have run into a problem when communicating IIS 7.5 FTP-SSL on a Vodafone & o2 cell phone connection. It's important to note that the code and process works fine when connected to a wireless network, it did also work when tethered to my iPhone which uses the Three network. I unfortunately cannot test that sim card in my Windows Mobile device due to the size of the sim.

I've had a search and found some info that o2 block FTP-SSL sessions, perhaps this could be the case with Vodafone also? If you can take a look at the log below and offer any advice that would be great:

2013-01-23 10:52:42 Opening log file. 2013-01-23 10:52:43 INFO Ftp(1) Info: Connecting to 85.92.89.182:21 using Ftp 3.0.4086.0. 2013-01-23 10:52:43 INFO Ftp(1) Info: Using proxy none. 2013-01-23 10:52:43 DEBUG Ftp(1) Info: Connection succeeded. 2013-01-23 10:52:43 VERBOSE Ftp(1) Info: Received data over control connection: 32-32-30-20-4D-69-63-72-6F-73-6F-66-74-20-46-54-50-20-53-65-72-76-69-63 65-0D-0A 2013-01-23 10:52:43 VERBOSE Ftp(1) Info: Response available to be received on control connection. 2013-01-23 10:52:43 INFO Ftp(1) Response: 220 Microsoft FTP Service 2013-01-23 10:52:43 VERBOSE Ftp(1) Info: Sent data over control connection: 41-55-54-48-20-54-4C-53-0D-0A 2013-01-23 10:52:43 INFO Ftp(1) Command: AUTH TLS 2013-01-23 10:52:43 VERBOSE Ftp(1) Info: Received data over control connection: 32-33-34-20-41-55-54-48-20-63-6F-6D-6D-61-6E-64-20-6F-6B-2E-20-45-78-70 65-63-74-69-6E-67-20-54-4C-53-20-4E-65-67-6F-74-69-61-74-69-6F-6E-2E-0D 0A 2013-01-23 10:52:43 VERBOSE Ftp(1) Info: Response available to be received on control connection. 2013-01-23 10:52:43 INFO Ftp(1) Response: 234 AUTH command ok. Expecting TLS Negotiation. 2013-01-23 10:52:43 DEBUG Ftp(1) Info: Upgrading control connection to TLS/SSL. 2013-01-23 10:52:43 VERBOSE Ftp(1) TLS: Sent TLS packet: 16-03-02-00-41-01-00-00-3D-03-02-50-FF-C0-FB-09-D1-8A-18-32-38-11-B0-74 76-47-8E-15-4B-E7-69-BA-DF-9F-41-27-F4-EA-4B-59-1B-D5-A4-00-00-16-00-33 00-39-00-2F-00-35-00-32-00-38-00-16-00-0A-00-13-00-05-00-66-01-00 2013-01-23 10:52:43 INFO Ftp(1) TLS: State StateChange:Negotiating 2013-01-23 10:52:43 DEBUG Ftp(1) TLS: HandshakeMessage:ClientHello was sent. 2013-01-23 10:53:43 DEBUG Ftp(1) TLS: Error while processing TLS packet: Rebex.Net.TlsException: The operation was not completed within the specified time limit. at wWGvS.ckSCApZ.BXQTfX(Int32 , Boolean ) at wWGvS.ckSCApZ.AePCoRZ() at wWGvS.ckSCApZ.cDtmAOZ() at wWGvS.ckSCApZ.ArwjUr() at Rebex.Net.TlsSocket.Negotiate() at wWGvS.AgXIfM.AUXDmhZ(TlsParameters ) at Rebex.Net.Ftp.BLyBkd(TlsParameters , FtpSecureUpgradeType ) at Rebex.Net.Ftp.Connect(String serverName, Int32 serverPort, TlsParameters parameters, FtpSecurity security) at VMMobile.f_Sync_Full.tryConnect() at VMMobile.f_Sync_Full.btnSync_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at Resco.Controls.OutlookControls.ImageButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) at System.Windows.Forms.Application.Run(Form fm) at VMMobile.Program.Main()

2013-01-23 10:53:44 INFO Ftp(1) TLS: Info Info:UnexpectedException 2013-01-23 10:53:44 INFO Ftp(1) TLS: Alert Alert:Alert was sent. 2013-01-23 10:53:44 INFO Ftp(1) TLS: State StateChange:Closed 2013-01-23 10:53:44 VERBOSE Ftp(1) TLS: Sent TLS packet: 15-03-02-00-02-02-50 2013-01-23 10:53:44 DEBUG Ftp(1) TLS: Closing TLS socket. 2013-01-23 10:53:44 ERROR Ftp(1) Info: Rebex.Net.TlsException: The operation was not completed within the specified time limit. ---> Rebex.Net.TlsException: The operation was not completed within the specified time limit. ---> Rebex.Net.TlsException: The operation was not completed within the specified time limit. at wWGvS.ckSCApZ.BXQTfX(Int32 , Boolean ) at wWGvS.ckSCApZ.AePCoRZ() at wWGvS.ckSCApZ.cDtmAOZ() at wWGvS.ckSCApZ.ArwjUr() at Rebex.Net.TlsSocket.Negotiate() at wWGvS.AgXIfM.AUXDmhZ(TlsParameters ) at Rebex.Net.Ftp.BLyBkd(TlsParameters , FtpSecureUpgradeType ) at Rebex.Net.Ftp.Connect(String serverName, Int32 serverPort, TlsParameters parameters, FtpSecurity security) at VMMobile.f_Sync_Full.tryConnect() at VMMobile.f_Sync_Full.btnSync_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at Resco.Controls.OutlookControls.ImageButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) at System.Windows.Forms.Application.Run(Form fm) at VMMobile.Program.Main() at wWGvS.ckSCApZ.cDtmAOZ() at wWGvS.ckSCApZ.ArwjUr() at Rebex.Net.TlsSocket.Negotiate() at wWGvS.AgXIfM.AUXDmhZ(TlsParameters ) at Rebex.Net.Ftp.BLyBkd(TlsParameters , FtpSecureUpgradeType ) at Rebex.Net.Ftp.Connect(String serverName, Int32 serverPort, TlsParameters parameters, FtpSecurity security) at VMMobile.f_Sync_Full.tryConnect() at VMMobile.f_Sync_Full.btnSync_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at Resco.Controls.OutlookControls.ImageButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) at System.Windows.Forms.Application.Run(Form fm) at VMMobile.Program.Main()

at Rebex.Net.Ftp.Connect(String serverName, Int32 serverPort, TlsParameters parameters, FtpSecurity security) at VMMobile.f_Sync_Full.tryConnect() at VMMobile.f_Sync_Full.btnSync_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at Resco.Controls.OutlookControls.ImageButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.ContainerControl.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) at System.Windows.Forms.Application.Run(Form fm) at VMMobile.Program.Main()

Applies to: Rebex FTP/SSL

1 Answer

0 votes
answered Jan 23, 2013 by Lukas Pokorny (107,310 points)
edited Jan 23, 2013

This really looks like FTP/SSL sessions are being blocked, possibly by an FTP-aware router/firewall at the Vodafone and O2 that only supports plain FTP. For additional information, please check out this forum post - it looks like the issue you encountered is identical.

This issue has been reported with O2 (in the UK and Czech Republic), AT&T (US) and Rogers (Canada), but I'm sure this short list is far from complete, unfortunately.

Recommended workarounds: a) Use FTP/SSL in implicit mode (the server has to be configured to allow this and usually runs at port 990). b) Use SFTP instead of FTP/SSL. It's much more firewall-friendly.

(By the way, to test the iPhone SIM card, get an adapter - they are very cheap.)

...