<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://vwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Troubleshooting_%28Fortigate%29</id>
	<title>Troubleshooting (Fortigate) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://vwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Troubleshooting_%28Fortigate%29"/>
	<link rel="alternate" type="text/html" href="http://vwiki.co.uk/index.php?title=Troubleshooting_(Fortigate)&amp;action=history"/>
	<updated>2026-06-03T18:36:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://vwiki.co.uk/index.php?title=Troubleshooting_(Fortigate)&amp;diff=2706&amp;oldid=prev</id>
		<title>Sstrutt: /* Change Priority */ typo</title>
		<link rel="alternate" type="text/html" href="http://vwiki.co.uk/index.php?title=Troubleshooting_(Fortigate)&amp;diff=2706&amp;oldid=prev"/>
		<updated>2018-12-19T12:44:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Change Priority: &lt;/span&gt; typo&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:44, 19 December 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l102&quot;&gt;Line 102:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You need to override on both master and slave firewalls...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You need to override on both master and slave firewalls...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;CDS-&lt;/del&gt;PROD-FW01 # config system ha&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;PROD-FW01 # config system ha&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;CDS-&lt;/del&gt;PROD-FW01 (ha) # set override enable&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;PROD-FW01 (ha) # set override enable&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;CDS-&lt;/del&gt;PROD-FW01 (ha) # end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;PROD-FW01 (ha) # end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sstrutt</name></author>
	</entry>
	<entry>
		<id>http://vwiki.co.uk/index.php?title=Troubleshooting_(Fortigate)&amp;diff=2705&amp;oldid=prev</id>
		<title>Sstrutt: Initial creation</title>
		<link rel="alternate" type="text/html" href="http://vwiki.co.uk/index.php?title=Troubleshooting_(Fortigate)&amp;diff=2705&amp;oldid=prev"/>
		<updated>2018-12-19T12:44:27Z</updated>

		<summary type="html">&lt;p&gt;Initial creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Basic Commands ==&lt;br /&gt;
=== Ping / Trace Route ===&lt;br /&gt;
 execute ping 10.10.1.10&lt;br /&gt;
 execute traceroute 10.52.56.20&lt;br /&gt;
&lt;br /&gt;
=== Shutdown / Restart ===&lt;br /&gt;
 execute shutdown&lt;br /&gt;
 execute reboot&lt;br /&gt;
&lt;br /&gt;
=== Process Management ===&lt;br /&gt;
* Show top processes, refresh every 2 secs&lt;br /&gt;
** &amp;lt;code&amp;gt; diagnose sys top 2 &amp;lt;/code&amp;gt;&lt;br /&gt;
* Kill a process&lt;br /&gt;
** &amp;lt;code&amp;gt; diagnose sys kill 9 &amp;lt;PID&amp;gt; &amp;lt;/code&amp;gt;&lt;br /&gt;
** Most processes will restart, but use with caution!&lt;br /&gt;
** &amp;lt;code&amp;gt; diagnose sys kill 11 &amp;lt;PID&amp;gt; &amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;kill 11&amp;lt;/code&amp;gt; supposedly restarts a process&lt;br /&gt;
&lt;br /&gt;
Killing off processes can cause unexpected results, so only perform if service through the firewall is being impacted (you may drop all existing connections through the firewall, or cause all IPsec tunnels to drop, if the process you are killing is responsible for those functions, for example).  Its common for other processes to briefly show high CPU after you&amp;#039;ve killed a CPU hogging process, give it 30 secs or so to calm down.&lt;br /&gt;
&lt;br /&gt;
Some discussion groups mention an issue when killing off &amp;lt;code&amp;gt;cmdbsvr&amp;lt;/code&amp;gt; as it manages the config, and killing caused config corruption.  It can be killed off, but may cause the loss/corruption of any recently edited config.&lt;br /&gt;
&lt;br /&gt;
== VPN ==&lt;br /&gt;
=== IPsec (Site 2  Site) ===&lt;br /&gt;
Show status of a tunnel, using Phase 1 name, &amp;lt;code&amp;gt;sa=0&amp;lt;/code&amp;gt; means no security associations, ie no connection&lt;br /&gt;
 diagnose vpn tunnel list name P1-NAME&lt;br /&gt;
&lt;br /&gt;
Bring a phase 2 up or down&lt;br /&gt;
 diag vpn tunnel up P2-NAME P1-NAME&lt;br /&gt;
 diag vpn tunnel down P2-NAME P1-NAME&lt;br /&gt;
