[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iproute2, alternative tables, no default route: routing trouble for localhost



Pokotilenko Kostik a écrit :

# ip rule add dev lo table Servers

Solved my problem! I've spent 3 day searching for the answer. I'll make
more testing tomorrow.

So, correct me if I'm wrong: even if the local sending application
wouldn't explicitly specify source IP address it will in any way be put
to "Servers" table because it is from "lo" interface(??).

Sort of. I don't know how it works exactly, but I think that using the loopback interface as the *input* interface in a rule to match locally generated packets is a kind of hack, because it does not make much sense to me. Locally generated packets don't have an input interface.



Reply to: