I am trying to follow the Traffic Shaping guide and do what I thought
would be simple traffic shaping.  I have a basic 3 interface setup and
would like to allocate bandwith to the VoIP device on the network.  In my
scenario eth2 is connected to internet, and eth1 is connected to zone
where VoIP is connected.

I am getting an illegal rate error although I believe I have entered the
rate using the correct syntax.  Can anyone see where I have made my error?

Thank You.

Here is the config and error in question:

shorewall version
3.2.1

Kernel
2.6.13.4 x86_64

grep TC_ENABLED /etc/shorewall/shorewall.conf
TC_ENABLED=Internal

grep CLEAR_TC /etc/shorewall/shorewall.conf
CLEAR_TC=Yes



tail /etc/shorewall/tcdevice
#INTERFACE      IN-BANDWITH     OUT-BANDWIDTH
eth2           16384kbit       1126kbits

tail /etc/shorewall/tcclasses
###############################################################################
#INTERFACE      MARK    RATE            CEIL    PRIORITY        OPTIONS
eth2           1       10kbit          50kbit  1               tcp-ack
eth2           2       180kbit         360kbit 2
eth2           3       16194kbit       full    3               default

tail /etc/shorewall/tcrules
###############################################################################
#MARK   SOURCE          DEST            PROTO   PORT(S)                
CLIENT  USER    TEST    LENGTH  TOS
#                                                                      
PORT(S)
1:F    0.0.0.0/0       0.0.0.0/0       icmp    echo-request
1:F    0.0.0.0/0       0.0.0.0/0       icmp    echo-reply
2:F    10.0.0.100      0.0.0.0/0       all


>From 'shorewall restart'
Setting up TC Rules...
   TC Rule 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-request  Added
   TC Rule 1:F 0.0.0.0/0 0.0.0.0/0 icmp echo-reply  Added
   TC Rule 2:F 10.0.0.100 0.0.0.0/0 all  Added
Setting up Traffic Control...
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
 default  minor id of class to which unclassified packets are sent {0}
 r2q      DRR quantums are computed as rate in Bps/r2q {10}
 debug    string of 16 numbers each 0-3 {0}

... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
                      [prio P] [slot S] [pslot PS]
                      [ceil R2] [cburst B2] [mtu MTU] [quantum Q]
 rate     rate allocated to this class (class can still borrow)
 burst    max bytes burst which can be accumulated during idle period
{computed}
 mpu      minimum packet size used in rate computations
 overhead per-packet size overhead used in rate computations
 ceil     definite upper class rate (no borrows) {rate}
 cburst   burst but for ceil {computed}
 mtu      max packet size we create rate map for {1600}
 prio     priority of leaf; lower are served first {0}
 quantum  how much bytes to serve from leaf at once {use r2q}

TC HTB version 3.3
   ERROR: Command "tc class add dev eth2 parent 1: classid 1:1 htb rate
1126kbits mtu 1500" Failed
Processing /etc/shorewall/stop ...
IP Forwarding Enabled
Processing /etc/shorewall/stopped ...
/sbin/shorewall: line 775: 22085 Terminated              $SHOREWALL_SHELL
${VARDIR}/.restart $debugging restart
-- 



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to