Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2004 13:17:10 -0700
From:      Drew Tomlinson <drew@mykitchentable.net>
To:        synrat <synrat@wirewalk.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dummynet
Message-ID:  <4172D346.4070601@mykitchentable.net>
In-Reply-To: <416B29BC.6080108@wirewalk.org>
References:  <416B29BC.6080108@wirewalk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms000502010903020702010108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 10/11/2004 5:47 PM synrat wrote:

> Can someone tell me about a good way to troubleshoot pipes/queues or 
> point me in the rigtt direction. I'm trying to restrict outgoing ftp 
> traffic and create some pipes for VOIP. dummynet and pipe rules load 
> fine ( and are in the kernel ) but seem to have no effect. I did read 
> the manual pages 20 times over. I tried adding pipes before doing 
> "config bw" on them, but that didn't make any difference.
> thanx a lot in advance.

I have tried using DUMMYNET also and don't see any effect.  If you find 
an answer, please let me know.  It's my goal to give highest priority to 
ssh connection, next highest priority to the traffic originating on 
machine "bigdaddy" port 8080, and then all remaining traffic gets passed 
when there's nothing else going on.  I have DSL with a 128K uplink.  
Here is my rule set in case someone can find my error:

#       Flush before we define
        $fwcmd -f queue flush
        $fwcmd -f pipe flush

        $fwcmd pipe 1 config queue 128Kbyte
        $fwcmd queue 1 config pipe 1 weight 85 queue 8Kbyte
        $fwcmd queue 2 config pipe 1 weight 1 queue 112Kbyte
        $fwcmd queue 3 config pipe 1 weight 100 queue 8Kbyte

        $fwcmd add queue 1 ip from bigdaddy 8080 to any out via $oif
        $fwcmd add queue 3 ip from any 22 to any out via $oif
        $fwcmd add queue 2 ip from not bigdaddy not 8080 to any out via $oif
        $fwcmd add queue 2 ip from bigdaddy not 8080 to any out via $oif

And I have these options compiled into my kernel:

options IPFIREWALL
options DUMMYNET
options HZ=1000

Thanks,

Drew

-- 
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com


--------------ms000502010903020702010108
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIH+TCC
AlcwggHAoAMCAQICAw0RLjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwOTE4MTQ1MDAxWhcNMDUwOTE4MTQ1MDAx
WjBJMR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSYwJAYJKoZIhvcNAQkBFhdk
cmV3QG15a2l0Y2hlbnRhYmxlLm5ldDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwJS7
Je3OPtSkBf9B6ZrTC0vrxLNCV9WP3bHljygz2ZQtyr6TpV0j5E8ZMH9MSVxxySTXkeji/e5O
C77BJrcnBUxalMn5v+Ad5Ad7ho52XWyMvlFTJSHW3S1kriBpM/boRa8uQy4YScF9qIrqGi4L
VTf3xlsELK/ZfC7u84iZUd8CAwEAAaM0MDIwIgYDVR0RBBswGYEXZHJld0BteWtpdGNoZW50
YWJsZS5uZXQwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQFAAOBgQCT6LpTtvsZM047jNdX
CR51RKrjQgeu0XCngtVUhO3lOlKxvH2BOSd/CRQo6rXzCrTWFectUPQ60RCLiyA23tBF4sFG
ThcWduFqyK8h4uBZHzuHQY9GfA6b8ndeagYGBrK7HQd/3Lf6mRxprt0wtrWXln6tdb5WTgqh
ezOqHTCZ7zCCAlcwggHAoAMCAQICAw0RLjANBgkqhki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EwHAYJKoZIhvcNAQkFMQ8X
DTA0MTAxNzIwMTcxMFowIwYJKoZIhvcNAQkEMRYEFF6I6/PfVHmcEWWYB29oMc5X7kQwMFIG
CSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMC
AgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMHgGCSsGAQQBgjcQBDFrMGkwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAgMNES4wegYLKoZIhvcNAQkQ
Agsxa6BpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5
KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQID
DREuMA0GCSqGSIb3DQEBAQUABIGAHKmS31PHv4l6mfE/R4yqUhmkEsSTzl03vgX/Cz9NCzDd
2lJrUCPjpTUfYXGeA0oEyi2+jXW5BMhohl1HpG1CnsD0QbvpnKauDfwx37KxJxmmWA8RFVi5
rXjP2CO0rHItMhCxB/JjBee9u8fkvTCxAKV1zLiJ5UkVrHgRdksfkxcAAAAAAAA=
--------------ms000502010903020702010108--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4172D346.4070601>