Skip to main content
kkeane
New Member
Aug 2, 2013 12:06 AM UTC
Question

Can' t ping despite policy allowing all access

I' d appreciate some help troubleshooting a thorny issue where I can' t ping a server that is located behind a firewall, despite a policy that I believe would allow all access. The short of it is that I have a network with device identification, where identified devices are allowed (and able to) connect to the outside world. But I also want to allow inbound connections to the same network. This is what I can' t seem to get working. The long version: this takes place across a VPN between two Fortigates. Both Fortigates have multiple networks behind them, but I' ll just diagram the relevant ones here: Net1 ------> FG1 ------ IPSec VPN ------> FG2 ----------> Net2 ----------> Net3 Net1: 192.168.1.0/24 - gateway is 192.168.1.1 Net2: 192.168.17.0/28 - gateway is 192.168.17.1, with a device identification policy on this interface. Net3: 192.168.17.128/25 - gateway is 192.168.17.129, no device identification policy on this interface. I can ping from Net1 to servers in Net3, and also to 192.168.17.1 (the gateway address of Net2), but not to 192.168.17.5 on Net2. 192.168.17.5 can connect outbound, so I am reasonably sure this is not a routing problem. I am wondering if this might be because on Net2, I am using a device identity policy, even though that policy is further down in the list. I created the following policies on FG2 (in this order): Src Interface: VPN Src Address: all Dst Interface: Net2 Dst Address: all Services: all Action: allow (the counter in this rule, and the fortigate logs, shows that my pings are accepted, so it is probably the echo response that is somehow blocked). ... (unrelated policies for other interfaces) (Device Identity Policy for devices on Net2) Src Interface: Net2 Src Address: all Device: authorized servers (includes the one I am trying to ping) Destination address: all Services: all Action: allow (there are additional authentication rules, but the first one is already an allow-all rule).

    7 replies

    rwpatterson
    New Member
    Aug 2, 2013 2:23 AM UTC
    You do realize that NET3 is a subset of NET2... Also with identity based policies, any matching from-to pairs below will never get hit.
    Translate
    kkeane
    kkeaneAuthor
    New Member
    Aug 2, 2013 7:03 PM UTC
    Ah, thank you! I suspected as much. So basically, any network that has identity-based policies can' t also have regular policies? Ultimately, the question then becomes: how does one handle inbound connections with identity-based policies? Ultimately, the goal is to be able to set up an RDP session to one of the identified devices through the Fortigate.
    Translate
    emnoc
    New Member
    Aug 2, 2013 2:33 AM UTC
    what do you mean a subset? net2 and net3 are 2 unique subnets within the 192.168.17.0/24 block. Op, what does you diag debug flow for icmp packet generate at the left or right gateways?
    Translate
    rwpatterson
    New Member
    Aug 2, 2013 3:35 AM UTC
    You are right... I need to get to bed... All 4 of my eyes saw /24...
    Translate
    emnoc
    New Member
    Aug 2, 2013 3:51 AM UTC
    :) I had to go get my extra 2 eyes to be sure that I didn' t missed read anything.
    Translate
    emnoc
    New Member
    Aug 6, 2013 7:54 AM UTC
    I can' t speak enough for diag debug flow. It validates that packets are being sent, and actually matching against a firewall policy-id #. http://socpuppet.blogspot.com/2013/03/flow-diagnostic-fortigate.html
    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024