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

    PROBLEM with captive portal and limite

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    40 Posts 3 Posters 15.7k 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.
    • R
      rojocesar
      last edited by

      I cannot download the last version of pfsense 2.0 alpha   :'( how long time i have to wait?  I want to use and prove captive portal with limiter  :'( :'( :'( :'( :'( :'( :'( :'(

      1 Reply Last reply Reply Quote 0
      • R
        rojocesar
        last edited by

        @ermal:

        You have to wait the snapshots are not that fast.
        Try a snapshot after at least 5+ hours :)

        Dear Ermal I wonder if the last snapshot is from July 26? or maybe i have wait a couple days  :-[

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by

          Can i have any feedback on this?

          1 Reply Last reply Reply Quote 0
          • R
            rojocesar
            last edited by

            I am so sorry i was travelling in place where there is not internet and i arrived yesterday and prove the last version pfsense 2.0 and see that there is a problem with limiter, doesnt work i dont know why? anybody help me or fix this problem???

            1 Reply Last reply Reply Quote 0
            • E
              eri--
              last edited by

              Provide output of commands:
              ipfw show
              ipfw table 3 list
              ipfw table 4 list
              ipfw table 1 list
              ipfw table 2 list
              ipfw pipe show
              ifconfig
              sysctl -a | grep pfil
              kldstat

              Related logs

              1 Reply Last reply Reply Quote 0
              • S
                stompro
                last edited by

                I'm using 2.0-ALPHA-ALPHA built on Sat Aug 22 01:39:53 UTC 2009 FreeBSD 7.2-RELEASE-p3 nanobsd.  The built in limiter setup with captive portal works just fine.  Set it up on the captive portal page and each client is limited to that amount of bandwidth.

                When I setup a set of limiters for lan and assign lan clients to it, it also works just fine.

                I guess I don't see the point of assigning a set of limiters to the captive portal port since the built in one does the same thing, and works.  Unless you only want certain traffic to go through the limiter.  rojocesar, is that what you are trying to do?
                Josh

                Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

                1 Reply Last reply Reply Quote 0
                • R
                  rojocesar
                  last edited by

                  Well i know it that captive portal has limiter per user but i want to use the limiter from Traffic Shaper why?? because i want to use rules in firewall, in the firewall i want to give rules for each port, for example limiter 600kbps only port 80 and port 443 (internet) and give rules limiter 200kbps all of them.
                  Hi Ermal.. here send your information
                  when now when i set up limiter and captive portal there is ping to my dns here send a picture but when i connect any webpage nothing here send other picture
                  i hope that all is ok  send you a hug from Peru and thanks for your words stompro
                  ….
                  more information.. I only set up limiter and doesn't work..

                  ![reply from my dns.JPG](/public/imported_attachments/1/reply from my dns.JPG)
                  ![reply from my dns.JPG_thumb](/public/imported_attachments/1/reply from my dns.JPG_thumb)
                  ![captive and limiter.JPG](/public/imported_attachments/1/captive and limiter.JPG)
                  ![captive and limiter.JPG_thumb](/public/imported_attachments/1/captive and limiter.JPG_thumb)
                  [$ ifconfig.txt](/public/imported_attachments/1/$ ifconfig.txt)
                  [$ ipfw pipe show.txt](/public/imported_attachments/1/$ ipfw pipe show.txt)
                  [$ ipfw show.txt](/public/imported_attachments/1/$ ipfw show.txt)
                  [$ ipfw table list.txt](/public/imported_attachments/1/$ ipfw table list.txt)
                  [$ kldstat.txt](/public/imported_attachments/1/$ kldstat.txt)
                  [$ sysctl -a l grep pfil.txt](/public/imported_attachments/1/$ sysctl -a l grep pfil.txt)

                  1 Reply Last reply Reply Quote 0
                  • S
                    stompro
                    last edited by

                    rojocesar,

                    I just want to be sure I know what you are trying to do.  Are you talking about per client limits or per pipe limits?

                    For port 80 and 443 you want 600kbps per client.
                    For the default allow you want 200kbps per client.

                    Let me know if you really mean to limit all clients to 600kbps.

                    I wonder if your port 80 rule is interfering with the captive portal redirection of port 80 traffic.  If you take out the rule for port 80, leave in the rule for port 443 and the default, do you have any luck?  Does https traffic get limited like you want?

                    Ermal, what order do ipfw and pf rules get evaluated?  Does it go through the ipfw rules first, and then the pf rules?
                    Josh

                    @rojocesar:

                    Well i know it that captive portal has limiter per user but i want to use the limiter from Traffic Shaper why?? because i want to use rules in firewall, in the firewall i want to give rules for each port, for example limiter 600kbps only port 80 and port 443 (internet) and give rules limiter 200kbps all of them.
                    Hi Ermal.. here send your information
                    when now when i set up limiter and captive portal there is ping to my dns here send a picture but when i connect any webpage nothing here send other picture
                    i hope that all is ok  send you a hug from Peru and thanks for your words stompro
                    ….
                    more information.. I only set up limiter and doesn't work..

                    Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

                    1 Reply Last reply Reply Quote 0
                    • R
                      rojocesar
                      last edited by

                      This is an example
                      For port 80 and 443 i want 400Kbps per client
                      For other ports i want 100Kpbs per client
                      But in firewall i can give more rules..

                      captive portal doesn't use port 80 it use port 8000.
                      The others version of PFSENSE 2.0 work fine (excellent)  8) , but i want to use captive portal, when i set captive portal up all doesn't work  >:( .
                      The pfsense is excellent but i need use captive portal and limiter i hope that Ermal can fixed all this problem  :'(

                      1 Reply Last reply Reply Quote 0
                      • S
                        stompro
                        last edited by

                        The captive portal rules automatically redirect port 80 connections to port 8000 or 8001 for clients that are not authenticated.  That is how the splash page works.

                        run "ipfw list" and look for this line.

                        01990 fwd 127.0.0.1,8000 tcp from any to any dst-port 80 in
                        
                        

                        That forwards all connections with a destination port of 80 coming in the CP interface to localhost port 8000.  So it does use port 80  :P
                        Josh

                        @rojocesar:

                        This is an example
                        For port 80 and 443 i want 400Kbps per client
                        For other ports i want 100Kpbs per client
                        But in firewall i can give more rules..

                        captive portal doesn't use port 80 it use port 8000.
                        The others version of PFSENSE 2.0 work fine (excellent)  8) , but i want to use captive portal, when i set captive portal up all doesn't work  >:( .
                        The pfsense is excellent but i need use captive portal and limiter i hope that Ermal can fixed all this problem  :'(

                        Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

                        1 Reply Last reply Reply Quote 0
                        • S
                          stompro
                          last edited by

                          I just setup a config just like you described.

                          Port 80 traffic limited to 100kbit per user.

                          All other traffic limited to 500kbit per user.

                          When I connect a client, the splash page comes up, I'm able to log in, and I can confirm that my port 80 traffic is being limited to 100kbit.

                          I'm using
                          2.0-ALPHA-ALPHA
                          built on Sat Aug 22 01:39:53 UTC 2009
                          FreeBSD 7.2-RELEASE-p3 Nanobsd.

                          Can you get it to work if you just limit all traffic to a certain speed.  I'm wondering if you can simplify your config until you get something that works, and then add in more complexity to try and figure out what element is causing the problem.

                          Josh

                          Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

                          1 Reply Last reply Reply Quote 0
                          • R
                            rojocesar
                            last edited by

                            all can simplify if captive portal and limiter works but at the momento only can use the limiter of captive portal…  :'( I hope that Ermal fixed all..

                            1 Reply Last reply Reply Quote 0
                            • R
                              rojocesar
                              last edited by

                              and what's happend with limiter and captive portal problems??? is it fixed???  :'(

                              1 Reply Last reply Reply Quote 0
                              • E
                                eri--
                                last edited by

                                not yet. Since i have had no time to it.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  rojocesar
                                  last edited by

                                  well i will wait it..    :) thanks for your answer…

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    eri--
                                    last edited by

                                    This works as expected on latest snapshot i tested.
                                    Not sure what you have done just be aware that on the firewall->rules of the interface you have CP active you have to allow the traffic to pass too!

                                    Otherwise as i already told it works quite well.

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      rojocesar
                                      last edited by

                                      THANKSSSSSSSSSSSSS SO MUCH.. all is right now..

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