seem to have problems with my squeezebox rebuffering & stuttering when playing music. I have homed the problem to my firewall (shorewall) especially its packet shaper. When the packet shaper is disabled, but the firewall running everything is fine. When i enable the internal packet shaper my music starts stuttering and the player keeps rebuffering. I have created a TC class for the player giving it full bandwidth and minimizing delay but it does not seem to work.Let me know what i''m missing. Here are my relevant rules and attached a dump of shorewall config: #Squeezebox ACCEPT net:10.0.0.0/24 $FW tcp 9000 ACCEPT net:10.0.0.0/24 $FW tcp 3483 ACCEPT net:10.0.0.0/24 $FW udp 3483 I''m using Gentoo 2.6.21 and slimserver v6.5.3, Shorewall 3.4.3. Eric ____________________________________________________________________________________ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Edwin Koome wrote:> seem to have problems with my squeezebox rebuffering & > stuttering when playing music. I have homed the > problem to my firewall (shorewall) especially its > packet shaper. > > When the packet shaper is disabled, but the firewall > running everything is fine. When i enable the internal > packet shaper my music starts stuttering and the > player keeps rebuffering. > > I have created a TC class for the player giving it > full bandwidth and minimizing delay but it does not > seem to work.Let me know what i''m missing. > > > Here are my relevant rules and attached a dump of > shorewall config: > > #Squeezebox > ACCEPT net:10.0.0.0/24 $FW tcp 9000 > ACCEPT net:10.0.0.0/24 $FW tcp 3483 > ACCEPT net:10.0.0.0/24 $FW udp 3483 >I''m lost. 1) The rules above are for net->fw. 2) Traffic shaping on the ''net'' interface shapes traffic from fw->net. So which direction is the music going? fw->net or net->fw. I can''t tell from your tcrules since none of them refer to any of the above ports except for this one: 6744 1333K MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 9000 MARK set 0x1 which is going in the opposite direction from the ACCEPT rule above. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
My music server is running on the firewall (shorewall, single interface, NATed) and therefore the connections are from net (local network-10.0.0.0/24) to firewall. Slimserver is running on http port 9000 where squeezebox connects. Since i use the connection for other things including bittorrent, i had a need to shape the traffic. The problem is even when the link is idle, the shaper seems to affect my player (constant rebuffering and music connection drops). With TC disabled, the other aspects of the firewall are great and don''t affect my music.The other ports don''t stream music (control ports) and adding them as priority 1 on the shaper does not help either. I have provided the relevant TCclass and TCrules: eth0 1 full full 1 tcp-ack,tos-maximize-throughput,tos-minimize-delay Tcrule 1:T 0.0.0.0/0 0.0.0.0/0 tcp 9000 My default policy from $FW to NET is ACCEPT and therefore a separate rule in the opposite direction is uneccesary. Hope this helps. --- Tom Eastep <teastep@shorewall.net> wrote:> Edwin Koome wrote: > > seem to have problems with my squeezebox > rebuffering & > > stuttering when playing music. I have homed the > > problem to my firewall (shorewall) especially its > > packet shaper. > > > > When the packet shaper is disabled, but the > firewall > > running everything is fine. When i enable the > internal > > packet shaper my music starts stuttering and the > > player keeps rebuffering. > > > > I have created a TC class for the player giving it > > full bandwidth and minimizing delay but it does > not > > seem to work.Let me know what i''m missing. > > > > > > Here are my relevant rules and attached a dump of > > shorewall config: > > > > #Squeezebox > > ACCEPT net:10.0.0.0/24 $FW tcp 9000 > > ACCEPT net:10.0.0.0/24 $FW tcp 3483 > > ACCEPT net:10.0.0.0/24 $FW udp 3483 > > > > I''m lost. > > 1) The rules above are for net->fw. > 2) Traffic shaping on the ''net'' interface shapes > traffic from fw->net. > > So which direction is the music going? fw->net or > net->fw. > > I can''t tell from your tcrules since none of them > refer to any of the > above ports except for this one: > > 6744 1333K MARK tcp -- * * > 0.0.0.0/0 > 0.0.0.0/0 multiport dports 9000 MARK set > 0x1 > > which is going in the opposite direction from the > ACCEPT rule above. > > -Tom > -- > Tom Eastep \ Nothing is foolproof to a > sufficiently talented fool > Shoreline, \ http://shorewall.net > Washington USA \ teastep@shorewall.net > PGP Public Key \ > https://lists.shorewall.net/teastep.pgp.key > > >-------------------------------------------------------------------------> This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using > AJAX and a browser. > Download your FREE copy of Splunk now >>http://get.splunk.com/> _______________________________________________> Shorewall-users mailing list > Shorewall-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/shorewall-users>____________________________________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
On Sat, 2007-08-18 at 04:04 -0700, Edwin Koome wrote:> My music server is running on the firewall (shorewall, > single interface, NATed) and therefore the connections > are from net (local network-10.0.0.0/24) to firewall. > Slimserver is running on http port 9000 where > squeezebox connects. > > Since i use the connection for other things including > bittorrent, i had a need to shape the traffic. The > problem is even when the link is idle, the shaper > seems to affect my player (constant rebuffering and > music connection drops). > > With TC disabled, the other aspects of the firewall > are great and don''t affect my music.The other ports > don''t stream music (control ports) and adding them as > priority 1 on the shaper does not help either. > > I have provided the relevant TCclass and TCrules: > > eth0 1 full full 1 > tcp-ack,tos-maximize-throughput,tos-minimize-delay > > Tcrule > 1:T 0.0.0.0/0 0.0.0.0/0 tcp 9000 > > My default policy from $FW to NET is ACCEPT and > therefore a separate rule in the opposite direction is > uneccesary. > > Hope this helps.Ask a simple question and get a book.... Given the above description, I''m going to guess that the music is going from fw->net. I''m also going to suppose that the hosts that are pulling this music from the firewall server are on the local LAN -- is that correct? If I''m correct on both counts, then a) your ''full'' bandwidth of 250000 bits per second seems terribly small for streaming music. b) Guaranteeing the ''full'' bandwidth to one class means that HTB will over-schedule and exceed the ''full'' bandwidth anyway (the guarantees in the RATE column should add up to something less than or equal to ''full''). b) Your tcrule above is classifying traffic whose DESTINATION port is 9000 but traffic from the server (on the firewall) to the client hosts would have SOURCE port 9000. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/