<div dir="ltr"><div><div>Hello Firas,<br><br></div>Thanks for your quick reply.<br><br><span style="background-color:rgb(204,204,204)">1. </span><span style="font-family:arial,helvetica,sans-serif;font-size:12.7273px"><span style="background-color:rgb(204,204,204)">What do you mean by &quot;Real&quot;?</span><br>
</span></div><span style="font-family:arial,helvetica,sans-serif;font-size:12.7273px">    Even though its an private IP address, it uses DHCP for getting the IP address.( Its not static or aliased) I am able to access the Internet from the proxy machine. <br>
<span style="background-color:rgb(204,204,204)"><br>2.</span></span><span style="background-color:rgb(204,204,204)"><span style="font-size:13px;font-family:arial,helvetica,sans-serif"> By (Interface to the Internet), I suppose you mean that this private IP address will be NATed at another network
 device after the TPROXY. How about subnet <a href="http://192.168.22.0/24" target="_blank">192.168.22.0/24</a>? Is it NATed ? </span><span style="font-size:13px;font-family:arial,helvetica,sans-serif">Why are you using two IP addresses on the TPROXY? </span></span><div>
<span style="background-color:rgb(204,204,204)"><span style></span></span><br></div><div>Yes, its NATed after TPROXY. <a href="http://192.168.22.0/24">192.168.22.0/24</a> is not NATed. <br></div><div>I am using two IP addresses, because I want to create a local network  behind 192.168.150.10 machine. I suppose, without two IP addresses I cannot create a subnet. Please correct me if I am wrong.<br>
<span style="background-color:rgb(204,204,204)"><br>3.<span style="font-family:arial,helvetica,sans-serif;font-size:12.7273px">The TPROXY will spoof the IP addresses of clients on <a href="http://192.168.22.0/24" target="_blank">192.168.22.0/24</a>
 subnet and I think (but I&#39;m not sure) that TPROXY would send SYN-ACK to
 the original client, only after it receives SYN-ACK from the web 
server. Since this subnet is private, requests will not reach the web 
server unless you&#39;re doing NAT somewhere after the TPROXY. Please note 
that even if you&#39;re doing NAT, you must make sure that replies return 
back to the TPROXY rather than the original client.</span></span><br><br></div><div>Well, I checked with my setup. After the SYN packet from the client is received. The TPROXY machine never responds to the original client or even never tries to send the SYN packet to the web server.<br>
</div><div>Without using TPROXY,  my setup with Iptables REDIRECT works fine.<br><br><span style="background-color:rgb(204,204,204)">4. I don&#39;t know about the internals of the TPROXY. Does it works with matching using IP address and port or with MAC address.</span><br>
<div>I could not get your question here!<br><br></div><div>What I meant here is, how does the TPROXY matches the packets. Since I am using the same MAC address for both the IP&#39;s. Will that be a problem?<br><br><br></div>
<div>Best Regards,<br></div><div>Yash<br></div></div><div><br></div><div><br> </div></div>