Re: useing mangle to mark packets

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

 



On Wed, May 25, 2005 at 09:12:47AM +0200, Sven Neukirchner wrote:
> iptables -t mangle -o $DEV -A POSTROUTING -p ICMP -j MARK --set-mark 1
> 
> Is there a way to check if the packets get marks?
> 
> I tryed following:
> 
> iptables  -A FORWARD   -p ICMP -m mark --mark 1 -j LOG --log-prefix 
> "mark " --log-level 6
> 
> But it doesnt work.

because mangle:POSTROUTING is traversed after filter:FORWARD.

> I want to set up traffice shaping using tc.
> So I need to mark packets so I can put them in order.

mark your packet in either mangle:PREROUTING or mangle:FORWARD.

-j

--
"Susan Sarandon: I'm Susan Sarandon. Most of you know me as Tim
 Robbins' mother, but actually I'm his wife!"
        --Family Guy


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux