Description
This article describes a potential root cause of action as 'Accept: IP connection error in VIP policy logs.
Scope
FortiGate.
Solution
Assume the following scenario:
(Server: 172.31.132.15) ----DMZ FGT wan2 10.5.52.157------- Internet
Consider the server is hosting 172.31.132.15 behind the FortiGate using the VIP configuration.
When the FortiGate WAN2 is pinging IP 10.5.52.157, it will get DNAT to 172.31.132.15.
config firewall vip
edit "test"
set extip 10.5.52.157
set extintf "any"
set portforward enable
set mappedip "172.31.132.15"
set protocol icmp
next
end
config firewall policy
edit 3
set name "vip"
set srcintf "wan2"
set dstintf "dmz"
set srcaddr "all"
set dstaddr "test"
set action accept
set schedule "always"
set service "PING"
set logtraffic all
next
end
Forward traffic log for the destination 10.5.52.157 and service ping will shortlist all the traffic log of policy 3 in which action of the log shows 'Accept: IP connection error'.
diagnose debug reset
diagnose debug console timestamp enable
diagnose debug flow filter saddr 10.5.63.254
diagnose debug flow trace start 1000
diagnose debug enable
To stop debugging:
diagnose debug reset
diagnose debug disable
Troubleshooting tips:
Check whether FortiGate has learned the MAC address of the destination IP.
get system arp | grep -n "x.x.x.x"
If the mapped server is directly connected network, then replace 'x.x.x.x' with the server IP, and if the mapped server is connected via a static route, then replace 'x.x.x.x' with the next hop gateway IP.
If the ARP entry is not available in FortiGate, then isolate the issue with ARP communication.
Run the below sniffer command in the Putty session and ping IP 'x.x.x.x' from the FortiGate CLI.
PuTTY:
diagnose sniffer packet any "host x.x.x.x and arp" 4 0 l
Press Ctrl+C to stop it.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.