TCNG syntax for ingress / policing questions

Linux Advanced Routing and Traffic Control

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

 



Hi all,

I have 2 questions regarding policing

1. What is the problem with policing as in most mesages I can find people say don't but I have not found a why?
2. I have the egress below working (numbers in example are bogus, I know). How do I add an ingress policy?

/* compile this file with tcc filename > limit.sh and run that file */
dev eth1
{
  egress
  {
      class ( <$myhost> ) if ip_dst == 172.31.0.2;
      class ( <$others> ) if 1 ;

  	htb ()
	{
          class ( rate 2048kbps, ceil 2048kbps )
          {
            $myhost = class ( rate  1024kbps,       ceil 1024kbps ) ;
            $others = class ( rate  10bps,          ceil 500kbps ) ;
      }
    }
  }
} 

Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@xxxxxxxxxx
web: www.askesis.nl 
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


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