On Thu, Dec 30, 2010 at 9:33 AM, Daniel Hedlund <[email protected]> wrote: > On Wed, Dec 29, 2010 at 16:06, Michael C. Robinson > <[email protected]> wrote: >> I don't want most packets to use a different routing table, just >> the particular locally generated packets going to the updates site. >> I figure that I need to use the iptables mangle table PREROUTING chain >> and mark the relevant packets to do this, but the only way I can get a >> reaction is to use the POSTROUTING chain which seems pointless because >> this chain takes effect after routing decisions have been made. > > Instead of dealing with iptables and rewriting packets, have you tried > adding a host route using the "route add -host ..." command? > > Assuming you have two interfaces, eth0 and eth1, with eth0 being DSL > and eth1 being Comcast... > > $> route add -host updates.opendns.com eth1 > $> route > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > ... > 208.69.38.180 * 255.255.255.255 UH 0 0 0 eth1 > ... >
And add a second host to your openDNS account and update each from the associated interface. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
