[LARTC] 2 Questions on filtering incoming stuff

Damion de Soto damion@snapgear.com
Tue, 18 May 2004 10:25:26 +1000


Hi Ed,
> First is: Can I prioritise my "drops" on incoming traffic when the link 
> is overloaded.  ie instead of just tail dropping, can I "prefer" to drop 
> certain classes of traffic?  If so, do I do this by setting up, say, a 
> HTB tree like on the incoming, but the only action at the leaf is to drop?
You can't set up a HTB or any classful qdiscs on incoming traffic, you can only 
create ingress policer filters.  You can setup different filters with different 
priorities, to try and drop one particular type of traffic moreso than others.

If you're using a linux gateway onto your lan, then you can use a HTB qdiscs
on the outgoing (lan) interface which would do a better job.

regards

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion@snapgear.com
SnapGear - A CyberGuard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---