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

    Discrepancy in online leases report - "Status->IPsec->Leases" page

    Scheduled Pinned Locked Moved IPsec
    2 Posts 2 Posters 33 Views 2 Watching
    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.
    • G Offline
      geovaneg
      last edited by

      Hi,

      Sorry, after several unsuccessful attempts to prevent the post from being classified as SPAM, it was necessary to put the text in the attached file.
      post.txt

      Thanks,

      Geovane

      chpalmerC 1 Reply Last reply Reply Quote 2
      • chpalmerC Offline
        chpalmer @geovaneg
        last edited by

        Ill give it a try- From post.txt above..

        Hi,

        PfSense Plataform: CE 2.8.0 and 2.8.1

        The generated list by the Status/IPsec/Leases page appears to be including clients with null IP addresses in the calculation of online clients (command line output below), when only those with real assigned IP addresses are listed on the page.
        This leads to a very large discrepancy between the clients considered online and all established IKE SAs, output of the command
        swanctl --list-sas | grep ESTABLISHED | wc -l
        If the null IPs listed as online are excluded from the listing, the listing will be consistent with the list shown on the page, more realistic and practically identical to that of the established IKE Security Associations (SAs).

        swanctl --list-pools --leases | more
        (null) online 'gustav'
        (null) online 'gustav'
        192.168.100.226 online 'johnk'

        Comparison:

        Status/IPsec/Leases page output: 200 leases on line

        swanctl --list-pools --leases | grep online | wc -l
        200
        swanctl --list-pools --leases | grep online | grep -v null | wc -l
        119
        swanctl --list-sas | grep ESTABLISHED | wc -l
        121

        Thanks,

        Geovane

        Triggering snowflakes one by one..
        Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.