Skip to main content
fortinet-davidy
New Member
February 12, 2023
Solved

Fortigate cannot ping outside

  • February 12, 2023
  • 2 replies
  • 3894 views

Hi Please see the below diagram. Fortigate-port3, PC-eth0 and router-Gi0/0 (default gateway 192.168.1.1 for fortigate1 and PC to access internet) are in the same vlan. 8.8.8.8 is located at Cloud Net. Now both Fortigate1 and PC can ping gateway 192.168.1.1. but Fortigate1 cannot ping 8.8.8.8 while PC can ping 8.8.8.8. Fortigate config also is listed as below. Did I miss some step?  Thanks

 

 

fortinetdavidy_0-1676176202436.png

 

FortiGate-VM64-KVM # show system interface

edit "port3"
set vdom "root"
set ip 192.168.1.221 255.255.255.0
set allowaccess ping https ssh http
set type physical
set snmp-index 3
next

FortiGate-VM64-KVM # sh router policy
config router policy
edit 1
set input-device "port1"
set dst "0.0.0.0/0.0.0.0"
set gateway 192.168.1.1
set output-device "port3"
next
end

Best answer by tthrilok

Hi Davidy,

 

Thank you for the query!

 

As per firewall configuration shared by you, you have configured a policy route on the firewall which is for the transit traffic. Ping which you initiate from the firewall is a self generated traffic, in order for the self generated traffic to route properly on the firewall we would need a route in the routing-table which can be static or dynamic. 

 

Could you try the below commands and test:
config router static
edit 1
set gateway 192.168.1.1
set device "port3"
next

Above commands add a static default route on the firewall.

2 replies

tthrilok
Staff
tthrilokAnswer
Staff
February 12, 2023

Hi Davidy,

 

Thank you for the query!

 

As per firewall configuration shared by you, you have configured a policy route on the firewall which is for the transit traffic. Ping which you initiate from the firewall is a self generated traffic, in order for the self generated traffic to route properly on the firewall we would need a route in the routing-table which can be static or dynamic. 

 

Could you try the below commands and test:
config router static
edit 1
set gateway 192.168.1.1
set device "port3"
next

Above commands add a static default route on the firewall.

fortinet-davidy
New Member
February 12, 2023

Right, thank you very much!

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!