Re: tc adding two filters with different protocols

Linux Advanced Routing and Traffic Control

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

 



On Fri, 2012-11-16 at 19:18 +0000, Andy Furniss wrote:
> >> Unfortunately, when you add lines "tc filter add dev eth2 protocol
> >> ppp_ses parent 1:0 prio 6 u32 ht 800:: match ip dst 31.41.209.0/24 at 24
> >> hashkey mask 0x000000ff at 24 link 4a:" protocol change to ip
> 
> 
> Maybe avoid using match ip dst 31.41.209.0/24 for ppp_ses and use u32 
> hex instead -
> 
> u32 match u32 1f29d100 ffffff00 at 24

I don't think it really helps in your scenario but I'll chip in anyway.
You can achieve multiple matches with one filter by doing the matching
in iptables, marking the packets with the same mark, and then filtering
on that mark.

Andy


--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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