On Wed, 26 Jan 2005, CcM wrote:

It does work! Thanks!
But many articles write like what I did, what's the difference between 
POSTROUTING and PREROUTING. I mean I know these are two hook point in ip stack, 
but why should be POSTROUTING here when do mangle?

"Catalin(ux aka Dino) BOIE" <[EMAIL PROTECTED]> wrote:
Use:
iptables -t mangle -A POSTROUTING -p tcp -m tcp --sport 22 -j MARK \
--set-mark 20

Because local generated packets doesn't go through PREROUTING. But, best is to use OUTPUT.


--- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/ _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



---------------------------------
Do You Yahoo!?
ע������һ��Ʒ�ʵ��Ż���ѵ���

--- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/

Reply via email to