Setup Secure File Transfers over FTPes

From Vital Soft Wiki
Jump to: navigation, search

Summary

How to enable file transfers between the HPUX and Windows Vital Signs server host via FTP over TLS (FTPes)

Requirements :

  • Vitalsigns 1.5.25 or later
  • Python 2.7 HPUX Depot with requires ssl dependencies
  • Windows Server 2008, 2008R2
  • FileZilla Server .9 or later
  • Windows Firewall policy to allow port 21 TCP inbound

Setup FTP Server on Windows

Currently as of version 1.6, FTPes is only supported with FileZilla Server for Windows

Download FileZilla Server Here

After downloading the file, run the exe on the Windows server where Vital Signs will be hosted to begin the File Zilla Server setup

The following are the recommended settings

Vitalsignsftpes5.png

Vitalsignsftpes6.png

Vitalsignsftpes7.png

Vitalsignsftpes8.png

Vitalsignsftpes9.png

Vitalsignsftpes10.png


Once the installation is complete, the File Zilla Server UI should prompt to Connect to Server. Click OK

Vitalsignsftpes11.png


Once logged into the Server UI, select Edit, Settings

Vitalsignsftpes12.PNG


Under Logging, check Enable logging to file and choose to create new log files for each day with 30 days of retention

Vitalsignsftpes13.png


Under SSL/TLS settings, check Enable FTP over SSL/TLS support (FTPS), Allow explicit FTP over TLS, Disallow plain unencrypted FTP and Force PROT P to encrypt file transfers in SSL/TLS mode

Finally, click Generate new certificate...

Vitalsignsftpes14.png


Select 2048bit for the key size

Enter the appropriate information for the certificate

Enter a path for the vitalsigns-ftpes-certificate.crt file to be generated in and click Generate certificate

Vitalsignsftpes15.png

Vitalsignsftpes16.png


You should now see the Private key file and Certificate file populated.

Click OK

Vitalsignsftpes17.png

Setup a User

In the FTP Server UI, select Edit, Users

Vitalsignsftpes18.PNG


Click Add under Users

Vitalsignsftpes19.png


Enter the ftp user name and click OK

Vitalsignsftpes20.png


Click the Password: box and enter the ftp user password

Check the Force SSL for user login and click OK

Vitalsignsftpes21.png


Under the Shared folders, click Add

Vitalsignsftpes22.png


Select the path to the vitalsigns directory and check the Read,Write and Delete check boxes and click OK

Vitalsignsftpes23.png


Confirm FTPes Connectivity

Use your favorite ftp client that supports FTPes and setup a connection for the new FTPes Server with the following settings :

  • FTPes (FTP over SSL/TLS)
  • Prot P
  • Active (not PASV)
  • Port 21

Try to connect with the client and then review the FileZilla Server logs in the Server

Enable FTPes on HPUX

Once the FTPes server connectivity to an external client has been confirmed, login to the HPUX box as the askplus user and edit /ASKPLUS/vsdata/vitalsigns.ini

Confirm the following FTP settings are appropriate for your setup :

FTP_USER=yourftpuser
FTP_PASSWD=yourpassword
FTP_PORT=21
FTP_PASV=No
FTP_SECURE=Yes


Test the nightly run by doing the following

login bolive
/VSJOBS/JVSLOAD_HIST

Review the stdlist for the following to indicate that the connectivity is secure :

VSFTP INFO - version 1.6
VSFTP INFO - FTP_TIMEOUT is not set in vitalsigns.ini - Defaulting to 30
VSFTP INFO - FTP_PROTOCOL is not set in vitalsigns.ini - Defaulting to TLSv1
VSFTP INFO - FTP_VERBOSE is not set in vitalsigns.ini - Defaulting to No
VSFTP INFO - data/mbrshln is a valid directory
VSFTP INFO - Valid hostpath detected: data/mbrshln
VSFTP INFO - Files found, begin FTP
VSFTP INFO - FTP over TLS enabled
VSFTP INFO - FTP ssl set to TLSv1
VSFTP INFO - Successfully connected to FTPes host 192.168.##.## : 21
VSFTP INFO - FTP Active Mode Enabled
VSFTP INFO - FTP login successful