Skip to content

FT: [FortiGate] Support pass-through management#467

Open
KarelChanivecky wants to merge 6 commits into
srl-labs:masterfrom
KarelChanivecky:bf_fgt_default_routing
Open

FT: [FortiGate] Support pass-through management#467
KarelChanivecky wants to merge 6 commits into
srl-labs:masterfrom
KarelChanivecky:bf_fgt_default_routing

Conversation

@KarelChanivecky

@KarelChanivecky KarelChanivecky commented Jun 5, 2026

Copy link
Copy Markdown

Purpose

To support pass-through management interface

This PR is chained to #465

Fixes #466

Details

Set the correct static IP in the management interface (port1) when pass-through without DHCP is configured.
This mode is selected as default as it provides an easier way to have the default route be used for the actual lab work.

Additionally, update READMEs.

Testing

In a lab with topology such as:

FGT -> Router -> Server

Where the router is the default route for both the FGT and the Server

TEST: ssh into FGT
EXPECTED: FGT is reached. SSH connection completes
RESULT: As expected

TEST: ping Server from FGT
EXPECTED: Server is reached
RESULT: As expected

TEST: Ping FGT from server
EXPECTED: FGT is reached
RESULT: As expected

- Improve CLI state detection. Regex patterns were checked against
  source code ensuring compatibility from 7.0 and accross similar
  product families such as FortiProxy.
- Refactor bootstrap_spin into a table-based FSM.
- Add command queue mechanism.
- Handle credential change request.
- Handle hostname update.
- Add exits on error.
- Add state logging to help with debugging.
- All terminal output is logged. Not just unmatched output.
- Handle missing VM image.
- Better error message when fail to launch due to not meeting password
  policy

Tested on:
- FGT 8.0.0:0167 GA (Debug)
- FGT 7.6.6:3652 GA (Debug)
- FGT 7.4.12:2902 GA
- FGT 7.0.19:0696 GA
- FGT 6.4.16:2098 GA
- FPX 7.6.6:1628 GA
- FPX 7.4.13:0722 GA (Debug)
- FPX 7.2.16:0465 GA
- FPX 7.0.23:0222 GA
Non admin user terminal prompts are terminated with $ instead of #. Also, the build label in the prompt is limited to STS or Interim values.
kchaniveckyga and others added 3 commits June 25, 2026 16:32
Basic support is added by reading from the standard config file location
and writing to terminal. Added minimal config nesting detection to
prevent the VM from hanging waiting for config scope exit.
Added support  for static IP by configuring the VM management interface to use
the configured IP of the container.

Pass-through is now set as the default mode. This choice was made as the
behavior is more intuitive. The host-forwarded mode needs more configuration
to get proper default routes working.

Updated the README for fortigate

Added Fortinet/FortiGate to the list of NOS that set pass-through as default
@KarelChanivecky KarelChanivecky force-pushed the bf_fgt_default_routing branch from f204316 to d733363 Compare June 26, 2026 00:17
This resolves routing table conflicts with in case the lab needs default
routing.
@KarelChanivecky KarelChanivecky force-pushed the bf_fgt_default_routing branch from d733363 to dab9933 Compare June 26, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fortigate]: Default route to clab mgmt network collides with lab default route

1 participant