Apparently, ddclient doesn't work if you don't go through the correct
Internet connection ( the one you are trying to update ). Of course
the Comcast Internet connection and the DSL one are not equal, so I
can't just say use the Comcast connection as the default gateway.
That is exactly what I have to do though to get the update
to work.
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.
The relevant rule:
iptables -t mangle -A PREROUTING -s 127.0.0.1 -d updates.opendns.com
-j MARK --set-mark 4
where this only seems to take effect if PREROUTING is replaced
with POSTROUTING. I need to mark the packets before the routing
decision is made, not after.
I already know about doing ip rule add fwmark 4 table 2. I have
a table 1 as well with the default gateway set to go through the
DSL. Ideally, the default routing table should have no default
gateway. Obviously, if I can't decide which routing table to use
for local packets based on which gateway I need, I'll have to
maintain a default gateway in the default routing table.
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug