On Wed, Sep 24, 2003 at 10:05:37AM +0200, G?teborgs DataAkut - Fredrik Win?s wrote: > ifconfig br0 192.168.0.3/24 > > I havent found a straight answer on the internet how to make this machine do > a transparent webcache, i've searched the archives of this mailinglist but > havent found anything that works for me... > > can anyone tell me how it should be done?
This information is pretty public, but here's how I do it: iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128 eth1 is the LAN side of the bridge, and the rule intercepts requests for external hosts on port 80, and redirects them to port 3128 on the bridge itself, where squid should be listening... Don't forget of course, that squid must have a real means by which to get Internet access, so here I would expect you have another machine on the network which will masquerade packets for br0 at 192.168.0.3... Cheers, Gavin. _______________________________________________ Bridge mailing list [EMAIL PROTECTED] http://www.math.leidenuniv.nl/mailman/listinfo/bridge
