Pls help: Limit total bandwidth and limit per IP



  • Hi! I am newbie here and also newbie in pfsense. I just want to ask if it posible to setup on floating rules a total bandwidth limit and limit per ip or pc.
    In other words The total bandwidth of 5 computers is 1024kbps at port 80 and the 5 computers is limited for 256kbps per pc on port 80.  if the 5 computers browse the web or download a files they could not exceed to the total bandwidth of 1024kbps at port 80. but every computer has a limit of 256kbps at port 80 but it depend the total bandwidth of 1024kbps on port 80. otherwise the squid proxy is no limit or should not affected by the limiter (No limit on squid proxy).

    it should look like this

    1024kbps port 80 total bandwidth limiter –--> 256kbps port 80 bandwidth per pc(5 PCs).

    here is my setup for limiter

    Name: totaldownload
    Bandwidth: 1024kbps
    Mask: none

    name: totalupload
    bandwidth: 1024kbps
    mask: none

    downloadperpc
    bandwidth: 256kbps
    mask: destination addresses

    uploadperpc
    bandwidth: 256kbps
    mask: destination addresses

    Here is my floating rules setup but not working

    For total bandwidth limit on port 80
    Action: Match
    Interface: wan/lan
    Direction: out
    Source: any
    Source port: any
    Destination: any
    Destination port: 80
    Gateway: 192.168.2.1
    In/Out: totalupload/totaldownload

    For bandwidth limit per pc on port 80
    Action: Match
    Quick: checked Apply the action immediately on match.
    Interface: wan/lan
    Direction: in
    Source: ClientPC (I setup it to allias)
    Source port: any
    Destination: any
    Destination port: 80
    Gateway: none
    In/Out: uploadperpc/downloadperpc

    my pfsense version 2.1.2
    squid 2.7.9

    the total bandwidth is working but the limit per pc is not working. and the squid proxy is working for no limit.
    when I change the destination port 80 to any at limit per pc. is working well, except the squid proxy, the squid proxy has a limit of 256kbps. I want the squid proxy has no limit.

    thanks in advance!! I hope you help me!! sorry for my english!!

    thanks and god bless!



  • just get idea of foxale08 in this thread https://forum.pfsense.org/index.php?topic=63531.0



  • @cheonne:

    just get idea of foxale08 in this thread https://forum.pfsense.org/index.php?topic=63531.0

    thanks this is informative, hope it will work too to pfsense 2.1.2, I hope it will equally share on each ip. how about no limit on squid proxy? thank you so much!!



  • @waldopulanco:

    @cheonne:

    just get idea of foxale08 in this thread https://forum.pfsense.org/index.php?topic=63531.0

    thanks this is informative, hope it will work too to pfsense 2.1.2, I hope it will equally share on each ip. how about no limit on squid proxy? thank you so much!!

    the howto of foxale08 is still working in 2.1 and higher versions (2.1.1,2.1.2,2.1.3)
    tested only in single dsl line
    with regards to squid, try to pud your limiter in floating rule or if you want in lan rule, make an external cache server



  • @cheonne:

    @waldopulanco:

    @cheonne:

    just get idea of foxale08 in this thread https://forum.pfsense.org/index.php?topic=63531.0

    thanks this is informative, hope it will work too to pfsense 2.1.2, I hope it will equally share on each ip. how about no limit on squid proxy? thank you so much!!

    the howto of foxale08 is still working in 2.1 and higher versions (2.1.1,2.1.2,2.1.3)
    tested only in single dsl line
    with regards to squid, try to pud your limiter in floating rule or if you want in lan rule, make an external cache server

    thanks about the bandwidth sharing, I try it but not working, I try to download a file and then I try to browse a website to other pc but the internet on other pc was slow to load a page.



  • @waldopulanco:

    @cheonne:

    @waldopulanco:

    @cheonne:

    just get idea of foxale08 in this thread https://forum.pfsense.org/index.php?topic=63531.0

    thanks this is informative, hope it will work too to pfsense 2.1.2, I hope it will equally share on each ip. how about no limit on squid proxy? thank you so much!!

    the howto of foxale08 is still working in 2.1 and higher versions (2.1.1,2.1.2,2.1.3)
    tested only in single dsl line
    with regards to squid, try to pud your limiter in floating rule or if you want in lan rule, make an external cache server

    thanks about the bandwidth sharing, I try it but not working, I try to download a file and then I try to browse a website to other pc but the internet on other pc was slow to load a page.

    do you have squid?
    if yes, then, use delay pools for extensions.



  • @cheonne:

    @waldopulanco:

    @cheonne:

    @waldopulanco:

    @cheonne:

    just get idea of foxale08 in this thread https://forum.pfsense.org/index.php?topic=63531.0

    thanks this is informative, hope it will work too to pfsense 2.1.2, I hope it will equally share on each ip. how about no limit on squid proxy? thank you so much!!

    the howto of foxale08 is still working in 2.1 and higher versions (2.1.1,2.1.2,2.1.3)
    tested only in single dsl line
    with regards to squid, try to pud your limiter in floating rule or if you want in lan rule, make an external cache server

    thanks about the bandwidth sharing, I try it but not working, I try to download a file and then I try to browse a website to other pc but the internet on other pc was slow to load a page.

    do you have squid?
    if yes, then, use delay pools for extensions.

    I have no idea about delay pools I am new in pfsense, if you don't mind can you guide me?..

    Also I have a problem to my pfsense. when I visit google.com it say "This webpage is not available" but when I manually put the squid proxy ip and port to my browse it works. how to solve this problem? I do not want to put a proxy on every browser.

    I am using squid 2.7.9 and the Transparent proxy was checked.
    pfsense version 2.1.3

    thanks in advance!!