REDIRECT changes DST address of the packet
mesg2nari at yahoo.com
Mon Jul 25 06:54:09 CEST 2005
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.
--- Jan Engelhardt <jengelh at linux01.gwdg.de> wrote:
> >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
More information about the netfilter-devel