From: rodolphe <rodolphe.averty@oxance.com>
To: netfilter@lists.netfilter.org
Subject: CONNTRACK problem
Date: Tue, 31 May 2005 13:53:50 +0200 [thread overview]
Message-ID: <429C504E.8080402@oxance.com> (raw)
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
iptables -t mangle -N INTERNET
iptables -t mangle -A INTERNET -j CONNMARK --restore-mark
# 50 % connection vers router 1
iptables -t mangle -A INTERNET -m mark --mark 0 -p TCP --tcp-flags ALL
SYN -m random --average 50 -j MARK --set-mark 1
iptables -t mangle -A INTERNET -m mark --mark 1 -j CONNMARK --save-mark
iptables -t mangle -A INTERNET -m mark --mark 1 -j INTERNET_ROUTER_1
# le reste vers router 2
iptables -t mangle -A INTERNET -m mark --mark 0 -p TCP --tcp-flags ALL
SYN -j MARK --set-mark 2
iptables -t mangle -A INTERNET -m mark --mark 2 -j CONNMARK --save-mark
iptables -t mangle -A INTERNET -m mark --mark 2 -j INTERNET_ROUTER_2
iptables -t mangle -A INTERNET -j RETURN
iptables -t mangle -A INTERNET_ROUTER_1 -j ROUTE --gw 10.0.2.200
iptables -t mangle -A INTERNET_ROUTER_2 -j ROUTE --gw 10.0.2.254
############################################################################
it seems that i have a problem with CONNTRACK marking, i don't retreive
the mark to route correctly the packets.
My config is kernel 2.6.11.10 with iptables 1.3.1 and last pom.
Thanks for help
next reply other threads:[~2005-05-31 11:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 11:53 rodolphe [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 12:05 Rodolphe AVERTY
2005-06-01 2:32 ` Jason Opperisano
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=429C504E.8080402@oxance.com \
--to=rodolphe.averty@oxance.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.