Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Eric Leblond <eric@inl.fr>
To: netfilter@lists.netfilter.org
Cc: dravya@magma.ca
Subject: RE: Change of ip addresses continues.... :(
Date: Thu, 26 Aug 2004 23:33:12 +0200	[thread overview]
Message-ID: <1093555992.4293.37.camel@porky> (raw)
In-Reply-To: <D5C9032B2B09C64EA2409D6214E91AC90512EE@asimail2.alphanumeric.com>

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

On Thu, 2004-08-26 at 23:26, Jason Opperisano wrote:
> > I have been trying various set of rules in various table in order to have packets go over
> > the right link. ie. packet's src add should match outgoing link's ip address.YET, there
> > iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark
> > iptables -t mangle -A PREROUTING -m mark ! --mark 0 -j ACCEPT
> > iptables -t mangle -A PREROUTING -m mark ! --mark 0 -p icmp -j MARK --set-mark 1
> > iptables -t mangle -A PREROUTING -m mark ! --mark 0 -j MARK --set-mark 2

There's something weird here : 
-m mark ! --mark 0 
at each line you should better do 
-m mark --mark 0
at the two last lines.

BR,
-- 
Eric Leblond <eric@inl.fr>
INL

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-08-26 21:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-26 21:26 Change of ip addresses continues.... :( Jason Opperisano
2004-08-26 21:33 ` Eric Leblond [this message]
2004-08-26 21:57   ` Odd question with source based blocking Michael Sconzo
  -- strict thread matches above, loose matches on Subject: below --
2004-08-26 21:48 Change of ip addresses continues.... :( Daniel Chemko
2004-08-26 21:36 Daniel Chemko
2004-08-26 21:30 Jason Opperisano
2004-08-26 21:10 dravya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1093555992.4293.37.camel@porky \
    --to=eric@inl.fr \
    --cc=dravya@magma.ca \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox