IMQ question
Once again forgot to reply to the list:
Quoted 23 lines · Patrick McHardy
Quoted 14 lines · Ciprian Niculescu
whitch is the logic in this piaece of code
iptables -t mangle -A PREROUTING -j IMQ
iptables -t mangle -A PREROUTING -s 1.2.3.4 -j MARK --set-mark 1and in the imq0 i have a class that handle the pachets marked with 1
this works, the question is why?
beacouse i understand that:
the pachet first enter the IMQ table, and in the queue, after that he exit and continue with the next rule in the PREROUTING, witch is the mark.Quoted 4 lines
i must got it wrong
C
Quoted 10 lines
hi!
yes, you got it wrong. the IMQ target only MARKS packets to be enqueued later, for incoming packets after passing the mangle table, for outgoing after passing ALL tables (filter, mangle & nat).
IMQ itself is not a table, its a software device which feeds itself packets through netfilter.
hope that helps.
bye,
patrick
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/