All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] linux transparent bridge running squid
@ 2006-07-21 18:31 William Bohannan
  2006-07-21 19:37 ` Andrew Beverley
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: William Bohannan @ 2006-07-21 18:31 UTC (permalink / raw)
  To: lartc

Hi I have been using Shorewall for a while now and find it very useful and easy to configure, I am learning iptables and having trouble getting the bridge to successfully work with squid, although I get it working with Shorewall straight away?  Does anyone know the rules to successfully use squid with a transparent bridge?

Internet – router - (bridge eth0 – eth1) – local lan

auto lo
iface lo inet loopback

auto br0
iface br0 inet static
address 192.168.0.253
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
pre-up /sbin/ip link set eth0 up
pre-up /sbin/ip link set eth1 up
pre-up /usr/sbin/brctl addbr br0
pre-up /usr/sbin/brctl addif br0 eth0
pre-up /usr/sbin/brctl addif br0 eth1

iptables -A INPUT -i br0 -p tcp -d 192.168.0.253 -s 192.168.0.0 --dport 3128 -m state --state NEW,ESTABLISHED -j ACCEPT 
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 3128
echo 1 > /proc/sys/net/ipv4/ip_forward

with no luck ☹


kind regards
william


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-25 18:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-21 18:31 [LARTC] linux transparent bridge running squid William Bohannan
2006-07-21 19:37 ` Andrew Beverley
2006-07-22 16:30 ` Luciano Ruete
2006-07-22 21:04 ` Radu Oprisan
2006-07-24 19:33 ` [LARTC] linux transparent bridge running squid and dansguardian William Bohannan
2006-07-25 18:09 ` Luciano Ruete

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.