Skip to main content

Multi-Layer Firewall Architecture & Perimeter Defense

To satisfy the stringent security, isolation, and compliance demands of government, financial services, healthcare, and enterprise workloads, Okustera implements a Defense-in-Depth, Multi-Layer Firewall Architecture.

Rather than relying on a single perimeter barrier, security controls are distributed across five architectural tiers spanning carrier-grade border defense, software-defined VPC firewalls, Layer 7 Web Application Firewall (WAF) inspection, in-kernel workload runtime enforcement, and optional customer-managed virtual firewall appliances.


Multi-Tier Architecture Diagram​


Defense-in-Depth Summary​

TierArchitectural LayerCore Protection Capabilities
Tier 1Border Edge & Carrier TransitHigh-availability carrier edge defense, upstream volumetric DDoS scrubbing, line-rate packet filtering, resilient BGP routing, and hardware-accelerated IPsec VPN / Direct Connect.
Tier 2Software-Defined Cloud FirewallStateful distributed security groups enforced at every virtual network interface, strict isolation of platform management planes, and default-deny ingress posture.
Tier 3Managed L7 WAF & Ingress GatewayOWASP-aligned Layer 7 inspection blocking SQLi, XSS, RCE, and path traversal (HTTP 403 Forbidden), dynamic rate limiting, and TLS 1.3 termination.
Tier 4Kernel Runtime & Zero-Trust EgressReal-time in-kernel runtime threat enforcement preventing container escapes, unauthorized binary execution, credential tampering, and outbound cryptomining abuse.
Tier 5Virtual Firewall Appliances (vNGFW)Marketplace virtual firewall images (pfSense CE, OPNsense, FortiGate-VM) supporting dedicated Transit Inspection VPC patterns and enterprise DLP/VPN requirements.

Tier 1: Border Edge & Carrier Transit​

Okustera peers directly with redundant upstream transit providers and regional Internet Exchange Points (IXPs) using carrier-grade border infrastructure:

  1. Volumetric DDoS Mitigation & Scrubbing:
    • Multi-gigabit SYN floods, UDP amplification attacks, and malformed packet floods are scrubbed at the carrier edge before traffic enters the cloud compute fabric.
  2. Resilient Multi-Homed BGP Routing:
    • Redundant external BGP peering and rapid link-failure detection maintain uninterrupted public reachability for customer floating IPs and load balancer endpoints.
  3. Private Interconnect & Hardware IPsec VPN:
    • Wire-speed AES-256-GCM IPsec tunnels and dedicated Layer 2 Direct Connect links bridge customer on-premises datacenters securely into Okustera private VPCs.

Tier 2: Software-Defined Cloud Firewall (VPC Layer)​

Every customer VPC and virtual machine network interface is protected by stateful, distributed packet filtering:

  • Isolated Control & Management Planes: Platform control-plane and database management interfaces are strictly isolated from the public internet and unreachable from customer public ingress routes.
  • Default-Deny Ingress Posture: Customer security groups block unapproved inbound traffic by default, allowing only explicitly declared application ports (such as HTTPS TCP 443 and HTTP TCP 80) and authorized management CIDRs.
  • Stateful Connection Tracking: Distributed connection tracking permits return traffic for authorized outbound connections while dropping unsolicited packets at the virtual interface boundary.

Tier 3: Managed L7 Web Application Firewall (WAF)​

All HTTP/HTTPS traffic routed through the Okustera managed ingress gateway undergoes real-time OWASP-aligned Layer 7 inspection:

  • Real-Time Threat Mitigation: Inspects request URIs, headers, query parameters, and request bodies to detect and block common web and API attack vectors, including:
    • SQL Injection (SQLi)
    • Cross-Site Scripting (XSS)
    • Remote Code Execution (RCE) and deserialization / JNDI injection attacks
    • Local and Remote File Inclusion (LFI/RFI) and directory traversal attempts
    • Automated vulnerability scanning and credential-abuse bursts
  • Enforcement Behavior:
    • Malicious requests are rejected immediately at the edge with an HTTP 403 Forbidden response before reaching customer application backends:
      {
      "error": "Forbidden by Okustera WAF: Request blocked by security policy."
      }
  • Modern Transport Security: All public ingress endpoints enforce TLS 1.3 with modern cipher suites and automated certificate lifecycle management.

Tier 4: Workload Runtime & Zero-Trust Egress Protection​

Within Okustera's managed container and Kubernetes compute planes, continuous kernel-level enforcement complements network perimeter controls:

