* --mark match/subsetting question
@ 2004-04-28 20:15 Aaron Smith
2004-04-29 15:19 ` Dick St.Peters
0 siblings, 1 reply; 2+ messages in thread
From: Aaron Smith @ 2004-04-28 20:15 UTC (permalink / raw)
To: netfilter
I've got a whole bunch of redirect rules in the PREROUTING table, but for
some
connections (say from one IP for examlpe) I want none of these redirects to
take effect.
I need to toggle this effect on and off easily. Inserting/Removing one rule
is ideal, but
I can't insert and remove all rules.
(Connections that exist when its toggled are unimportant)
I first way I thought to do this is with every REDIRECT rule use a --source
! <ipfoo>,
but then I have to delete all rules and reinsert (without the --source) to
toggle.
Then I figured I'd put a mark rule out front to mark connections I don't
want redirected, and
every redirect rule would have a --mark ! 0x01, but the not operator doesnt
seem to work with mark.
(Is there a default mark? - If so that would work).
It seems this is a fairly simple thing to do, and I'm positive I can do it
given the current tools,
but I can't see how.
Any ideas?
Thanks!
_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: --mark match/subsetting question
2004-04-28 20:15 --mark match/subsetting question Aaron Smith
@ 2004-04-29 15:19 ` Dick St.Peters
0 siblings, 0 replies; 2+ messages in thread
From: Dick St.Peters @ 2004-04-29 15:19 UTC (permalink / raw)
To: Aaron Smith; +Cc: netfilter
Aaron Smith writes:
> Then I figured I'd put a mark rule out front to mark connections I don't
> want redirected, and
> every redirect rule would have a --mark ! 0x01, but the not operator doesnt
> seem to work with mark.
Use --mark 0/0x01
--
Dick St.Peters, stpeters@NetHeaven.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-29 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-28 20:15 --mark match/subsetting question Aaron Smith
2004-04-29 15:19 ` Dick St.Peters
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox