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 [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message