Re: [LARTC] TCNG fw classifier question

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bauer@xxxxxxx [bauer@xxxxxxx] wrote:
>I think I must have the syntax wrong for using the firewall classifier
>in TCNG.  Can anyone offer any suggestions for what I am doing wrong.  
>Details below...

I am answering my own question here in hopes that anyone reading the 
archive might benefit.

Working syntax is below:

dev eth0 {
        htb (rate 128kbps, ceil 150kbps ) {
            $c1 = class {
                htb (rate 100kbps, ceil 120kbps ) {
                class if 1 {
                    sfq(perturb 10secs);
                }
                }
            };
            $c2 = class {
                htb (rate 50kbps, ceil 60kbps ) {
                class if 1 {
                    sfq(perturb 10secs);
                }
                }
            };
            fw {
                class $c1 on (1);
                class $c2 on (2);
            }
            }
}





[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux