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

    Bandwidthd PF2.0 Filter

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 1.5k 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.
    • A
      Alan87i
      last edited by

      I'm trying to get Bandwidthd In PF 2.0 to NOT count local traffic Between the LAN and the OPT1 interface.
      I'm using this expression in the filter
      "ip and not ((src net 192.168.0.0/24) and (dst net 192.168.0.0/24))"

      So far it does not work. Http traffic is all counted when lan users connect too a server running HFS http://www.rejetto.com/hfs/
      If some one transfers a file through windows networking it counts the traffic as TCP just the same.
      I've searched and come up empty.
      What I need is a filter to ignore all traffic that goes in and out of (em0) to the Lan Or All traffic in the 192.160.x.x subnets.
      Thanks
      Allan

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        @Alan87i:

        I'm trying to get Bandwidthd In PF 2.0 to NOT count local traffic Between the LAN and the OPT1 interface.
        I'm using this expression in the filter
        "ip and not ((src net 192.168.0.0/24) and (dst net 192.168.0.0/24))"

        So far it does not work.

        I'm not familiar with the details of filters in bandwidthd but wouldn't you want src net and dst net to be different nets? I would read such a filter as saying "traffic that isn't src net TO src net"

        1 Reply Last reply Reply Quote 0
        • A
          Alan87i
          last edited by

          I'm not sure at all, Don't seem to have the smarts to figure out filters!!
          Tried this one below just a while ago and it seems to filter out HTTP traffic but still counts file transfers in windows networking as TCP traffic.

          "not((src net 192.168.1) and (dst net 192.168.1))"

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