<!-- File: $RCSfile: add_connection_object,v $ -->
<!-- Rev: $Revision: 209552 $ -->

<body class="help">
  <h2 class="help"><a name="Add Connection Object"></a><a name="Edit Connection Object"></a>Add &frasl; Edit Connection Object</h2>The
  connection object defines the egress interface and source &#40;NAT&#41; IP address for traffic matching the access rule. If a source IP
  address is specified, the appropriate link will be used based on the routing table. If an interface is specified, the appropriate
  source IP address will be used based on the routing table.

  <p>To add or edit a custom connection object that can be used in a access rule, fill in or modify the following
  values:</p>

  <ul>
    <li><b>Name</b> &mdash; A unique name.</li>

    <li><b>Description</b> &mdash; An optional description.</li>

    <li><b>Connection Timeout</b> &mdash; Time in seconds before a failing connection skips to the next fallback level. A low value is
    better for faster failover; longer values are used for congested connections. Default: 30</li>

    <li>
      <b>Translated Source IP</b> &mdash; The type of NAT to use. The value selected determines whether other parameters on this page are available
      or not. <b>Translated Source IP</b> allows you to specify which source IP address and interface are to be used in case of fallback. This
      is especially important if you are using multiple ISPs. Connecting via the backup provider using the wrong source IP address
      causes the return traffic routing to fail.<br>
      Select one of these options:

      <ul>
        <li><b>Dynamic NAT</b> &mdash; The firewall uses the routing table to find a suitable interface for routing the packet
        and uses the IP address of the relevant interface as the new source IP address.</li>

        <li><b>Original Source IP</b> &mdash; The original source IP address of the packet will not be changed.</li>

        <li><b>Network Interface</b> &mdash; Source NAT using the first IP address on the interface selected from the <b>Interface</b>
        drop&ndash;down list.</li>

        <li><b>Explicit IP</b> &mdash; Use the IP address in the <b>Explicit IP Address</b> field.</li>
      </ul>
    </li>

    <li><b>Proxy ARP</b> &mdash; If the <b>Explicit IP Address</b> does not exist locally, select this check box to direct the
    firewall to answer ARP requests for this IP address. This option is only available if <b>Translated Source IP</b> is set to
    <i>Explicit</i>.</li>
	
	<li>
	<b>Use Same Port</b> can be enabled or disabled if <b>Translated Source IP</b> is set to either <b>Network Interface</b> or <b>Explicit IP</b>. 
	<b>Use Same Port</b> is always disabled for <b>Dynamic NAT</b>, and is always enabled for <b>Original Source IP</b>.</br>
	If you leave the box <i>unchecked</i>, the firewall extends NAT so that port numbers will also be translated. 
	E.g., if you want to pool several private IP addresses to one public IP address, leave the box unchecked.
	</li>

    <li><b>Weight</b> &mdash; Assigns a weight number to this interface. This is only used if the multilink policy selected in the
    Failover and Load Balancing section is <i>Weighted Round Robin</i>. Specify the value relative to the weights assigned to the
    other interfaces. A higher value means that this interface is used proportionally more.</li>
  </ul>

  <h2 class="help"><a name="Failover and Load Balancing"></a>Failover and Load Balancing</h2>This section enables you to configure
  fallback settings to use if a connection fails, and to configure outbound link load balancing. The values are enabled only if
  <b>Translated Source IP</b> is set to either <i>From Interface</i> or <i>Explicit</i> for this connection object.<br>
  <br>
  Configure the following parameters:

  <ul>
    <li>
      <b>Multilink Policy</b> &mdash; Defines what happens if multiple links are configured.<br>
      Available policies are:

      <ul>
        <li><b>None</b> &mdash; No fallback or source address cycling. This is the default setting. Selecting this option deactivates
        the fallback feature.</li>

        <li><b>Failover</b> &mdash; Fallback to the first IP source address and interface, called Alternate 1. If Alternate 1 fails,
        fallback to Alternate 2 and so on. When the original link becomes available, the firewall will automatically
        resume directing traffic to that interface.</li>

        <li><b>Weighted Round Robin</b> &mdash; Use the IP addresses and interfaces specified below, along with the interface specified
        above, in weighted-round robin fashion.</li>

        <li><b>Weighted Random</b> &mdash; Randomly use one of the available IP addresses and interfaces specified in this object.</li>
      </ul>
    </li>

    <li>Enter the following for each of the alternate links:

      <ul>
        <li>
          <b>Translated Source IP</b> &mdash; Select one of these options:

          <ul>
            <li><b>Network Interface</b> &mdash; Source NAT using first IP address on the interface selected from the <b>Interface</b>
            dropdown</li>

            <li><b>Explicit IP</b> &mdash; Use the IP address in the <b>IP</b> address field.</li>
          </ul>
        </li>

        <li><b>Weight</b> &mdash; Only used for weighted round robin multilink policy. The weight numbers represent the traffic
        balancing ratio of the available links. The higher the relative number, the more the link is used. For example, if this
        object contains four links with weight values of 6, 2, 1, and 1, then the traffic that matches the rule containing this
        object will egress using the configured interfaces in a ratio of 6:2:1:1. 60% of the traffic will pass over Link #1, 20% of
        the traffic will pass over Alternate 1, 10% of the traffic will be directed to Alternate 2 and 10% to Alternate 3.</li>
      </ul>
    </li>
  </ul>


