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

    Updaterrd.sh

    Scheduled Pinned Locked Moved Development
    4 Posts 2 Posters 3.6k 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.
    • C
      coolgg
      last edited by

      $pfstats
      $pfnat
      $srcip
      $dstip

      they all use  /sbin/pfctl -ss, which results in high cpu when the states table grows big.
      so, why not output to a file and reuse the file?

      1 Reply Last reply Reply Quote 0
      • C
        coolgg
        last edited by

        forgot the version is 1.2-beta1
        after the default gateway changed, the ping destination ip test in updaterrd.sh doesnt change.

        1 Reply Last reply Reply Quote 0
        • C
          cmb
          last edited by

          @coolgg:

          after the default gateway changed, the ping destination ip test in updaterrd.sh doesnt change.

          Yeah I think I noticed the same on one of my installs just in the past couple days.

          @coolgg:

          $pfstats
          $pfnat
          $srcip
          $dstip

          they all use  /sbin/pfctl -ss, which results in high cpu when the states table grows big.
          so, why not output to a file and reuse the file?

          Does that make a major, measurable difference? If so, I'm sure patches would be welcome.

          1 Reply Last reply Reply Quote 0
          • C
            coolgg
            last edited by

            @cmb:

            Does that make a major, measurable difference? If so, I'm sure patches would be welcome.

            sbin/pfctl -ss on my machine lasts about 5 seconds with the states table about 60K, 4 times is about 20 seconds.
            reusing a file can reduces total time down to about 5 seconds.

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