KB Article #177081

Gateway HTTP via Squid Proxy

SCENARIO

This article represents an use case on the Gateway via proxy configuration.
In the demonstration bellow the Gateway client (Gateway_1) is performing a GET action (mode Initiator, direction Receive) on a file 'xxx' located on a Gateway server (Gateway_2).
Gateway_1 is located in a Linux server (host name 'optimusprime') and it's passing through a SQUID proxy server.

Resolution

Gateway_1 log

HTTP235I 06.05.2015 10:42:24 HTTP_BY_PROXY(40) [49] OPTIMUSPRIME End receiving file: /home/xfb/Axway/Gateway/run_time/tmp/F0000049.
HTTP231I 06.05.2015 10:42:24 HTTP_BY_PROXY(40) [49] OPTIMUSPRIME Start receiving file: /home/xfb/Axway/Gateway/run_time/tmp/F0000049.
HTTP302I 06.05.2015 10:42:24 HTTP_BY_PROXY(40) [49] Receive response: HTTP/1.0 200 OK (length 0).
HTTP104I 06.05.2015 10:42:24 (40) R Connection: keep-alive.
HTTP104I 06.05.2015 10:42:24 (40) R Via: 1.0 optimusprime (squid/3.1.10).
HTTP104I 06.05.2015 10:42:24 (40) R X-Cache-Lookup: MISS from optimusprime:3128.
HTTP104I 06.05.2015 10:42:24 (40) R X-Cache: MISS from optimusprime.
HTTP104I 06.05.2015 10:42:24 (40) R Content-Length: 0.
HTTP104I 06.05.2015 10:42:24 (40) R X-Xfer-Ident: 553.
HTTP104I 06.05.2015 10:42:24 (40) R Content-Type: application/octet-stream.
HTTP104I 06.05.2015 10:42:24 (40) R Last-Modified: Tue, 05 May 2015 15:12:34 GMT.
HTTP104I 06.05.2015 10:42:24 (40) R Date: Wed, 06 May 2015 07:42:24 GMT.
HTTP104I 06.05.2015 10:42:24 (40) R HTTP/1.0 200 OK.
HTTP104I 06.05.2015 10:42:24 (40) S Connection: Keep-alive.
HTTP104I 06.05.2015 10:42:24 (40) S Authorization: Basic c29yaW46MTIzNA==.
HTTP104I 06.05.2015 10:42:24 (40) S User-Agent: Axway.Gateway/6.15.
HTTP104I 06.05.2015 10:42:24 (40) S Host: 10.133.59.191:6380.
HTTP104I 06.05.2015 10:42:24 (40) S GET http://10.133.59.191:6380/one/xxx HTTP/1.0.
HTTP300I 06.05.2015 10:42:24 HTTP_BY_PROXY(40) [49] Sending request: GET http://10.133.59.191:6380/one/xxx HTTP/1.0 (length ).
NET104I 06.05.2015 10:42:24 (41) outgoing connection confirmation [resp_add="10.133.9.145/42747"].
NET101I 06.05.2015 10:42:24 (41) outgoing connection request [src_add="/0",dest_add="10.133.9.145/3128"].
SUP218I 06.05.2015 10:42:24 User:test Trans:49 Action:Write Allowed.
SUP218I 06.05.2015 10:42:24 User:test Trans:0 Action:Write Allowed.
NET105I 06.05.2015 10:41:54 (40) disconnection request [reason="0"].

SQUID log

