RE: Help with transparent proxy
Ari Hietamäki <[email protected]> Wed, 5 Apr 2006 08:34:04 +0300
| Newsgroups | gmane.linux.network.bridge.ebtables.user |
|---|---|
| Message-ID | <[email protected]> |
Here is the full script which I will start after reboot. ifconfig eth0 0.0.0.0 promisc up ifconfig eth1 0.0.0.0 promisc up brctl addbr br0 brctl addif br0 eth0 brctl addif br0 eth1 ifconfig br0 192.168.200.50 netmask 255.255.255.0 up route add default gw 192.168.200.1 dev br0 echo 1 > /proc/sys/net/ipv4/ip_forward ebtables -F ebtables -t broute -F ebtables -t broute -A BROUTING -p ipv4 --ip-protocol 6 --ip-destination-port 80 -j redirect --redirect-target ACCEPT iptables -F iptables -t nat -F iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 At least with me it takes few mnutes until the bridging starts to work. That is because the bridge server will get wrong mac address from somewhere. Mayby because I am doing the test on top of vmware. br, Ari ________________________________ Lähettäjä: Ignacio Rodriguez [mailto:[email protected]] Lähetetty: ke 5.4.2006 8:28 Vastaanottaja: Ari Hietamäki Aihe: Re: [Ebtables-user] Help with transparent proxy Can you detail your fixes please? thanks... ----- Original Message ----- From: Ari Hietamäki <mailto:[email protected]> To: [email protected] Cc: [email protected] Sent: Wednesday, April 05, 2006 12:54 AM Subject: RE: [Ebtables-user] Help with transparent proxy I actually managed get that work after I added echo 1 to ip_forward. -Ari ________________________________ Lähettäjä: Ignacio Rodriguez [mailto:[email protected]] Lähetetty: ke 5.4.2006 3:31 Vastaanottaja: Ari Hietamäki Aihe: Re: [Ebtables-user] Help with transparent proxy I have the same problem than Ari... we are two.... please help... thanks. ----- Original Message ----- From: Ari Hietamäki <mailto:[email protected]> To: [email protected] Sent: Tuesday, April 04, 2006 4:23 PM Subject: [Ebtables-user] Help with transparent proxy Hello folks. Please help me with this ! I am trying to build tranparent proxy with squid. I have used example from freshmeat to build that up but without success. I am using open suse 10. http://freshmeat.net/articles/view/1433/ Directly squid is working fine but I have tried at least 20 different settings for ebtables and iptables to get all http traffic to be redirected to bridge server squid. Bridge it self is also working as it should. In the ebtables sourceforge web site there is a link to example bridge.sh file which is not awailable. I would suppose that is example what I am looking for, do someone has a copy of that script ? BR, -Ari