Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: CONNTRACK problem
Date: Tue, 31 May 2005 22:32:11 -0400	[thread overview]
Message-ID: <20050601023211.GA7056@bender.817west.com> (raw)
In-Reply-To: <8016435.1117541117857.JavaMail.www@wwinf0301>

On Tue, May 31, 2005 at 02:05:17PM +0200, Rodolphe AVERTY wrote:
> Hello,
> 
> i have two router connected to the internet and i want to send my tcp connection between them.
> 
> this is my iptables script :
> 
> ############################################################################
> iptables -t mangle -N INTERNET
> iptables -t mangle -N INTERNET_ROUTER_1
> iptables -t mangle -N INTERNET_ROUTER_2
> 
> #le paquet est t'il en direction d'internet
> iptables -o eth2 -t mangle -A POSTROUTING -p tcp -d ! 10.0.0.0/8 -j INTERNET

you are trying to use fwmark's as a key in the routing decision; yet
you are MARK-ing in the mangle POSTROUTING chain, POST meaning "after"
and ROUTING meaning "routing."  you'd be better served to place these
rules in the mangle PREROUTING chain; PRE meaning "before" and ROUTING
meaning "routing."

-j

--
"Peter: I only drank so that the Statue Of Liberty would take her
 clothes off."
        --Family Guy


  reply	other threads:[~2005-06-01  2:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-31 12:05 CONNTRACK problem Rodolphe AVERTY
2005-06-01  2:32 ` Jason Opperisano [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-08 13:29 conntrack problem richard lucassen
2007-03-08 17:59 ` richard lucassen
2005-06-02  7:40 CONNTRACK problem rodolphe
2005-05-31 11:53 rodolphe
2005-05-31 10:12 rodolphe
2005-05-31  9:57 rodolphe

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=20050601023211.GA7056@bender.817west.com \
    --to=opie@817west.com \
    --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