1430898144.425 6 10.133.9.145 TCP_MISS/200 320 GET http://10.133.59.191:6380/one/xxx - DIRECT/10.133.59.191 application/octet-stream
(Explanation for TCP_MISS squid proxy log :
MISS The response object delivered was the network response object.
http://wiki.squid-cache.org/SquidFaq/SquidLogs)

Gateway_2 log

NET106I 06.05.2015 10:40:15 (16) disconnection indication [reason="No error (0x0)"] [origin="0"].
HTTP103I 06.05.2015 10:39:15 $H_sorin(15) [553] GET - /one/xxx - 200 "Ok" - length 0 - user-agent: Axway.Gateway/6.15.
HTTP215I 06.05.2015 10:39:15 $H_sorin(15) [553] sorin End sending file: C:\KIT\1\xxx
.
HTTP211I 06.05.2015 10:39:15 $H_sorin(15) [553] sorin Start sending file: C:\KIT\1\xxx.
USR001I 06.05.2015 10:39:15 $H_sorin EXITHTTP can't find application, will use default internal application.
PCNX005I 06.05.2015 10:39:15 (54525967) route_originator_ident = [], route_destination_ident = [] .
PCNX005I 06.05.2015 10:39:15 (54525967) route_local_agent = [], route_remote_agent = [] .
PCNX005I 06.05.2015 10:39:15 (54525967) root_directory = "/http/" [GHTTP], home_directory = "/http/" [GHTTP] .
PCNX005I 06.05.2015 10:39:15 (54525967) ftpcs_list_fields = -1073741825 [GHTTP] .
PCNX005I 06.05.2015 10:39:15 (54525967) max_upload_file_size = 0 [] .
PCNX005I 06.05.2015 10:39:15 (54525967) command_sensitivity = 0 [] .
PCNX005I 06.05.2015 10:39:15 (54525967) max_download_rate = 0 [], max_download_requests_rate = 0 [] .
PCNX005I 06.05.2015 10:39:15 (54525967) max_upload_rate = 0 [], max_upload_requests_rate = 0 [] .
PCNX005I 06.05.2015 10:39:15 (54525967) http_home_page = "" [], http_list_template = "" [] .
PCNX005I 06.05.2015 10:39:15 (54525967) template_site = "THTTP" [GHTTP] .
PCNX001I 06.05.2015 10:39:15 (54525967) CGate H2 selected.
PCNX004I 06.05.2015 10:39:15 (54525967) login="sorin", pwd="###" .
PCNX004I 06.05.2015 10:39:15 (54525967) calling addr="10.133.9.145/35722", called_addr="10.133.59.191/6380", http_host_name="10.133.59.191" .
PCNX003I 06.05.2015 10:39:15 (54525967) HTTP Connection Request Received .
JCT003I 06.05.2015 10:38:44 [] Job [c:\slim_6.13.1\gateway\run_time\etc\arclog.bat c:\slim_6.13.1\gateway\run_time\data\log.dat_20150506_103843 (pid=852, ph=1696)] pid 852 terminated.

Gateway_1 Configuration (remote site and proxy)

[xfb@optimusprime etc]$ pelbase export_proxy
#?BEGIN_PROXY
pr_name='PROXY_1'
pr_comments='local SQUID proxy'
pr_protocol='HTTP'
pr_address='10.133.9.145/3128'
pr_login_user=''
pr_login_password=''
pr_type=''
pr_change_data_addr='N'
#?END_PROXY

[xfb@optimusprime etc]$ pelbase export_site -a HTTP_BY_PROXY
#?BEGIN_SITE
s_alias='HTTP_BY_PROXY'
s_proto_ident='HTTP_BY_PROXY'
s_protocol='HTTP'
s_version=''
s_comments=''
s_group='GDEFAULT'
s_username=''
s_snd_msg=''
s_local_site='N'
s_init_sender='Y'
s_resp_sender='Y'
s_init_receiver='Y'
s_resp_receiver='Y'
s_old_password=''
s_old_password2=''
s_password=''
s_password2=''
s_check_password=''
s_check_password2=''
s_restart_allowed='N'
s_resync_allowed='N'
s_eerp_style=''
s_acknowledgment_option='NOT_TO_ACK'
s_special_logic='N'
s_get_appli_method='AIE'
s_trans_mode='NONE'
s_ftp_restart_type='BOTH'
s_ftp_data_struct='NONE'
s_ftp_passive_mode='NONE'
s_change_data_addr='N'
s_poll_option='N'
s_poll_responder='N'
s_poll_interval='0'
s_poll_conn_max='0'
s_nack_option='N'
s_permanent_conn='N'
s_conn_hold_delay='0'
s_heartbeat_rate='0'
s_attach_extract_file='Y'
s_pop3_auth_method='BASIC'
s_oftp_auth_method='NONE'
s_error_mail_disposal='undefined'
s_smtp_auth_method='NONE'
s_mail_address=''
s_newline_convention=''
s_max_upload_rate='0'
s_max_download_rate='0'
s_max_upload_requests_rate='0'
s_max_download_requests_rate='0'
s_command_sensitivity='0'
s_max_upload_file_size='0'
s_ftpcs_list_fields='DISABLED'
s_ftp_disable_xfb_commands='N'
s_ftp_options='0'
s_retry_count_max='10'
s_retry_delay_min='10'
s_retry_delay_max='1800'
s_init_conn_max='1'
s_resp_conn_max='1'
s_dir_path=''
s_data_size_max='4000'
s_data_window='0'
s_check_window='0'
s_use_etb5_compresion='N'
s_login_ident='sorin'
s_login_password='1234'
s_login_type='Web'
s_login_url=''
s_login_method=''
s_login_user_param=''
s_is_monitor='N'
s_partner_loc_alias=''
s_check_login_ident='HTTP_BY_PROXY'
s_check_login_password=''
s_comm_type='TCPIP'
s_dest_address='10.133.59.191/6380'
s_org_address=''
s_net_proxy=''
s_ft_proxy='PROXY_1'
s_network_security_option='NONE'
s_xpp_entity_name=''
s_tls_sprof_in=''
s_tls_sprof_out='TEST_HTTPS'
s_xsr_term_type='NONE'
s_xsr_allowed_ra_list=''
s_user_data=''
s_comm_options=''
s_logon=''
s_logon_code='U'
s_auth_obj_type='NONE'
s_auth_obj_name=''
s_auth_obj_password=''
s_remote_subject_cert_alias=''
s_remote_issuer_cert_alias=''
s_remote_subject_name_pattern=''
s_remote_issuer_name_pattern=''
s_comm_type_1='U'
s_dest_address_1=''
s_org_address_1=''
s_net_proxy_1=''
s_ft_proxy_1=''
s_user_data_1=''
s_comm_options_1=''
s_logon_1=''
s_logon_code_1='U'
s_comm_type_2='U'
s_dest_address_2=''
s_net_proxy_2=''
s_ft_proxy_2=''
s_org_address_2=''
s_user_data_2=''
s_comm_options_2=''
s_logon_2=''
s_logon_code_2='U'
s_comm_type_3='U'
s_dest_address_3=''
s_org_address_3=''
s_net_proxy_3=''
s_ft_proxy_3=''
s_user_data_3=''
s_comm_options_3=''
s_logon_3=''
s_logon_code_3='U'
s_sw_init_xfer_max='0'
s_sessions_max='1'
s_init_mode='Y'
s_resp_mode='Y'
s_trace_mode='Y'
s_poll_mode='N'
s_sentinel_transfer_filter='UNDEFINED'
s_param1=''
s_param2=''
s_use_trade_unpacking='undef'
#?END_SITE