I am not sure if this list is the right place to ask this question. If
not, please let me know where I should send it.
I am reading the source code of LVS and found out that it adds ip_vs_in()
to netfilter hook NF_IP_LOCAL_IN to change the destination of packets. As
I understand, this hook is called AFTER routing decisions have reached. So
how can it forwards the packet to the new assinged destination without
routing? I thought the right place to change destination is the
NF_IP_PRE_ROUTING hook. Am I missing something?
I know I need read more code. But a quick answer of this will help me.
Thanks,
-Tao
|