Skip to content
Smarter by Design.Simpler for Business
TR7Enterprise Application Delivery & Security Platform

Inline Mode ​

Inline Mode is the deployment in which TR7 sits on the traffic path as a bridge (on TR7, a Bridge interface that joins two interfaces; on the vService, Inline Mode under QOS; on the Backend Service, the SNAT field set to Use Client IP and Spoofing enabled). The client keeps reaching the application at the server's own address as usual; TR7 intercepts this traffic on the path, inspects it and forwards it to the server with the client's real IP address.

The application's address, its DNS record and the server's gateway setting stay the same; no setting changes on the client or server side. Load balancing and security layers are added in front of a running application without touching the application address.

Name used by other vendors

This deployment is mostly known in the industry as bridge mode. The names Inline and transparent are also used in the industry for deployments that preserve the client address and operate on the traffic path, such as Gateway Mode and Route Mode. What sets Inline Mode apart from these is that the client connects to the server's own address and TR7 steps in between as a bridge. In the TR7 interface the setting is named Inline Mode, and this documentation uses that name.

Bridge
On the traffic path
TR7 steps in between the client and the server with a Bridge interface that joins two interfaces
Same Address
DNS and application address are preserved
The client connects to the server's own address; the application address and DNS record do not change
Real IP
Source address is preserved
The server sees the client's own IP address as the source of the connection
Full Inspection
Connection terminates on TR7
Traffic does not just pass through; it is opened, inspected and re-established on TR7
Automatic Rule
Inline Mode switch
The rule that takes traffic destined for the server into the vService is generated automatically when the switch is turned on
Selective
Only the relevant service
Only the traffic of the defined Backend Services is taken into the vService

Inline ModeInline Mode

The diagram shows the traffic flow in a single-device installation: TR7 sits between the gateway and the Backend Service with a Bridge interface that joins two of its interfaces (1G-1 and 1G-2 in the diagram); both sides of the bridge are the same network (VLAN_10 in the diagram), and the bridge interface and the Backend Service are in the same route table (Inline in the diagram). The client comes from another network and sends the request not to the vService address but to the Backend Service's own address (http://172.16.10.50/).

In the diagram's example, the connection destined for the Backend Service's address and port (172.16.10.50:80) is taken into the vService on TR7 with Inline Mode; on an HTTP vService, Bot/DDoS, WAF and AGS are applied at this point. TR7 connects to the Backend Service with the client's address (192.168.50.10). The Backend Service sends the response out toward the client's address via its own gateway (172.16.10.1); because Spoofing is enabled, TR7 intercepts the packet and forwards the response to the client from the Backend Service's address.

The health check is performed not with the client address but with the TR7 address in the Backend Service's route table. This applies while the Health Check Source IP field on the Backend Service is at its default value; when another address is selected in the field, the check is performed from that address.

In the diagram's example, the source and destination details of the packets in the four steps of the connection are as follows:

