Skip to main content
SOD
New Member
Jul 24, 2017 1:04 PM UTC
Solved

Cannot exec ping from WAN interface

Hi,

I've got a strange problem with my Fortigate 800.

When I try to ping from the wan interface : FGT800-XX-XX $ execute ping-options source <WAN-IP>

                                                               FGT800-XX-XX $ execute ping 8.8.4.4

The ping doesn't work and I use diagnose debug flow trace to see where the icmp packet are going.

Here the result :

msg="enter IPsec tunnel-FGT-XXXX-XXXX" 2017-07-24 15:04:09 id=36871 trace_id=12559 func=ipsec_common_output4 line=595 msg="No matching IPsec selector, drop"

ICMP packet from wan interface are encapsuled in a VPN Tunnel instead of going to Internet directly.

 

I need this to configure Dead Gateway Detection option.

 

Thanks for help

 

    ede_pfau
    ede_pfauAnswer
    SuperUser
    Jul 25, 2017 2:03 PM UTC

    A premium example of the hidden pitfalls of policy based VPN. The address objects in the policy are used both for the QM selectors and the routing. Too bad you can't see that.

    Go with the golden advice and recreate the VPN in interface / route-based mode.

    12 replies

    rwpatterson
    New Member
    Jul 24, 2017 2:28 PM UTC

    Welcome to the forums.

     

    Try setting the PING options. Not sure of the exact syntax, but from a prompt type:

    ping-options ?

    will get you a list of those options. One is source IP address which is why I think your PING request is failing.

    SOD
    SODAuthor
    New Member
    Jul 24, 2017 3:05 PM UTC

    I've already set some options to see if the problem come from ping-options.

     

     execute ping-options source <ip-of-my-wan-interface>

     execute ping-options timeout 5

     execute ping-options  Validate Reply yes

     

    options available :

    FGT800-xx-01 $ execute ping-options view-settings Ping Options:         Repeat Count: 5         Data Size: 56         Timeout: 2         Interval: 1         TTL: 64         TOS: 0         DF bit: unset         Source Address: auto         Pattern:         Pattern Size in Bytes: 0         Validate Reply: no

    Regards

    oheigl
    New Member
    Jul 25, 2017 11:43 AM UTC

    Have you set up a policy-based VPN on the WAN interface?

    ipns
    New Member
    Jul 26, 2017 6:13 AM UTC

    Maybe you configured the tunnel to send all traffic through the VPN (remote address 0.0.0.0/0.0.0.0)?

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT