The Simplest Way to Make Fortigate and Oracle Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Using fortigate and oracle together guards database networks while apps run SQL queries. The firewall filters packets at the edge, and the database checks user roles. This setup lets engineering teams run production apps while keeping private data safe. Network rules block bad traffic before any packet reaches the database server. Database permissions then control which tables a logged-in user can read or write. How fortigate and oracle handle network flow and permissions A request starts wh

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Using fortigate and oracle together guards database networks while apps run SQL queries. The firewall filters packets at the edge, and the database checks user roles.

This setup lets engineering teams run production apps while keeping private data safe. Network rules block bad traffic before any packet reaches the database server. Database permissions then control which tables a logged-in user can read or write.

How fortigate and oracle handle network flow and permissions

A request starts when an app or engineer sends traffic toward the database. The Fortigate unit sits at the network edge and checks the source address. It matches the packet against security rules and port filters.

If the rule allows the packet, the firewall forwards it to the subnet. Then the Oracle listener takes over the session request. The database checks the user credentials against its internal directory or identity store.

Once the user logs in, the database loads the assigned role and permissions. The firewall logs the packet flow, including source IP and byte counts. Meanwhile, the database runs the query and returns the result through the firewall. Both systems must agree on session timers so long queries do not drop.

Common failure modes in database network setups

Many teams rely on a single firewall rule for a whole subnet. Once inside the network, engineers often share one database service account. This shared account makes it impossible to tie a query to one person. Firewall logs only show network addresses, not the SQL statements inside the traffic.

Another common issue happens when firewall idle timers cut off long database sessions. The firewall drops the silent TCP state while the database keeps running the job. This mismatch leaves dead sessions hanging inside the database server. Network helpers for SQL traffic can also clash with encrypted database sessions.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

How to scope roles and network paths

Start by creating narrow firewall rules that match specific app servers to subnets. Do not open database listener ports to the whole internal office network. Align the firewall session timeout with the database idle timer to prevent drops.

Next, remove shared database accounts and give each app or user a role. Grant only the exact table permissions needed for the daily task. Turn on database audit logs to track schema changes and failed logins.

When sensitive rows return, data masking rewrites matched fields in results. For example, masking can replace emails, phone numbers, card numbers, or national IDs. This keeps private values safe during everyday support and debugging tasks.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Why does the firewall drop long-running Oracle queries?

The firewall drops idle sessions when its TCP timer expires before the query finishes. You can fix this by matching the firewall timer with database keepalive settings.

Should we turn on firewall SQL helpers for encrypted database traffic?

No, deep packet helpers cannot read encrypted payloads and may break the handshake. Use standard port rules on the firewall and let the database handle encryption.

How do we track which engineer ran a specific SQL statement?

Stop using shared database accounts and require individual logins tied to identity groups. Then combine network flow logs with database audit trails for full visibility.

The query runs. The emails stay hidden.