<h2 class="help"><a name="VPN Traffic Intelligence"></a>SD WAN</h2>
	<p>SD WAN provides multiple VPN transports with each transport capable of using a different WAN connection,
	   thereby expanding on the concept of a traditional VPN tunnel with only one VPN transport to one logical VPN tunnel.</p>
	Configure the following parameters:
   
	<ul>
		<li><b>Transport Selection Policy</b> &mdash; Performance-Based Transport Selection selects the optimal transport based on the policy selected in the TI settings of the custom connection object. Only UDP transports with Dynamic Bandwidth and Latency Detection enabled are included in the Performance-Based Transport Selection policy. 
			   The transport selections are made from the point of view of the TI master. The following policies are available:</li>
			<ul>
				<li><b>None</b> &mdash; Set this value if you do not want to use TI.</li>
				<li><b>Explicit Transport Selection</b> &mdash; Set this value if you want to configure the further settings individually.</li>
				<li><b>Optimize for Inbound Bandwidth</b> &mdash; Traffic is sent through the VPN transport with the highest available downstream bandwidth for the QoS class from the TI master's point of view. No-delay traffic uses the total bandwidth as the criteria. 
					   Standard traffic uses the total bandwidth minus the no-delay traffic to make the decision of which transport to use.</li>
				<li><b>Optimize for Outbound Bandwidth</b> &mdash; Traffic is sent through the VPN transport with the highest available upstream bandwidth for the QoS class from the TI master's point of view. No-delay traffic uses the total bandwidth as the criteria. 
					   Standard traffic uses the total bandwidth minus the no-delay traffic to make the decision of which transport to use.</li>
				<li><b>Optimize for Combined Bandwidth</b> &mdash; Traffic is sent through the VPN transport with the highest bandwidth calculated by adding the upstream and downstream bandwidths from the TI master's point of view.</li>
				<li><b>Optimize for Latency</b> &mdash; Traffic is sent through the VPN transport with the lowest latency. If the latency changes, the selected transport is also updated.</li>
			</ul>
		<li><b>TI Learning Policy</b> &mdash; Depending on its role, the firewall (Master) either propagates the TI settings to or
			   (Slave) receives the TI settings from the partner.
		</li>
		<li><b>Primary Transport Class</b> &mdash; The three VPN transport classes are classified according to their "cost":</li>
			<ul>
				<li><b>Bulk</b> &mdash; For cheap and potentially unreliable connections. Bulk transports are recommended for xDSL or cable WAN connections.</li>
				<li><b>Quality</b> &mdash; For a more reliable line, such as a business-quality Internet line or MPLS links.</li>
				<li><b>Fallback</b> &mdash; For the most expensive lines. Fallback transports are recommended for dial-in lines or WWAN connections</li>
			</ul>
		<li><b>Primary Transport ID</b> &mdash; Each VPN transport class is made up of eight class IDs (0 - 7), which define the VPN transport cost in more detail. 
			   The class IDs provide you with more configuration options for creating VPN transports in a single VPN tunnel.
			   A higher metrics indicates a more expensive transport.</li>
		<li><b>Secondary Transport Class</b> &mdash; The three VPN transport classes are classified according to their "cost":</li>
			<ul>
				<li><b>Bulk</b> &mdash; For cheap and potentially unreliable connections. Bulk transports are recommended for xDSL or cable WAN connections.</li>
				<li><b>Quality</b> &mdash; For a more reliable line, such as a business-quality Internet line or MPLS links.</li>
				<li><b>Fallback</b> &mdash; For the most expensive lines. Fallback transports are recommended for dial-in lines or WWAN connections.</li>
			</ul>
		<li><b>Secondary Transport ID</b> &mdash; Each VPN transport class is made up of eight class IDs (0 - 7), which define the VPN transport cost in more detail. 
			   The class IDs provide you with more configuration options for creating VPN transports in a single VPN tunnel.
			   A higher metrics indicates a more expensive transport.</li>
		<li><b>Further Transports</b> &mdash; Select the transports that are used if the primary and secondary VPN transports fail. 
			   Depending on the additional available VPN transports, you can define more than one backup path. Select from the following predefined policies:</li>
			<ul>
				<li><b>First try Cheaper then try Expensive</b></li>
				<li><b>Only try Cheaper</b></li>
				<li><b>First try Expensive then try Cheaper</b></li>
				<li><b>Only try Expensive</b></li>
				<li><b>Stay on Transport (no further tries)</b></li>
				<br>
				<li><b>Allow Bulk Transports</b> &mdash; Check the box to allow bulk transports.</li>
				<li><b>Allow Quality Transports</b> &mdash; Check the box to allow quality transports.</li>
				<li><b>Allow Fallback Transports</b> &mdash; Check the box to allow fallback transports.</li>
			</ul>
		<li><b>Session Balancing</b> &mdash; Static session balancing can be configured to balance over just the primary and secondary transports or multiple transports 
			   in the same TI class based on the TI ID range defined in the connection object.</li>
		<li><b>Traffic Duplication</b> &mdash; Select <b>Yes</b> to enable copying packets and simultaneously sending them through the selected primary and secondary transport.</li>
	</ul>
<p>Click <b>Save</b> to save or <b>Cancel</b> to discard the changes.</p>
</body>

