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

    IPSec Status on Dashboard in 1.2.2 (And 1.2.3?) - Workaround/Patch

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.7k Views
    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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Someone mentioned on IRC that the Dashboard always shows IPSec tunnels as down on 1.2.2, and I suspect the same is true on 1.2.3 as well but neither of us had a 1.2.3 box running to check.

      Anyhow, the culprit is that setkey changed paths between versions, it used to be /sbin/setkey and now it is /usr/local/sbin/setkey

      If you change the path to setkey on line 3 of /usr/local/www/widgets/include/ipsec.inc, the Dashboard returns the proper status.

      
      *** /usr/local/www/widgets/include/ipsec.inc.orig       Sun Feb  8 21:03:14 2009
      --- /usr/local/www/widgets/include/ipsec.inc    Sun Feb  8 21:03:25 2009
      ***************
      *** 4,10 ****
      
        function get_ipsec_tunnel_sad() {
              /* query SAD */
      !       $fd = @popen("/sbin/setkey -D", "r");
              $sad = array();
              if ($fd) {
                      while (!feof($fd)) {
      --- 4,10 ----
      
        function get_ipsec_tunnel_sad() {
              /* query SAD */
      !       $fd = @popen("/usr/local/sbin/setkey -D", "r");
              $sad = array();
              if ($fd) {
                      while (!feof($fd)) {
      

      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
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.