[tproxy] doing SNAT after tproxy doing IP spoofing

Logu logsnaath at gmx.net
Wed Aug 22 11:45:45 CEST 2007

I have a static SNAT for the user IP address as follows in POSTROUTE nat 
iptable as " <--->".
i.e, After doing the IP Spoofing, we need to apply static NAT.

With TPROXY, it is not working as I expected. Instead, it is sending the 
packet with source IP addr as

How do we resolve this issue?


I guess the tproxy table does the SNAT  before matching with the rules on 
the actual nat table's SNAT chain and hence it may not be possible.


More information about the tproxy mailing list