[LARTC] Destination routing and its implementations?

Artūras Šlajus x11@h2o.pieva.net
Thu, 29 Jan 2004 22:12:25 +0200


Hello everyone,

I was wondering how i should do destination routing. I now do

# ip rule add to x.x.x.x table some_table

for each address i need. I was thinking about fwmark option. The problem is
that routing decision is made after PREROUTING and not POSTROUTING (name obviously
sais that :)) and i need to use -o. In OUTPUT this marking can't be done.

I made this conclusion by studying this URL:
http://iptables-tutorial.frozentux.net/chunkyhtml/traversingoftables.html

Am I right?