REDIRECT changes DST address of the packet
Hello,
I am new to this mailing list sorry If I ask any
thing wrong.
My question is if I use REDIRECT action in
PREROUTINg
rule is it going to change the tcp packet DST
address.
If I lose original DST address, how can I persist that
value in that packet.
Help me !!!
Thanks in advance.
Nari.
Quoted 8 lines
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Yes, it is changed to a local address i think (or loopback one). The original address is restored after routing by NAT system to packets which comes back (as source address).
Quoted 3 lines
If I lose original DST address, how can I persist that
value in that packet.
Well, i didn't quite get this last worry of you.
Quoted 7 lines · [email protected] said:
I am new to this mailing list sorry If I ask any thing wrong.
My question is if I use REDIRECT action in PREROUTINg rule is it going to change the tcp packet DST address.
If I lose original DST address, how can I persist that value in that packet.
I think you're looking for the SO_ORIGINAL_DST sockopt.
Jason