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

    NDP Table page is really slow

    Scheduled Pinned Locked Moved IPv6
    2 Posts 2 Posters 324 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.
    • S
      syn4ck
      last edited by

      The NDP table from diagnostics menu is really slow when there is lots of local link entries.

      The ndp_diag.php script get the list of addresses via the "ndp -na" command, then tries to obtain the corresponding host name by querying the DNS for each entry.

      For local link entries, the ipv6 address returned by ndp is in the form of "fe80::aaaa:bbbb:cccc:dddd%ifname".
      This result is passed as is to DNS, which cannot resolve it, but wastes time.

      A simple solution is to not try dns resolution for these addresses.
      For testing, i'd replace :

      if ($dnsavailable) {
      

      by

      if ($dnsavailable && ! str_starts_with($entry['ipv6'], "fe80::")) {
      

      On my system, with around fifty links, the page load time went from 20s to 680ms.

      Could you fix this problem please?

      NogBadTheBadN 1 Reply Last reply Reply Quote 1
      • NogBadTheBadN
        NogBadTheBad @syn4ck
        last edited by

        @syn4ck https://redmine.pfsense.org/

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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