Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Squid and bridging together, just because
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JohnnyGTO
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 91

PostPosted: Mon Jul 07, 2003 4:14 am    Post subject: Squid and bridging together, just because Reply with quote

I'm trying to use squid and bridging together, just because. Actually I like whatching the traffic with Etherape and I may need to ummm selectivly limit browsed sites. Maybe with some nice heart stopping error screens relating to lost Quicken files and reports sent to the local law :-)

I'm using bridging because the server has the extra nics and it just seemed easier.

This is what I have in local.start

ifconfig eth2 0.0.0.0 promisc up
ifconfig eth1 0.0.0.0 promisc up
brctl addbr mybridge
ifconfig mybridge 192.168.0.100 netmask 255.255.255.0 up
brctl addif mybridge eth2
brctl addif mybridge eth1

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128

iptables -A INPUT -i eth1 -p tcp -d 192.168.0.100 -s 192.168.0.0/24 --dport 3128 -m state --state NEW,ESTABLISHED -j ACCEPT

I've followed the steps from http://www.tldp.org/HOWTO/mini/TransparentProxy-7.html and bridging works and Squid works but not as a transparent proxy (I have to select it)

Any ideas ?
Back to top
View user's profile Send private message
PartyCharly
n00b
n00b


Joined: 24 Nov 2002
Posts: 33
Location: Stralsund

PostPosted: Wed Jan 07, 2004 2:45 pm    Post subject: Reply with quote

Hi Johnny,

proxyiing & bridging on the same machine doesnt work, except u worte a kernel driver that uses localhost.

bridging 2 network-cards makes your linux-boxjust running like a switch.
everyting incomming on eth0 is goint out on eth1.

the one thing u can do is using paketfiltering do log the traffic.

if u find anithing, that can proxyiing and bridging on the same box, plz tell me.
_________________
--- where the hell is the fu*** manual ---
--- linux is like a whigwam, no gates, no windows, and apache inside ---
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum