Thanks Jan.
I was able to apply the iptables command after that.

Am trying to use tproxy with squid. But it seems that whenever I try to run both tproxy and squid together, the traffic from my router is not being forwarded to the cache server.
But after rebooting the system and not applying tproxy everything works well.

Regards
Sunil

Sunil K.P. wrote:
Hi,

Had configured and patched the kernel as per the instructions given in the INSTALL file.
The system is not working in bridge mode, so cannot use br0.

Going by the instructions from other users this was the only only iptables command to be used.

Regards
Sunil

Jan Engelhardt wrote:
But when I try to put the redirection it gives the following error
[root@cache netfilter]# iptables -t tproxy -A PREROUTING -i eth0 -p tcp 
    

I am not sure this will work when eth0 has no IP address. In fact, you 
probably want

-i br0 -m physdev --physdev-in eth0.8

or --physdev-in eth0.

  
-m tcp
    

You do not need -m tcp.

  
--dport 80 -j TPROXY --on-port 80
iptables v1.3.5: Unknown arg `--on-port'
    

Works for me. You probably do not have TPROXY support in iptables.


Jan Engelhardt
  

_______________________________________________ tproxy mailing list tproxy@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/tproxy