[squid-users] Testing transparent squid in VM

From: Wundy <[email protected]>
Date: Mon, 28 Apr 2008 06:40:35 -0700 (PDT)

Greetings all!

I am currently trying to run a transparent proxy in a testing environment.
I have one VM with 2 network cards. 1 is set on vmnet2 the other one NAT to
the internet.
my server is running squid in transparent mode on the internal IP address of
192.168.0.12/24
and the client is set on 192.168.0.7/24 with it's default gateway pointing
towards 0.12.
now when I try to open iceweasel I cannot get through to the internet, when
I input my proxy settings, it does work.

how do I fix this ?
I tried redirecting traffic with IPtables but it didn't work,
here is the script I used:
eth2 is the internal lan
eth1 the internet
#!/bin/bash
        iptables -F
        iptables -X
        iptables -t nat -F
        iptables -t nat -X
        iptables -t mangle -F
        iptables -t mangle -X
        iptables -A INPUT -i eth2 -j ACCEPT
        iptables -A OUTPUT -o eth2 -j ACCEPT
        iptables -t nat -A PREROUTING -i eth2 -p tcp --dport 80 -j DNAT --to
192.168.0.12:3128
        iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT
--to-port 3128

best wishes

-- 
View this message in context: http://www.nabble.com/Testing-transparent-squid-in-VM-tp16939142p16939142.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Mon Apr 28 2008 - 13:40:40 MDT

This archive was generated by hypermail 2.2.0 : Thu May 01 2008 - 12:00:04 MDT