Re: Problem with marking packets...

Linux Advanced Routing and Traffic Control

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

 



Can I use u32 or route filter to throw in to class packets which are going to some interface(eth0 or eth1)?

This is my route rules...
ip route add 83.17.20.10/29 dev eth0 table dsl1
ip route add default via 83.17.20.12 dev eth0 table dsl1

ip route add 80.53.64.128/29 dev eth1 table dsl2
ip route add default via 80.53.64.130/29 dev eth1 table dsl2

ip rule add fwmark 0x01 table dsl1
ip rule add fwmark 0x02 table dsl2

iptables -t mangle -A PREROUTING -i eth3 -p tcp -sport 80 -j MARK 0x01
iptables -t mangle -A PREROUTING -i eth3 -p tcp -sport 4000:65535 -j MARK 0x02
... etc.


I must do this on IMQ device (POSTROUTING, AB mode), using whatever (u32 filter, route filter, MARK, CONNMARK, etc.)

Packets are being marked, but some packets on IMQ are being gone on default interface (I'm not marking all traffic...) and I want to catch this packets on suitable classes on IMQ.

How can I do this? :/ Any ideas? Anyone can help?

--
Konrad Cempura /Lenthir/
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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