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

    Still having problems with shaping…

    Scheduled Pinned Locked Moved Traffic Shaping
    15 Posts 6 Posters 8.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.
    • S
      sullrich
      last edited by

      There was some queue fixes recently.  Now all traffic goes to correct queues.

      Upgrade to http://www.pfsense.com/~sullrich/RELENG_1_SNAPSHOT_03-10-2006/

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

        Hi again,
        I have now upgraded, rerun the wizard and added the necessary rules for my needs. This time it works better, my friends download (upload out from me) don't completely die, but still it slowly degrades to a low rate, it seams that it's almost working at first but then the P2P traffic again takes the overhand even now but it takes a longer time.

        I also noticed another strange thing, it may not have anything to do with this but it feels like it does. I am using a "active desktop" with 10 different news RSS feeds updating every 10th minute, when traffic shaping is enabled the updates fail more often then when it's turned off. It either times out (page can not be displayed) or I get a parse error. I have been using pfSense for almost a year and I remember that I had a similar problem before when using the traffic shaper. I stopped using the shaper due to other issues with it at the time and have not encounter the RSS problem since then, I awaited the Beta2 (and now the upgrade as well) but now the strange error it's back again when the shaper is enabled. I can mention that I use my own PHP script on my server on the LAN to parse the external RSS feeds. I have reflection ON, but have also tried with it off with the same result. I use my LAN web server IP address for the PHP script and a FQDN for the actual RSS feed.

        If you want my config, just let me know.

        If you can't find it, make it and share it!

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

          Hi again,
          I finally figured out why my shaping dos not work as I thought it would do.
          The fact is that the Bit Torrent application I'm using (and probably allot of other Bit Torrent applications as well) selects a random port for outgoing connections. This means that the "handshake" is made on the specified port but the actual data transfer is made on any port randomly selected. That is why my "outgoing" traffic gets jammed up when letting my Bit Torrent client use "all" bandwidth (with the intent to let the traffic shaper in pfSense handle the limitation. It actually don't shape the outgoing traffic because it goes on "random ports". :(

          So, the next question then becomes…
          Is there by any chance a possibility that you will add the application layer to the traffic shaper? 8) That would basically solve all the problems. But, of course create a tremendous amount of work for you guys... :/

          If you can't find it, make it and share it!

          1 Reply Last reply Reply Quote 0
          • L
            Leoandru
            last edited by

            Yeah there is layer 7 traffic shaping work going on for pfSense so you can look forward to that in the future.
            In the meantime what I can suggest as a work around is to prioritize the traffic for well know ports (VNC, WEB, SMTP, POP3, etc..)
            then create a low priority queue where everything else gets pushed into regardless of port number. Everything that is
            not explicitly tagged by the shaper goes to the default queue, so giving that (qWANdef) a lower priority should make
            other traffic smoother.

            1 Reply Last reply Reply Quote 0
            • B
              billm
              last edited by

              @Snille:

              Hi again,
              I finally figured out why my shaping dos not work as I thought it would do.
              The fact is that the Bit Torrent application I'm using (and probably allot of other Bit Torrent applications as well) selects a random port for outgoing connections. This means that the "handshake" is made on the specified port but the actual data transfer is made on any port randomly selected. That is why my "outgoing" traffic gets jammed up when letting my Bit Torrent client use "all" bandwidth (with the intent to let the traffic shaper in pfSense handle the limitation. It actually don't shape the outgoing traffic because it goes on "random ports". :(

              So, the next question then becomes…
              Is there by any chance a possibility that you will add the application layer to the traffic shaper? 8) That would basically solve all the problems. But, of course create a tremendous amount of work for you guys... :/

              At some point…maybe.  Here's an interesting hack I did to catch all P2P on my network.

              Run the wizard selecting options as usual (ensure that you select "common" items like HTTP even if you want them "default" - you'll see why in a minute)
              Modify both BitTorrent rules to any port
              Move both BitTorrent rules to the LAST rule in your ruleset

              The shaper is first match..by putting an "any" rule at the bottom you have just added a catch-all rule.  This will nail ALL your P2P along with ALL other traffic that doesn't have explicit rules for it.  Works like a champ (until some putz runs hit BT on port 80 - which does happen from time to time).

              --Bill

              pfSense core developer
              blog - http://www.ucsecurity.com/
              twitter - billmarquette

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

                As of the 04-02-2006 snapshot (todays) this option is now included on the p2p screen called p2pCatchAll.

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

                  Ah, nice! :)
                  Is this also included in the 04-03-2006 snapshot or should I wait with that one?

                  If you can't find it, make it and share it!

                  1 Reply Last reply Reply Quote 0
                  • H
                    hoba
                    last edited by

                    Yep, it's already included in this snapshot.

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

                      @Snille:

                      Ah, nice! :)
                      Is this also included in the 04-03-2006 snapshot or should I wait with that one?

                      As of the 04-02-2006 snapshot (todays) this option is now included on the p2p screen called p2pCatchAll.  (ps: could this post have been any more clear!?!?!?!)

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

                        Well, sorry, I am not native English….
                        For me it could also meant that it was included in (todays only) snapshot for test purposes. Because of the trouble we (I) have had. Sorry, I will try to shape up! :)

                        If you can't find it, make it and share it!

                        1 Reply Last reply Reply Quote 0
                        • B
                          billm
                          last edited by

                          @Snille:

                          Well, sorry, I am not native English….
                          For me it could also meant that it was included in (todays only) snapshot for test purposes. Because of the trouble we (I) have had. Sorry, I will try to shape up! :)

                          Heh…I love how dates get swapped :)  Is 04-03-2006 April 3rd or March 4th? :)  It's obvious to both Brits and Yanks...it's obvioulsy April 3rd to me duck..

                          --Bill

                          pfSense core developer
                          blog - http://www.ucsecurity.com/
                          twitter - billmarquette

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

                            Heh, I see the disconnect now.

                            Over here we go by MM-DD-YYYY.

                            1 Reply Last reply Reply Quote 0
                            • M
                              mOjO
                              last edited by

                              one question about the catch-all idea…

                              doesnt this screw with http traffic?

                              don't most browsers use a random high port to initiate data transfer of page contents...?
                              e.g.
                              myPC:52345 -> google.com:80  (matches QoS rule for http)
                              then remote server responds to the request on the port initiated with the actual page contents.
                              google.com:?? ->  myPC:52345  (matches catch-all rule and gets treated as P2P?)

                              so the QoS works only one way...?

                              probably other things besides http work in a similar way... i am no expert though so i'm hoping you will tell me i'm wrong and traffic will be recognized fine and shaped. of course, my choke point is the outgoing b/w not the incoming so i still added the catch-all rule.  but if i am right then perhaps i should only add the outgoing catch-all? err.. hmm.. now i think i confused myself.

                              1 Reply Last reply Reply Quote 0
                              • H
                                hoba
                                last edited by

                                That connection belongs to the same state and will be treated the same way  like the outgoing request.

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