Repository navigation
A three-interface FortiGate lab: tracing a TCP deny from the LAN to the DMZ #4098
ibondarenko1
started this conversation in
Show and tell
Replies: 1 comment
|
Thanks a million for sharing this example -- it's always nice to hear someone finds netlab useful ;)
Yeah, I wanted to write about that for ages. Thanks for the poke ;) FWIW, you could also use static routes on the Linux hosts (https://netlab.tools/module/routing/#static-routes) or define a custom address pool just to get the static routes. Finally (totally off-topic), if you want a more concise topology, you could use "client.ipv4" and "fw.ipv4" attributes on the links (https://blog.ipspace.net/2026/08/netlab-compress-lab-topology/) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
If TCP 8080 times out from the LAN, how do you tell whether FortiGate dropped the connection or the DMZ service was down? I adapted the three-interface layout in #2271 into a small exercise with a Linux client, a FortiGate and a web server.
Save this as
topology.ymland runnetlab create. I checked the generated topology with netlab 26.11 and the containerlab provider.One detail matters with these custom subnets. When I specified only the endpoint addresses, the generated Linux routes covered the default lab pools and missed the other host. Setting
addressing.lanas above generated a route for10.231.0.0/16via10.231.31.1onclientand via10.231.32.1onweb. The FortiOS inventory maps management toport1, the client toport2and the web server toport3. For a live deployment, select your own FortiGate image and set the persistent UUID for your evaluation VM. FortiOS provider notesThe packet check
web, both serving the same test page. Fromweb, requesthttp://10.231.32.10/andhttp://10.231.32.10:8080/. Both should return the page.fw, add two logged policies fromport2toport3for the client and server. Allow HTTP in one and deny a custom TCP/8080 service in the other. Keep NAT off for this routed lab.client. In Log & Report → Forward Traffic, filter on the destination and compare the policy IDs, actions and byte counts.I ran the packet check on my separate Docker/KVM FortiOS 7.6.8 lab. The port 80 request returned the page and its session ended with
action=closeand bytes in both directions. The port 8080 request failed and the log named the explicit deny policy. The netlab check above covered configuration generation. I maintain the independent lab with the two listeners, example policies and traffic checks. FortiGate Lab TemplateAll reactions