Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    What is webUI polling to show status of tunnels?

    IPsec
    2
    2
    531
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Amora
      last edited by

      I've been searching for a way to get the status of ipsec tunnels via commandline for purpose of monitoring via net-snmp scripting.

      What is pfsense calling when the webui is saying x number of tunnels online?

      Is is constantly poling logs? I can't seem to find and racoon commands that outputs the status of your tunnels.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It's checking the output of setkey -D and setkey -DP and correlating the output with the defined tunnels. Check /etc/inc/ipsec.inc and look at the Phase 1 and Phase 2 status code.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post