Results 1 to 4 of 4

Thread: Wondershaper in Post-Firewall

  1. #1
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299

    Question Wondershaper in Post-Firewall

    Hello,

    I want to run the wondershaper.

    Is this Code correct in post-firewall?
    Code:
    #!/bin/sh
    /sbin/wshaper start "$1" 1024 128
    My connection is: 1024 Downstream und 128 kbit/s upstream.

    highest priority should have voip.

    Can somebody help me?
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  2. #2
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by britnet
    Hello,

    I want to run the wondershaper.

    Is this Code correct in post-firewall?
    Code:
    #!/bin/sh
    /sbin/wshaper start "$1" 1024 128
    My connection is: 1024 Downstream und 128 kbit/s upstream.

    highest priority should have voip.

    Can somebody help me?
    The place is right, but I recommend lower bandwidth settings. I suggest 960 and 80. This because the up and downstream values are theoretical numbers and the wondershaper script needs realistic values. You can find your own personal best numbers by testing diffent speeds while up- and downloading heavilly and doing a ping stream (to a fast server) at the same time. When the ping numbers stay low the settings are fine. If you want VoIP to have priority you should put that protocol into the high priority queue. You need to edit the script for that.

    Note: Wondershaper is a script which can be customized completely and should be considered: an example. Furthermore: traffic shaping is a complex thing in Linux, you should read up into it.

    There's allready a topic on wondershaper here with lots of info: http://wl500g.info/showthread.php?t=...t=wondershaper
    Last edited by Styno; 03-03-2005 at 17:34.

  3. #3
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    Hello,

    i did the wondershaper in post-firewall.
    But i dont know if it runs.

    I teste the Status with
    Code:
    wshaper status eth1
    but there is no message.

    Does it run?
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    If you've executed the command in a telnet session you should get output like this (If it doesn't it's not running (at least not on the eth1 interface)):
    Code:
    #wshaper status eth1
    qdisc ingress ffff:
    statistics truncated
     qdisc sfq 30: quantum 1514b perturb 10sec
    statistics truncated
     qdisc sfq 20: quantum 1514b perturb 10sec
    statistics truncated
     qdisc sfq 10: quantum 1514b perturb 10sec
    statistics truncated
     qdisc htb 1: r2q 10 default 30 direct_packets_stat 24
    statistics truncated
     class htb 1:1 root rate 320Kbit ceil 320Kbit burst 6Kb cburst 2008b
     Sent 26373712 bytes 62944 pkts (dropped 0, overlimits 0)
     rate 40540bps 111pps
     lended: 24958 borrowed: 0 giants: 0
     tokens: 69731 ctokens: -12970
    
    class htb 1:10 parent 1:1 leaf 10: prio 1 rate 320Kbit ceil 320Kbit burst 6Kb cburst 2008b
     Sent 1694535 bytes 30560 pkts (dropped 0, overlimits 0)
     rate 2907bps 52pps
     lended: 30560 borrowed: 0 giants: 0
     tokens: 119044 ctokens: 36343
    
    class htb 1:20 parent 1:1 leaf 20: prio 2 rate 288Kbit ceil 288Kbit burst 6Kb cburst 1967b
     Sent 494414 bytes 4506 pkts (dropped 0, overlimits 0)
     rate 1122bps 17pps
     lended: 4506 borrowed: 0 giants: 0
     tokens: 135466 ctokens: 42666
    
    class htb 1:30 parent 1:1 leaf 30: prio 2 rate 32Kbit ceil 288Kbit burst 6Kb cburst 1967b
     Sent 25051594 bytes 27987 pkts (dropped 2872, overlimits 0)
     rate 36605bps 42pps backlog 109p
     lended: 2920 borrowed: 24958 giants: 0
     tokens: -168176 ctokens: -26227
    Did you save the flashfs filesystem after you've made changes to the post-firewall script (Check if the line which starts wshaper is in the script)?

    Perhaps you should echo the $1 parameter of the post-firewall script to a logfile in /temp to check which interface wshaper is started on.
    Last edited by Styno; 05-03-2005 at 12:49.

Similar Threads

  1. post-firewall port triggering
    By tomilius in forum WL-500g Q&A
    Replies: 4
    Last Post: 04-06-2008, 18:38
  2. Start own script in post-boot or post-firewall
    By m-h-l in forum WL-500g Q&A
    Replies: 2
    Last Post: 30-09-2005, 19:03
  3. post-firewall script is not being executed
    By Fama in forum WL-500g Q&A
    Replies: 6
    Last Post: 09-08-2005, 09:14
  4. When is post-firewall called?
    By barsju in forum WL-500g Q&A
    Replies: 1
    Last Post: 28-01-2005, 16:50
  5. Replies: 3
    Last Post: 24-12-2004, 19:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •