Skip to main content
DirkDuesentrieb
New Member
May 15, 2020 10:05 AM UTC
Question

Need advanced VPN troubleshooting methods/ideas

Hello forum,

 

we have a box with many VPN tunnels, but one is giving me a headache.

I like to do a long term debugging, because FortiAnalizer has not the necessary details like dpd messages. My best method currently is to run a "screen" session with output logging and do "diagnose debug application ike -1" there.

But this ends after 30 minutes and has no timestamp.

 

Has anyone a good idea? Sending those debugs to a syslog server would be great.

 

Cheers,

Dirk

    2 replies

    TheJaeene
    New Member
    May 15, 2020 10:29 AM UTC

    Hi Dirk,

     

     

    My method is:

     

    putty with logging enabled

     

    Prolong Admin Session Timeout via GUI

     

    Prolong Debug time:

    diagnose debug duration 0

     

    Enable debug timestamp:

     

    diagnose debug console timestamp enable

     

    Filter Debug for the specific Peer´s Source (yes, filter is set as dst-addr  :(

     

    diagnose vpn ike log-filter dst-addr4 1.2.3.4

    diagnose vpn ike filter dst-addr4 1.2.3.4

     

     

    Regards,

     

    The jaene

     

     

    Translate
    DirkDuesentrieb
    New Member
    May 15, 2020 12:38 PM UTC

    Hello The jaene,

     

    "diagnose debug duration 0" is one thing I didn't know about, thank you for that.

    I got another hint that's solving the timestamp issue. "ts" from the moreutils package adds a configurable timestamp to an output line. Together with "tee" it works directly with ssh.

     

    ssh my-fortigate | tee >(ts > debug.log)

     

     

     

    Cheers,

    Dirk

     

     

    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