1. Real-Time Runtime Security Enforcement​

  • Unauthorized Execution Prevention: Kernel-level runtime policies automatically detect and terminate suspicious offensive tooling and unauthorized binary executions inside workloads.
  • Container Boundary & Privilege Protection: Real-time monitoring intercepts privilege escalation attempts, namespace breakout activity, and unauthorized access to sensitive host credentials or container runtime sockets.

2. Zero-Trust Network & Egress Guardrails​

  • Micro-Segmentation: Kubernetes NetworkPolicies isolate workloads across namespaces and restrict lateral movement to explicitly authorized services.
  • Anti-Abuse & Egress Filtering: Cluster-wide egress controls automatically block unauthorized outbound cryptomining traffic while allowing customers to opt into strict DNS-aware egress policies that restrict workloads to approved internal endpoints and standard web ports (HTTPS 443 / HTTP 80).

Tier 5: Virtual Next-Gen Firewall (vNGFW) Marketplace & Inspection VPC​

Regulated enterprise tenants requiring dedicated deep-packet antivirus inspection, corporate Data Loss Prevention (DLP), or custom site-to-site VPN appliances can deploy dedicated virtual firewalls inside their private VPCs.

Marketplace Certified Appliances​

Okustera maintains pre-configured vNGFW images in the Image Catalog:

Image NameOS FamilyRecommended SizingKey Capabilities
pfSense-CEFreeBSD2 vCPU, 4 GB RAM, 20 GB DiskNetgate pfSense Community Edition with Suricata IDS/IPS, OpenVPN, and multi-WAN routing.
OPNsenseHardenedBSD2 vCPU, 4 GB RAM, 20 GB DiskOPNsense firewall with Layer 7 application control and WireGuard VPN integration.
FortiGate-VMFortiOS2 vCPU, 4 GB RAM, 20 GB DiskFortinet Next-Gen Virtual Firewall with enterprise DPI, IPS, and IPsec VPN engines.

Reference Architecture: See Quickstart: Sovereign AI Security Gateway & Zero-Trust Perimeter for a production deployment combining a virtual firewall appliance with managed load balancing and AI security controls at https://shield.okustera.com.


Transit Inspection VPC Pattern​

In the Inspection VPC pattern, outbound tenant traffic is routed through a dedicated virtual firewall before reaching the Internet:

[ External Public WAN / Internet ]
|
[ Inspection VPC Router ]
| (198.51.100.1)
+----------------------------------+
| DMZ Subnet (198.51.100.0/24) |
+----------------------------------+
| (198.51.100.254)
[ eth0: Public / WAN ]
+------------------------+
| vNGFW Virtual Firewall |
| (pfSense / FortiGate) |
+------------------------+
[ eth1: Transit / LAN ]
| (198.51.101.254)
+----------------------------------+
| Tenant Transit (198.51.101.0/24) |
+----------------------------------+
|
Static Route: 0.0.0.0/0 -> Next-Hop 198.51.101.254
|
[ Tenant Workload Instances ]

Declarative Terraform Recipe​

Provision an Inspection VPC and dual-homed virtual firewall appliance declaratively using the Okustera Terraform provider:

# 1. Inspection VPC with DMZ and Transit Subnets
resource "okustera_vpc" "inspection_vpc" {
name = "inspection-vpc"
cidr_block = "198.51.100.0/22"
}

resource "okustera_subnet" "dmz_subnet" {
vpc_id = okustera_vpc.inspection_vpc.id
name = "inspection-dmz-subnet"
cidr = "198.51.100.0/24"
tier = "public"
}

resource "okustera_subnet" "transit_subnet" {
vpc_id = okustera_vpc.inspection_vpc.id
name = "tenant-transit-subnet"
cidr = "198.51.101.0/24"
tier = "private"
}

# 2. Route Default Egress (0.0.0.0/0) through the vNGFW LAN Interface
resource "okustera_route_table" "transit_rt" {
vpc_id = okustera_vpc.inspection_vpc.id
name = "transit-inspection-rt"
}

resource "okustera_route" "transit_default_route" {
route_table_id = okustera_route_table.transit_rt.id
destination_cidr = "0.0.0.0/0"
next_hop = "198.51.101.254"
}

# 3. Discover Certified vNGFW Marketplace Image
data "okustera_image" "vfw_image" {
name = "FortiGate-VM"
}

# 4. Provision Dual-NIC Virtual Firewall Appliance
resource "okustera_compute_instance" "vfw_appliance" {
name = "vfw-appliance-01"
image_id = data.okustera_image.vfw_image.id
flavor_name = "m1.medium"

network_interface {
subnet_id = okustera_subnet.dmz_subnet.id
ip_address = "198.51.100.254"
}

network_interface {
subnet_id = okustera_subnet.transit_subnet.id
ip_address = "198.51.101.254"
allow_forwarding = true
}
}