I am trying to set up traffic shaping for incoming traffic by using the 
IFB to give SSH traffic priority. However, there seems to be no traffic 
going through the IFB.

The result of tc -s -d class show dev ifb0:
class htb 2:11 parent 2:1 leaf 11: prio 1 quantum 3825 rate 153000bit 
ceil 307000bit burst 1618b/8 mpu 0b overhead 0b cburst 1637b/8 mpu 0b 
overhead 0b level 0
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 84653 ctokens: 42684

class htb 2:1 root rate 512000bit ceil 512000bit burst 1664b/8 mpu 0b 
overhead 0b cburst 1664b/8 mpu 0b overhead 0b level 7
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 26000 ctokens: 26000

class htb 2:12 parent 2:1 leaf 12: prio 2 quantum 8950 rate 358000bit 
ceil 512000bit burst 1643b/8 mpu 0b overhead 0b cburst 1664b/8 mpu 0b 
overhead 0b level 0
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 36737 ctokens: 26000


My settings are as follows:
init:
qt modprobe ifb numifbs=1
qt ip link set ifb0 up

tcdevices:
#NUMBER:   IN-BANDWITH OUT-BANDWIDTH  OPTIONS  REDIRECTED
#INTERFACE                                     INTERFACES
1:eth2     -           256kbit        classify
2:ifb0     -           512kbit        -        eth2

tcclasses:
#INTERFACE:CLASS MARK RATE      CEIL      PRIORITY OPTIONS
1:11             -    3*full/10 6*full/10 1        tos-minimize-delay
1:12             -    7*full/10 full      2        default
2:11             -    3*full/10 6*full/10 1        tos-minimize-delay
2:12             -    7*full/10 full      2        default

tcfilter:
#INTERFACE: SOURCE     DEST       PROTO   DEST    SOURCE
#CLASS                                    PORT(S) PORT(S)
1:11        0.0.0.0/0  0.0.0.0/0  tcp     -       22   
2:11        0.0.0.0/0  0.0.0.0/0  tcp     22      

Are there anything I'm missing in the settings?

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to