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

Limit bandwidth per IP

Scheduled Pinned Locked Moved Traffic Shaping
31 Posts 16 Posters 152.1k 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.
  • P
    podilarius
    last edited by Oct 7, 2012, 12:49 AM

    Then it would seem like you could limit traffic on wan with destination of port 80 and leave port 3128 on LAN without any limiters or just prioritization.

    1 Reply Last reply Reply Quote 0
    • N
      nydron
      last edited by Oct 7, 2012, 5:38 AM

      Thanks for the tip Podilarius. I actually tried that but it seems the limit I put on port 80 (http) on the WAN side was not taking an effect. I'll review my settings again to see if I missed something.

      1 Reply Last reply Reply Quote 0
      • A
        agismaniax
        last edited by Nov 22, 2012, 9:05 AM Nov 22, 2012, 7:36 AM

        @nydron:

        …

        I mean if the PC is downloading a file in the internet that is not yet in the proxy server, it will have a bandwidth limit during the download. But if the file being downloaded is already in the proxy server (already cached), the PC will be allowed to download the file from the proxy server at full speed without the bandwidth limit.

        ...

        I use transparant proxy and I want to do this also. Any sugestion?

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by Nov 22, 2012, 3:07 PM

          If you set the limits on the lan interface of your firewall the limit will be applied nonetheless the file is being served by the cache or remote side.

          1 Reply Last reply Reply Quote 0
          • A
            agismaniax
            last edited by Nov 23, 2012, 2:00 AM

            @ermal:

            If you set the limits on the lan interface of your firewall the limit will be applied nonetheless the file is being served by the cache or remote side.

            Right now, I have two limiters (Firewall > Traffic Shapper > Limiter):
            1. Name: In128
            Bandwidth: 128Kbps
            Mask: source address

            2. Name: Out128
            Bandwidth: 128Kbps
            Mask: destination address

            I have one LAN rule for that limiter (Firewall > Rules > LAN):
            Interface: LAN
            Proto: any
            Source: TEST (this is an alias for a group of IP that have limited bandwidth)
            Destination: any
            In/Out: In128/Out128

            Or should I add another rule in WAN? Could you give me one example?

            1 Reply Last reply Reply Quote 0
            • J
              joviscomp
              last edited by Jan 15, 2013, 7:14 AM

              Hi, is there a way to limit only for accessing the internet at not the cached files on squid? I use squid transparent enabled.thanks.

              1 Reply Last reply Reply Quote 0
              • K
                kyu
                last edited by Feb 6, 2013, 1:05 PM

                @ltech:

                Alternatively you could edit the LAN default allow out and add the In/Out option there and it would apply to every host on the LAN individually (each host individually limited to 500Kbps/500Kbps).

                I have created the limiter of 10Mbit out and 3Mbit in, followed the instruction as described and put the limiter in the LAN default rule. I tested with 3 PC simultaneously and the speed of each was 9Mbit/s, 8Mbit/s and 10Mbit/s. They were older PC so the speed probably was slower because of its CPU.

                Therefore I can attest that by putting the limiter in/out into the LAN default rule. It creates dummypipes for EACH of the IP, not collectively as a whole.

                1 Reply Last reply Reply Quote 0
                • K
                  kyu
                  last edited by Feb 8, 2013, 1:19 PM

                  Further more, I've been testing with different values and placing the limiters in the default LAN rules.

                  Sometimes, even after I've removed the option of limiter, the setting sticks! I've tried changing the limiter value to something higher (even though it's not being used) to no avail.

                  Finally I disabled it the limiter and the speed came back up. Odd problem.

                  1 Reply Last reply Reply Quote 0
                  • C
                    cheonne
                    last edited by Jul 17, 2013, 5:37 AM

                    @nydron:

                    Thanks for the tip Podilarius. I actually tried that but it seems the limit I put on port 80 (http) on the WAN side was not taking an effect. I'll review my settings again to see if I missed something.

                    try to create a rule in floating tab for http and https ports and set its limit in advance in/out

                    1 Reply Last reply Reply Quote 0
                    • I
                      ipfftw
                      last edited by Feb 3, 2015, 4:23 AM

                      As I find this whole direction thing confusing to figure out at first glance, I have made some screen shots of the settings that are currently working for me. I verified by going to speedof.me and testing before and after rule is applied.

                      The firewall rule is a FLOATING PASS rule, which i never used before but seems to work great. I had no other floating rules.

                      Please see attached screen shots and duplicate to rate limit one single local IP to 5mbps. Sorry I thought the instructions, while eventually working in some way were somewhat unclear. A picture as an example of working settings is far better imho.

                      SP32-20150202-201243.png
                      SP32-20150202-201251.png
                      SP32-20150202-201306.png
                      SP32-20150202-201312.png
                      SP32-20150202-201243.png_thumb
                      SP32-20150202-201251.png_thumb
                      SP32-20150202-201306.png_thumb
                      SP32-20150202-201312.png_thumb

                      G 1 Reply Last reply Jan 7, 2021, 2:54 PM Reply Quote 0
                      • C
                        comeback1106
                        last edited by Mar 3, 2015, 10:01 AM

                        I have same problem like this. This will limit traffic on this interface, not per client :(

                        1 Reply Last reply Reply Quote 0
                        • G
                          gstlouis @ipfftw
                          last edited by Jan 7, 2021, 2:54 PM

                          @ipfftw
                          this is old but is it still working for you? I do not see any screenshots, probably cause this is so old...

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            [[user:consent.lead]]
                            [[user:consent.not_received]]