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

    How to limit lan users bandwidth from Wan which do not effect squid cache ??

    Scheduled Pinned Locked Moved Traffic Shaping
    1 Posts 1 Posters 1.0k 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.
    • J
      jammes
      last edited by

      I wan to to limit lan users bandwidth like 512kbps , 1mbps whatever plan they want . But dont want to limit squid cache traffic.

      pfsense: 2.1.3 (i386)
      squid installed : 2.7.9 stable

      I made rule on LAN:

      INTERFACE:LAN
      PROTOCOL:TCP/UDP
      SOURCE:512KB(ALIAS) [192.168.1.1–-192.168.1.10]
      PORT:ANY
      DESTINATION:ANY
      PORT:ANY
      IN/OUT: 128KB_UP/512KB_DOWN

      **This rule applies limit on lan users but it also limits squid cache traffic .

      then after googling i found i have to limit internet traffic on Wan interface. Then i made rule on wan:**

      Interface : WAN
      PROTOCOL:TCP/UDP
      SOURCE:any
      PORT:ANY
      DESTINATION:512KB(ALIAS) [192.168.1.1–-192.168.1.10]
      PORT:ANY
      IN/OUT: 512KB_DOWN/128KB_UP

      No limit applies on either lan or Wan… Then I made floating rule on wan with direction set as OUT :

      Action:Pass
      Quick:checked
      Interface : WAN SELECTED
      protocol: TCP/UDP
      Source :any
      port:any
      destination:512KB(ALIAS) [192.168.1.1–-192.168.1.10]
      port:any
      Gateway:wan_GW (x.x.x.x)
      IN/OUT: 512kb_down/128KB_up

      This rule also fails No limit applies on either Wan or Lan…
      Please correct me or guide me how to make perfect rules so that I can limit real internet traffic of lan users without affecting squid cache …

      Thanks !!

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