StepDirectionSource IPSource PortDestination IPDestination Port
1Client → Backend Service (TR7 intercepts on the path)192.168.50.10 (Client IP)Random172.16.10.50 (Backend Service's address); the connection is taken into the vService with Inline Mode80
2TR7 → Backend Service (with the client's address)192.168.50.10 (Client IP)Random172.16.10.5080
3Backend Service → Client (TR7 intercepts on the path)172.16.10.5080192.168.50.10 (Client IP); the server's gateway is 172.16.10.1, TR7 intercepts the packet with SpoofingSource port of step 2
4TR7 → Client (with the Backend Service's address)172.16.10.50 (Backend Service's address)80192.168.50.10 (Client IP)Source port of step 1
ColorMeaning
Request
Response

The addresses the client sees are the Backend Service's address from start to finish (steps 1 and 4); the address the Backend Service sees is the client's address (steps 2 and 3). TR7, which terminates and inspects the connection in between, does not appear as an address to either side.

Why Inline Mode? ​

Publishing through an addressWith Inline Mode
The application is published from the vService address on TR7; clients are directed to the new address.Clients keep connecting to the address they know, the server's own address.
The DNS record, firewall rules and client settings are updated for the new address.The DNS record and client settings stay as they are.
Rollout waits for the address change to propagate to all clients.There is no address change to wait for; it takes effect when TR7 is placed on the traffic path.
To preserve the client address, the server's gateway is changed or Spoofing is used.The server sees the client's address; the gateway setting is not touched.

How Does Traffic Flow? ​

ClientKeeps connecting to the address it knows
TR7Steps in between as a bridgeTLSBot/DDoSLBWAFAGSWAF and AGS on HTTP vServices only
Backend ServiceIts address and gateway stay the same
  1. Request sets outThe client connects to the application at the server's own address; it does not need to know the vService address.
  2. TR7 intercepts on the pathThe TCP connection destined for the Backend Service's address and port is taken into the vService at the bridge; Bot/DDoS and rules are applied, and on HTTP vServices WAF and AGS as well.
  3. Forwards on behalf of the clientTR7 connects to the Backend Service using the client's IP address as the source address.
  4. Response returnsThe Backend Service's response reaches TR7 thanks to Spoofing; TR7 forwards the response to the client from the server's address.
RequestResponse

The bridge is not just a pass-through: the connection destined for the Backend Service terminates on TR7 and goes through all the inspections the vService offers. No setting changes on the client or server side; what changes is that the path in between is now inspected.

Highlights ​

Application address does not changeClients keep using the server's own address; the DNS record, bookmarks and clients that work with a fixed address are not affected.
Real client address end to endThe client's own IP address appears in the Backend Service's logs, access controls and rate limits.
No setting change on the serverThe server's address and gateway setting stay the same; TR7 itself ensures, with Spoofing, that the traffic comes to TR7.
The rule is generated automaticallyWhen Inline Mode is turned on in the vService, the firewall rule that takes traffic destined for the Backend Service into the vService is created automatically for each service.
Inspects rather than passesBecause the connection terminates on TR7, load balancing, TLS termination and Bot/DDoS are used, and on HTTP vServices WAF and AGS in addition.
Only the relevant traffic is takenOnly TCP connections destined for the address and port of the defined Backend Services are taken into the vService; the server's other traffic is managed with forwarding rules in the TR7 firewall.
Forwarded traffic is opened with rulesThe server's traffic that is not taken into the vService is permitted with forwarding rules defined in the TR7 firewall; the device that steps in between is also an inspection point.
In the same route tableThe bridge interface and the Backend Service are defined in the same route table; when a separate route table is used, the deployment is kept apart from the other networks on the device.

When Is It Preferred? ​

Applications whose address cannot be changed Same address

Applications that clients reach at a fixed IP address, and whose DNS or client settings cannot be changed, are brought under inspection with their addresses preserved.

Adding security to a running application WAF and Bot/DDoS

Security layers are placed in front of a live application without reorganizing the publishing address and access rules.

Environments closed to change Hands-off

In environments where no change can be made on the server, DNS and client side, the required arrangement is made on TR7 and on the connection path.

Requirements of this deployment

No setting changes on the client or server side; the arrangement is made on TR7 and at the point where TR7 connects:

  • Bridge interface. TR7 connects to the two ends of the traffic path with two interfaces, and these interfaces are joined in a Bridge interface.
  • An address on the bridge. The vService listens on an address defined on the Bridge interface. This address does not need to be announced to clients or listed in DNS; a free address from the server network is used.
  • Same port. The vService listens on the same port the Backend Service listens on.
  • TCP. Inline Mode is used on HTTP and L7 TCP vServices while QOS is enabled, and covers only TCP connections; HTTP/3 (UDP) traffic is not taken in this way.
  • Firewall rules. While Spoofing is enabled, all of the server's traffic with its gateway reaches TR7: this includes connections the server initiates itself and other access to the server (management, monitoring, backup). This forwarding is closed by default in TR7's firewall; before rollout, permit rules must be defined for this traffic.
  • Gateway address. A default gateway must be defined in the Backend Service's route table, or the Spoofing IP field must be filled in on the Backend Service.
  • The client must be on another network. Traffic is delivered to TR7 for clients that come through the server's gateway.
  • Use Client IP and Spoofing. Both are enabled together on the Backend Service. Use Client IP ensures that the server sees the client address; Spoofing ensures that the traffic is delivered to TR7. Being on the path as a bridge is not sufficient by itself: since the server's gateway is not TR7, Spoofing brings the return traffic to TR7.