SO I found the issue was with modules not loaded properly and now it works fine,<br><br><div class="gmail_quote">On Thu, Sep 22, 2011 at 4:23 PM, RDP <span dir="ltr"><<a href="mailto:rdp.com@gmail.com">rdp.com@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi <div> I am trying to build tproxy support for haproxy on Ubuntu 10.04 LTS 64 bit server.</div><div><br></div><div>The kernel has the tproxy support</div>
<div><br></div><div><div>.config | grep -E '(NF_CONNTRACK=|TPROXY|XT_MATCH_SOCKET|XT_TARGET_TPROXY)'</div>
<div>CONFIG_NF_CONNTRACK=m</div><div>CONFIG_NETFILTER_TPROXY=m</div><div>CONFIG_NETFILTER_XT_TARGET_TPROXY=m</div><div>CONFIG_NETFILTER_XT_MATCH_SOCKET=m</div></div><div><br></div><div>and the iptables version is 1.4.4 </div>
<div><br></div><div><br></div><div>Now when I execute the iptables rule </div><div><div>iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT</div><div>iptables: No chain/target/match by that name.</div></div><div>
<br>
</div><div>I get this issue. Any thought or advice will be highly appreciated.</div><div><br></div><div>regards</div>
</blockquote></div><br>