I must have been dreaming about a post here, sorry. Here was the situation.
I've been testing dialup IPSec with our FAC for 2FA for about a week. Last Friday I was suddenly unable to reconnect after I came back to my MacAir running FortiClient 5.4. I was on vacation so this was a problem. I thought perhaps was a MacOS issue so I rebooted to no avail. We still have a legacy PPTP connection, so I VPN'd in to that. I thought, I must have some type of hung connection and tried to login to the FG GUI, no luck. Login hung with no response. Starting to get worried. I try to open a SSH session using Putty, no response. I then RDP'd into a laptop I keep connected to the FG serial port and I see the following messages repeating every few seconds. I leave a Putty Serial session open to act as a console log.
unregister_netdevice: waiting for IPSec NAT_6 to become free. Usage count = 2 unregister_netdevice: waiting for IPSec NAT_3 to become free. Usage count = 4 unregister_netdevice: waiting for IPSec NAT_1 to become free. Usage count = 18 unregister_netdevice: waiting for IPSec NAT_6 to become free. Usage count = 2 unregister_netdevice: waiting for IPSec NAT_3 to become free. Usage count = 4 unregister_netdevice: waiting for IPSec NAT_1 to become free. Usage count = 18
Attempting to login via the serial console also does not work. We have internal AD DNS, but all of a sudden DNS starts acting erratic because the firewall is slowly losing its mind.
Since 6/12 (when something changed FORTINET!!!) I've been fighting 5.4 bugs. We had it running for three months before that without issue. As a result of having two situations where the firewall locked up and I was not able to be onsite, I purchased a remote power reset.
http://3gstore.com/product/6081_2_outlet_ip_switch.html
Best $100 I've ever spent. We have a backup connection so I connected the remote switch to it (I'm not brave enough to use the auto-reboot feature of this switch
). THIS TIME I was able to simply login to the switch from my iPhone and power cycle the Fortigate. Everything came back up fine.
I started searching the error and I came across this article:
https://forum.fortinet.com/tm.aspx?m=132310
So I modified the IPSec Policy rule as mentioned (disabled npu offload) and I have not had a problem since, with the result being that I'm losing the benefit of NPU efficiency.
The other problem we had started occurring on 6/12. I'm guessing that something was updated by Fortinet as all of a sudden the firewall would enter conserve mode after a massive CPU/Mem spike. Temporary solution was to enabled auto-restart at 03:45 each day which mostly alleviated the problem. Final solution was to disable the option to "inspect all ports" for the SSL/SSH Deep Inspection Scanning profile. Leaving the "inspect all ports" option enabled causes the proxyworker process to crash repeatedly. Crashlog indicates we have not had the problem since we did that.
I want to move to 5.4.1 but might wait for 5.4.2. Hopefully it won't take six months to see that release!!!