&lt;br /&gt;
Note that the below only debugs Phase 2 problems&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
diag debug reset&lt;br /&gt;
diagnose vpn ike log-filter name VPN-NAME&lt;br /&gt;
diagnose debug enable&lt;br /&gt;
diagnose debug application ike -1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;diagnose vpn ike log-filter name VPN-NAME&amp;lt;/code&amp;gt; line is optional, but if there&amp;#039;s more than one VPN in operation the screen will be filled with output.  You need a quick copy and paste into notepad when there&amp;#039;s something interesting whizzing up the screen! Replace &amp;lt;code&amp;gt;VPN-NAME&amp;lt;/code&amp;gt; with the name of the Phase 1.&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;code&amp;gt;diag debug reset&amp;lt;/code&amp;gt; once complete&lt;br /&gt;
&lt;br /&gt;
=== SSL (User) ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
diag debug reset&lt;br /&gt;
diag debug enable&lt;br /&gt;
diag debug application fnbamd -1&lt;br /&gt;
diag debug appl sslvpn -1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;code&amp;gt;diag debug reset&amp;lt;/code&amp;gt; once complete&lt;br /&gt;
&lt;br /&gt;
== High Availability ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Command                                                  !! Action&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; show system ha &amp;lt;/code&amp;gt;                            || Show HA config&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; get system ha status &amp;lt;/code&amp;gt;                      || Show master/slave status&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; execute ha manage 1 &amp;lt;/code&amp;gt;                       || Change console to master/slave &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; diagnose sys ha dump-by all-vcluster &amp;lt;/code&amp;gt;      || Show HA cluster status&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; diagnose sys ha reset-uptime &amp;lt;/code&amp;gt;              || Reset HA uptime timer - causes failover to standby as that will have the higher uptime&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Console to Slave ===&lt;br /&gt;
Once SSH&amp;#039;ed to the master firewall, its possible to jump onto the slave (to run diag stats, reboot etc)&lt;br /&gt;
# &amp;lt;code&amp;gt; get system ha status &amp;lt;/code&amp;gt;&lt;br /&gt;
#* Gives output as shown below&lt;br /&gt;
# &amp;lt;code&amp;gt; execute ha manage 0 &amp;lt;/code&amp;gt;&lt;br /&gt;
#* Normally 0 or 1, 0 in example below to switch to primary&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Model: 200&lt;br /&gt;
Mode: a-p&lt;br /&gt;
Group: 40&lt;br /&gt;
Debug: 0&lt;br /&gt;
ses_pickup: enable, ses_pickup_delay=disable&lt;br /&gt;
Master: 90 PROD-FW01    FG200C4151018656 1           &lt;br /&gt;
Slave : 50 PROD-FW02    FG200C4151018713 0           &amp;lt;-- ID to use in &amp;quot;execute ha manage&amp;quot;&lt;br /&gt;
number of vcluster: 1&lt;br /&gt;
vcluster 1: work 169.254.0.2&lt;br /&gt;
Master:0 FG200C4151018656&lt;br /&gt;
Slave :1 FG200C4151018713&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Change Heartbeat ports ===&lt;br /&gt;
This needs to be done on both firewalls!  The command sets the ports and their priorities.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
config system ha&lt;br /&gt;
set hbdev &amp;quot;port1&amp;quot; 50 &amp;quot;port2&amp;quot; 60&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Change Priority ===&lt;br /&gt;
By default a FortiGate only fails over during a problem, but you can override so that the higher priority is always active.  Therefore you can force fail-overs&lt;br /&gt;
&lt;br /&gt;
You need to override on both master and slave firewalls...&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CDS-PROD-FW01 # config system ha&lt;br /&gt;
CDS-PROD-FW01 (ha) # set override enable&lt;br /&gt;
CDS-PROD-FW01 (ha) # end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Check Master/Slave Config Replication ===&lt;br /&gt;
The configuration should replicate from the master to the slave, to ensure this is running correctly, run the following command and ensure the checksum&amp;#039;s match between the units&lt;br /&gt;
 diagnose sys ha cluster-csum&lt;br /&gt;
&lt;br /&gt;
=== Force Failover ===&lt;br /&gt;
HA will put the unit with longest uptime live, therefore if you reset the timer on the master unit, it will failover to the standby&lt;br /&gt;
&lt;br /&gt;
 diagnose sys ha reset-uptime&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Fortigate]]&lt;/div&gt;</summary>
		<author><name>Sstrutt</name></author>
	</entry>
</feed>