From: Tobias DiPasquale <codeslinger@gmail.com>
To: Harald Welte <laforge@netfilter.org>,
nf-devel <netfilter-devel@lists.netfilter.org>
Subject: Re: Linux 2.6.12/iptables 1.3.1+CLUSTERIP issues
Date: Wed, 22 Jun 2005 09:07:02 -0400 [thread overview]
Message-ID: <876ef97a050622060750b078bd@mail.gmail.com> (raw)
In-Reply-To: <20050622121509.GG4551@obroa-skai.de.gnumonks.org>
On 6/22/05, Harald Welte <laforge@netfilter.org> wrote:
> this should never happen. iptables always prefers
> $KERNEL_DIR/include/linux/netfilter_ipv4 above its local copy. Are you
> sure KERNEL_DIR was set correctly while compiling iptables?
% cd iptables-1.3.1
% make KERNEL_DIR=/usr/src/linux-2.6.12 BINDIR=/sbin LIBDIR=/lib
MANDIR=/usr/share/man INCDIR=/usr/include
KERNEL_DIR above is where I had just two minutes before built a brand
new vanilla 2.6.12 kernel from my 2.6.11 config (with ipt_CLUSTERIP as
a module) and installed it. iptables correctly detected all compiled
extensions. Here's the diff between the two versions of the header
files:
adidas~/iptables-1.3.1/include/linux/netfilter_ipv4> diff -u
ipt_CLUSTERIP.h
/usr/src/linux-2.6.12/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
--- ipt_CLUSTERIP.h 2005-03-07 09:00:35.000000000 -0500
+++ /usr/src/linux-2.6.12/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
2005-06-20 16:37:47.000000000 -0400
@@ -18,6 +18,7 @@
struct ipt_clusterip_tgt_info {
u_int32_t flags;
+ struct clusterip_config *config;
/* only relevant for new ones */
u_int8_t clustermac[6];
@@ -26,12 +27,6 @@
u_int16_t local_nodes[CLUSTERIP_MAX_NODES];
enum clusterip_hashmode hash_mode;
u_int32_t hash_initval;
-
-#ifdef KERNEL_64_USERSPACE_32
- u_int64_t config;
-#else
- struct clusterip_config *config;
-#endif
};
#endif /*_IPT_CLUSTERIP_H_target*/
adidas~/iptables-1.3.1/include/linux/netfilter_ipv4>
This is on an x86_64 (Athlon64) machine, btw.
> it is an error. I will investigate any patches / fixes that have been
> sent to the list.
Nice, thanks. The two previous patches I was referring to were:
1. message from you on May 6, 2005, subject "[PATCH 2.6] Two
ipt_CLUSTERIP fixes"; your second patch deals with iptables -D rule
deletion for ipt_CLUSTERIP rules.
2. message from Pablo Neira on March 6, 2005, subject "[PATCH 2/2] fix
CLUSTERIP rule deletion in iptables" containing only an attached patch
file, "fix-cluster-del.patch".
When deleting a rule that uses --new, should you repeat the --new in
the iptables -D command?
> > Anyway, I'm glad that you can now update the node lists dynamically
> > now. This makes it usable.
>
> At which point was this not possible? Or am I missing something?
Sorry, I just wasn't aware of this previously. I misspoke myself. I
was initially confused by the terminology "statically allocated" (in
the iptables man page?) used in referring to how the IP space was
divided between the nodes. Saru had provisions for this, as well, but
I believe they called it something else.
> > I'm planning on writing a userspace driver for this module to make at
> > least the Win2K3 NLB functionality available to Linux users.
>
> I am not familiar with that functionality, can you give me a pointer?
Sure, this is a good introductory article:
http://www.west-wind.com/presentations/loadbalancing/NetworkLoadBalancingWindows2003.asp
Win2K3 NLB seems to have two modes: multicast (akin to CLUSTERIP) and
unicast, the latter of which I'm not really sure how it works. The
best I can figure, since it requires a dedicated interface for the
virtual IP, is that the "master" simply turns into a router that
routes requests to the other dedicated NICs in the cluster when the
traffic is not destined to the master. Those clusters then forward the
traffic from the dedicated NIC to the primary NIC for normal
processing.
Can you think of any other way this might work (my buddy and I can't)?
Would it be of any benefit to mirror this functionality in CLUSTERIP?
(they claim that they unicast mode is the faster of the two, in terms
of aggregated throughput)
--
[ Tobias DiPasquale ]
0x636f6465736c696e67657240676d61696c2e636f6d
next prev parent reply other threads:[~2005-06-22 13:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-21 2:04 Linux 2.6.12/iptables 1.3.1+CLUSTERIP issues Tobias DiPasquale
2005-06-22 12:15 ` Harald Welte
2005-06-22 13:07 ` Tobias DiPasquale [this message]
2005-06-22 19:17 ` Harald Welte
2005-06-27 17:34 ` Tobias DiPasquale
2005-06-22 21:05 ` Pablo Neira
2005-06-22 23:27 ` Tobias DiPasquale
2005-06-23 8:38 ` Harald Welte
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=876ef97a050622060750b078bd@mail.gmail.com \
--to=codeslinger@gmail.com \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@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.