Skip to contentSkip to conversation

REDIRECT changes DST address of the packet

DISCUSSION Venkata Narayana 3 participants 3 messages Jun 30, 2005 – Jul 5, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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.

#2 lore raw
In reply to Venkata Narayana
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