You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

Preconditions

  • A Jade Client in the DMZ is used to send files to the internet via a DMZ as a jump server it is necessary to install the JADE client (barebone client without configuration)  on the jump server before starting the file transfer.
  • JADE Client or JobScheduler with JADE JITL Jobs on local site.
  • Configuration file with jade profiles

Start the File Transfer

The file transfer can be started by using

  1. the local jade4dmz client
  2. the job Jade4DMZ_Copy_To_Internet

The jade4dmz client is to be started with

 jade4dmz.cmd|sh <configuration file name> <section name> 

Send files to internet via DMZ

 

The process is controlled and checked by a JADE Client in the intranet.
The JADE Client is running the steps described below and as shown in the diagram.

(1) Copy data

As a first step, after checking and creating the temp-folder, the files from the local filesystem are copied by the JADE client to the temp-folder in the DMZ.

(2) Start JADE Client on DMZ by SSH

The JADE Client is starting the JADE CLI on the DMZ, using SSH.

(3) Copy data to Internet

The JADE CLI on the DMZ is transferring the files to the destination site in the internet.

(4) Delete data on DMZ

After successful transfer the JADE Client is deleting the files on the DMZ using SSH.

(5) Delete data on local

If configured to do so, the files on the sending site will be deleted by the JADE Client.

Example CopyToInternet JADE JILT Job

JADE JITL Job CopyToInternet
<?xml version="1.0" encoding="ISO-8859-1"?>
<job  order="no" stop_on_error="no">
    <params >
        <!-- SOURCE --Y
	    <!-- file settings -->
        <param  name="file_spec"              value="^jade_test_bigfile_.*\.csv$"/>
        <param  name="operation"              value="copytointernet"/>
        <param  name="verbose"                value="2"/>

		<!-- file source local_source Jobscheduler host-->
        <param  name="source_dir"             value="C:\sandbox\source"/>
        <param  name="source_protocol"        value="local"/>
        <param  name="target_host"            value="homer.sos"/>
		
        <!-- DMZ server settings-->		
		<param  name="jump_host"              value="gollum"/>
        <param  name="jump_user"              value="jenkins"/>
        <param  name="jump_ssh_auth_method"   value="password"/>
        <param  name="jump_password"          value="jenkins"/>
        <param  name="jump_protocol"          value="sftp"/>
        <param  name="jump_command"           value="/home/jenkins/sos-berlin.com/jade/client.1.7-SNAPSHOT/bin/jade.sh"/>
		
        <!-- target server settings-->		
		<param  name="target_port"            value="22"/>
        <param  name="target_protocol"        value="sftp"/>
        <param  name="target_user"            value="test"/>
        <param  name="target_ssh_auth_method" value="password"/>
        <param  name="target_password"        value="12345"/>
        <param  name="target_dir"             value="/home/test/inbound"/>       
    </params>
    <script  language="java" java_class_path="" java_class="sos.scheduler.jade.Jade4DMZJob"/>
    <run_time />
</job>

 

Receive files from internet via DMZ

1) Copy data

As a first step, after checking and creating the temp-folder, the files from the remote server are copied by the JADE client to the temp-folder in the DMZ.

(2) Start JADE Client on DMZ by SSH

The JADE Client is starting the JADE CLI on the DMZ, using SSH.

(3) Copy data to Internet

The JADE CLI on the DMZ is transferring the files to the destination site in the internal zone

(4) Delete data on DMZ

After successful transfer the JADE Client is deleting the files on the DMZ using SSH.

(5) Delete data on local

If configured to do so, the files on the receiving site will be deleted by the JADE Client.

Example CopyFromInternet JADE JILT Job

JADE JITL Job CopyToInternet
<?xml version="1.0" encoding="ISO-8859-1"?>
<job  order="no" stop_on_error="no">
    <params >
        <!-- SOURCE --Y
	    <!-- file settings -->
        <param  name="file_spec"              value="^jade_test_bigfile_.*\.csv$"/>
        <param  name="operation"              value="copytointernet"/>
        <param  name="verbose"                value="2"/>

		<!-- file source local_source Jobscheduler host-->
        <param  name="source_dir"             value="C:\sandbox\source"/>
        <param  name="source_protocol"        value="local"/>
        <param  name="target_host"            value="homer.sos"/>
		
        <!-- DMZ server settings-->		
		<param  name="jump_host"              value="gollum"/>
        <param  name="jump_user"              value="jenkins"/>
        <param  name="jump_ssh_auth_method"   value="password"/>
        <param  name="jump_password"          value="jenkins"/>
        <param  name="jump_protocol"          value="sftp"/>
        <param  name="jump_command"           value="/home/jenkins/sos-berlin.com/jade/client.1.7-SNAPSHOT/bin/jade.sh"/>
		
        <!-- target server settings-->		
		<param  name="target_port"            value="22"/>
        <param  name="target_protocol"        value="sftp"/>
        <param  name="target_user"            value="test"/>
        <param  name="target_ssh_auth_method" value="password"/>
        <param  name="target_password"        value="12345"/>
        <param  name="target_dir"             value="/home/test/inbound"/>       
    </params>
    <script  language="java" java_class_path="" java_class="sos.scheduler.jade.Jade4DMZJob"/>
    <run_time />
</job>

Related Downloads

 

  • No labels