REDIRECT changes DST address of the packet

Venkata Narayana mesg2nari at yahoo.com
Mon Jul 25 06:54:09 CEST 2005


Hi,

Thanks,
I am able to get the original dst address when I am
using tcp connection.
How can I get with UDP???
I my case of UDP we bind to single
fd and all packets irrespective of original
destination get delivered to same fd.

Thanks,
Venkat.


--- Jan Engelhardt <jengelh at linux01.gwdg.de> wrote:

> >Hello,
> > 
> >My question is if I use REDIRECT action in
> >NAT PREROUTING table  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.
> 
> You can't really with PREROUTING (except of course,
> said getsockopt() call)
> If you want to transparently redirect packets, you
> might want to use ROUTE or 
> TPROXY, depending on what you really want.
> 
> 
> 
> Jan Engelhardt                                      
>                         
> --                                                  
>                          
> | Gesellschaft fuer Wissenschaftliche
> Datenverarbeitung Goettingen,
> | Am Fassberg, 37077 Goettingen, www.gwdg.de
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the netfilter-devel mailing list