Date: Thu, 21 Feb 2002 13:39:13 +0100 From: "Rogier R. Mulhuijzen" <drwilco@drwilco.net> To: Nick Rogness <nick@rogness.net>, Zviratko <q@seznam.cz> Cc: freebsd-net@FreeBSD.ORG Subject: Re: Ethernet bonding/load balancing on fbsd 4-stable Message-ID: <5.1.0.14.0.20020221132702.0451fa88@mail.drwilco.net> In-Reply-To: <Pine.BSF.4.21.0202190245150.8379-100000@cody.jharris.com> References: <003501c1b7a8$4431d5f0$0500a8c0@notes>
next in thread | previous in thread | raw e-mail | index | archive | help
At 02:48 19-2-2002 -0600, Nick Rogness wrote: >On Sun, 17 Feb 2002, Zviratko wrote: > > > >[SNIP] > > > > I will try that, but I guess default route has precedence over ipfw. > > Not in the case of ipfw fwd. The routing decision seems to be > made before ipfw fwd changes the packet. That's correct, I use a few fwd rules to have packets return on the correct pipe on a dual-homed machine. Basically if the source address is on a different pipe than my default gateway and the destination is not the local subnet I fwd it to the other router. Works VERY sweetly. BTW, the fact that ng_one2many works for loadsharing over 2 cable modems means that your ISP is lazy with checking things (I think, I just woke up so thought processes are not doing too well yet =) ). What you could have done as well is tell natd to spread the connections over your 2 internet IPs, and then using fwd based on src to send to the right cable modem. But this would require both cable modems to have a different default gateway. If they have default gateway you could use ng_bpf to look at src address and sending it out the right ng_ether node. That *should* work even if your ISP does hard checks on whether or not incoming traffic comes in on the right cable modem. It will not spread a single connection over both modems, but it will spread load over both modems for returning packets, which I don't think your solution does. Doc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20020221132702.0451fa88>