Circuit-Level Gateway Firewall

A circuit-level gateway firewall works at the Session Layer of the OSI model or the Transport Layer of TCP/IP.

Such firewalls monitor requests to create sessions and determine if those sessions will be allowed.

Example

the tester determines that there is a firewall between the tester’s machine and the target machine. The firewall is only monitoring TCP handshaking of packets at the session layer of the OSI model
Circuit-Level Gateway Firewall Example

sequenceDiagram
    participant User
    participant Firewall
    participant RemoteServer
    
    User->>Firewall: Initiates connection request
    Firewall->>Firewall: Checks if session is valid (TCP handshake)
    Firewall->>User: Allows/denies connection based on session validity
    User->>Firewall: Sends data request
    Firewall->>RemoteServer: Forwards data request
    RemoteServer->>Firewall: Sends response
    Firewall->>User: Forwards response
    Note over Firewall: Incoming traffic appears to originate from gateway
    Firewall->>Firewall: Monitors and verifies traffic
    Firewall->>User: Allows/denies further data requests