The Simplest Way to Make Fortigate and Tcp Proxies Work Like They Should
Running fortigate and tcp proxies together routes edge traffic to internal ports with strict rules. The firewall filters packets at the border while the forwarder directs sessions inside your network. This pair lets teams reach private servers without exposing raw ports to the public web. Network admins keep tight border rules while developers connect to internal apps with less friction. How fortigate and tcp proxies pass traffic and roles Traffic starts when a user sends a request to the pub
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.
Running fortigate and tcp proxies together routes edge traffic to internal ports with strict rules. The firewall filters packets at the border while the forwarder directs sessions inside your network. This pair lets teams reach private servers without exposing raw ports to the public web. Network admins keep tight border rules while developers connect to internal apps with less friction.
How fortigate and tcp proxies pass traffic and roles
Traffic starts when a user sends a request to the public IP on the firewall. The firewall checks the source address, port number, and basic packet rules first. If the packet passes these checks, the firewall sends it to the internal forwarding node. That node terminates the first link and opens a new link to the target server.
Permissions work at two levels in this setup. The firewall controls which IP blocks and user groups can enter the private network. Once traffic reaches the forwarding node, local rules check the target port and host address. Some teams link both tools to the same directory so user groups match across layers. Data flows back through the same path, and both systems write separate connection logs.
Common failure modes and how to scope network paths
Many teams fail when they open wide port ranges between the firewall and the forwarder. If one node gets breached, an attacker can scan the whole internal subnet from there. Shared service accounts create another big risk during daily operations. When five engineers share one login, the logs cannot show who ran a bad command. Broad network tokens also stay active too long and give users far too much reach.
Unlogged traffic inside the stream is another major blind spot for security teams. A basic port forwarder only sees bytes, source IPs, and connection times. It does not record which database queries ran or what records came back. If sensitive fields like emails or card numbers return in a query, nothing rewrites them.
You can fix the network path by locking down each hop with narrow rules. Set the firewall to allow traffic only to the exact IP of the forwarding node. Next, set the forwarding node to reach only specific target hosts and single ports. Drop all other internal routes by default so lateral movement fails right away. Give every person a unique user role instead of sharing static network keys. Short session timeouts also help cut off idle links before someone can misuse them.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Keeping logs and data safe across both layers
Good logs need clear facts from both the network edge and the internal session. Configure the firewall to send packet drop logs and session start times to central storage. Set the internal forwarder to log the destination host, byte counts, and disconnect reasons. Matching timestamps across both tools helps your team trace a broken link in minutes.
When teams query private data stores over these links, raw results often hold personal details. Masking tools can rewrite matched fields like phone numbers or national IDs in results. This step keeps test work safe and stops sensitive text from leaking onto local laptops. Review your firewall rules and forwarding lists every month to delete old server paths.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Why put a TCP forwarder behind a firewall at all?
The firewall blocks bad packets at the border, while the forwarder manages internal server links. Using both keeps target servers off the border router and splits network duties cleanly.
How do we stop IP spoofing between the two tools?
Place the forwarding node in a private subnet that only the firewall can reach. Block all direct routes from other subnets so every packet must pass the border check.
What happens when a long TCP session drops mid-stream?
Most drops happen when the firewall timeout is shorter than the forwarder timeout. Set both tools to use matching idle timers so neither side cuts active work early.
Related guides
In this post