EldoS | Feel safer!

Software components for data protection, secure storage and transfer

AdjustPasvAddress is not working

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#13478
Posted: 05/28/2010 02:09:03
by OCI OCI (Standard support level)
Joined: 08/13/2009
Posts: 8

I have set AdjustPasvAddress to true. But it seems it is not working. I am getting the following error while listing.

[12:41:10 PM] >>>LIST
[12:41:10 PM] <<<150 Opening ASCII mode data connection
[12:41:32 PM] <<<550 LIST failed: Cannot create data connection: Operation failed.

Can any one help me to fix this issue?
#13479
Posted: 05/28/2010 02:27:35
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

Could you please post the complete connection log here (only omitting the parameters of USER and PASS commands)?
#13480
Posted: 05/28/2010 02:36:50
by OCI OCI (Standard support level)
Joined: 08/13/2009
Posts: 8

Here is the entire log...

[1:05:36 PM] Connecting to ftp.omnicell.com:990
[1:05:38 PM] Certificate received
[1:05:38 PM] Issuer: CN=Thawte Premium Server CA, C=ZA, O=Thawte Consulting cc, L=Cape Town
[1:05:38 PM] Subject: CN=ftp.omnicell.com, C=US, O=Omnicell Inc, L=Mountain View
[1:05:38 PM] Certificate is OK
[1:05:38 PM] Connected
[1:05:39 PM] <<<220-WARNING: 220- 220-Unauthorized access to this system is 220-forbidden and will be prosecuted by law. 220-By accessing this system, you agree that your 220-actions and all information placed on or sent over this system may be 220 monitored.
[1:05:39 PM] >>>USER *********
[1:05:39 PM] <<<331 Password required for *********
[1:05:39 PM] >>>PASS ************
[1:05:41 PM] <<<230-Welcome to OMNICELL-FTP! Please watch this area for important 230-messages. 230 User rajeshk logged in.
[1:05:41 PM] >>>FEAT
[1:05:42 PM] <<<211-Extensions supported: AUTH SSL AUTH TLS-P AUTH TLS AUTH TLS-C PROT PBSZ SIZE REST STREAM MODE Z XSHA1 INTEGRITY HASH CLNT 211 End of list
[1:05:42 PM] Loggged in
[1:05:42 PM] SSL version is TLS1
[1:05:42 PM] Listing directory \...
[1:05:42 PM] >>>CWD \
[1:05:42 PM] <<<250 CWD command successful
[1:05:42 PM] >>>TYPE A
[1:05:42 PM] <<<200 TYPE command successful
[1:05:42 PM] >>>PORT 172,16,75,148,10,155
[1:05:43 PM] <<<200 PORT command successful
[1:05:43 PM] >>>LIST
[1:05:43 PM] <<<150 Opening ASCII mode data connection
[1:06:04 PM] <<<550 LIST failed: Cannot create data connection: Operation failed.
[1:06:43 PM] Unaccepted server reply (error code is 550)
#13481
Posted: 05/28/2010 02:51:39
by Ken Ivanov (EldoS Corp.)

That's what I originally assumed -- you connect in Active mode. Please set PassiveMode property to true to make the component connect in passive mode.
#13482
Posted: 05/28/2010 03:14:17
by OCI OCI (Standard support level)
Joined: 08/13/2009
Posts: 8

Yes it will work but I don't want to set PassiveMode to true or false through programatic. Is there any way to identify the server is in active mode or passive mode?
#13483
Posted: 05/28/2010 03:41:53
by Ken Ivanov (EldoS Corp.)

Active/passive mode only defines the method to use for file (or directory listing) transfer. I.e. one cannot say that "the server acts in active (passive) mode". The server supports both modes and will use the mode explicitly requested by the client.
#13484
Posted: 05/28/2010 04:11:17
by OCI OCI (Standard support level)
Joined: 08/13/2009
Posts: 8

The problem is I am able to connect to one FTP server using Passive mode but I am not able to connect to other FTP server. Here is log for otehr FTP in Passive Mode. It is hanging at LIST command

Connecting to 172.16.95.29:990
Certificate received
Issuer: CN=192.168.6.13, C=US, O=Omnicell, L=Palo Alto
Subject: CN=192.168.6.13, C=US, O=Omnicell, L=Palo Alto
Certificate is OK
Connected
<<<220 Serv-U FTP Server v5.0 for WinSock ready...
>>>USER omnitech
<<<331 User name okay, need password.
>>>PASS ************
<<<230 User logged in, proceed.
>>>FEAT
<<<211-Extension supported AUTH TLS SSCN PBSZ PROT CLNT MDTM MDTM YYYYMMDDHHMMSS[+-TZ] I CTUpgMgr filename SIZE SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG REST STREAM XCRC filename;start;end 211 End
Loggged in
SSL version is TLS1
Listing directory \...
>>>CWD \
<<<250 Directory changed to /c:
>>>TYPE A
<<<200 Type set to A.
>>>PASV
<<<227 Entering Passive Mode (172,16,95,29,6,114)
>>>LIST

What could be the problem?
#13485
Posted: 05/28/2010 04:38:26
by Ken Ivanov (EldoS Corp.)

It is possible that the server is configured to work in unprotected data channel mode. Please try to set EncryptDataChannel to false and check if it helps.
#13486
Posted: 05/28/2010 04:46:50
by OCI OCI (Standard support level)
Joined: 08/13/2009
Posts: 8

It did not help :-(
#13487
Posted: 05/28/2010 04:51:55
by OCI OCI (Standard support level)
Joined: 08/13/2009
Posts: 8

Forgot to mention that the other FTP is working with Active mode connection.
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 4269 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!