Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FortiGate WebUI Tools > Full Config
Public preview
Comment for any tools you'd like to have added to WebUI Tools
Installation:
- Login to your FortiGate's WebUI
- Create a new bookmark in your web browser and copy the JavaScript code below into the URL field.
- Click the bookmark and enjoy to show the Tools extension
Result:
javascript:(async function(){let e=await fetch("/api/v2/monitor/system/config/backup?destination=file&scope=global"),o=await e.text();document.contains(document.getElementById("tools"))&&document.getElementById("tools").remove();let t=document.querySelector("nu-nav-entry"),n=document.createElement("li");n.setAttribute("id","tools");let l=document.getElementById("ng1-app").getElementsByTagName("div")[0];n.innerHTML='<p style="color:#000;background-color:goldenrod;margin:0;padding:4px 0 1px 5px;border-left:3px solid #ffd700"><f-icon class="ftnt-webhook icon-lg"></f-icon> Tools</p><p style="color:#000;background-color:#ffd700;margin:0;padding:6px 0 5px 35px;cursor:pointer">Full Config</p>',t.before(n),l.style.width="100%",l.innerHTML=`<div style="position:relative;overflow-y:auto"><pre style="padding:1em;margin:0;display:flex"><code style="width:100%">${o}</code></pre></div>`})();
Completed tasks:- Adding the Tools extension in the left menu bar
- Showing the full-configuration, scrollable
Next task
- Adding syntax highlighting to the full-configuration
- Making the full-configuration sections collapsible
- Making the full-configuration editable
- Adding search functionality to the full-configuration
- Adding a save function to the editor
Roadmap (planned):
- Health check incl. system diagnostics
Labels:
- Labels:
-
FortiGate
2301
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cool idea!! Didn't work for me though. I just get "false" as output.
EDIT: this works for me after changing browsers. Possibly a Firefox extension or setting blocking JS.
Cheers,
Graham
Graham
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It works excellently on FortiOS 7.0.9!
Thank you, Danny :)
