Im trying to route some traffic on my lan.
I have a squid3 server on 192.168.0.1:3128 and all web traffic is going through squid3. (Transparent via iptables) And now I have a testing server up and running havp on 192.168.0.24:3127
Squid3 caches, havp checks for malware and virus
Is there a way to "cut" into traffic before it hits my squid server, and pass i through my havp server? havp is setup up to forward traffic back to 192.168.0.1:3128 (non ssl traffic)
This is the iptables syntax I have tried so far:
iptables -t nat -A PREROUTING -i eth3 -p tcp --dport 80 -j REDIRECT --to-destination 192.168.0.24:3127
And this one:
iptables -t nat -A PREROUTING -i eth3 --dst 192.168.0.24 -p tcp --dport 80 -j REDIRECT --to-port 3127
None of them are working. 192.168.0.24 is setup to accept traffic on port 3127.
If I manually connect to the havp server, It's working like a charm.
My browser -> havp -> squid3 -> internets
What am I doing wrong here?