Re: [LARTC] tc ip group

Linux Advanced Routing and Traffic Control

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

 



----- Original Message ----- 
From: "Ivan Groenewald" <ivan@xxxxxxxxxxxxxxxxxx>
To: "'Giannis Stoilis'" <giannis@xxxxxxxxxx>; "'Ivan Groenewald'"
<ivan@xxxxxxxxxxxxxxxxxx>
Cc: <lartc@xxxxxxxxxxxxxxx>
Sent: Παρασκευή, 20 Ιουνίου 2003 11:48 πμ
Subject: RE: [LARTC] tc ip group


> I have only used u32 in the past.
> On the LAN I still have to decide. Marking the packets with Iptables
> sounds like a good idea and is quite simple.
> How would I setup tc to match the marked packets (sorry I'm a bit lazy
> to rtfm today :-))

And I am too bored, to send you to hell... :-) So, this is an example:

iptables rules:

iptables -A FORWARD -t mangle -p tcp --sport 80 -j MARK --set-mark 2
iptables -A FORWARD -t mangle -p tcp --dport 80 -j MARK --set-mark 2
iptables -A FORWARD -t mangle -p icmp -j MARK --set-mark 2

tc filter rules:

tc filter add dev eth0 parent 1: protocol ip prio 1 handle 2 fw classid 1:12

- Giannis



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