LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2010, 04:28 AM   #1
rocky9
LQ Newbie
 
Registered: Sep 2010
Posts: 11

Rep: Reputation: 0
Squid transperant proxy in bridge mode


Hi Techie,

I configured squid in transperant proxy and it's working fine.Now i tried it in bridge mode for that i did setup for bridge mode and it's working fine.But i can not get any http request in squid access log.i can see traffic from my bridge.
tcpdump -i br0

configure bridge:

ifconfig eth0 0.0.0.0

ifconfig eth1 0.0.0.0

brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1

Then used ebtables and ip tables for redirect port 80 traffic to port 3128 for squid caching.

ebtables -t broute -A BROUTING -p IPv4 --ip-protocol 6 \
--ip-destination-port 80 -j redirect --redirect-target ACCEPT

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

After applying this two rules,My internet is not working at user end.And when i removed these two rules , internet is working fine at user end.

when i add above two rules.I can see packet in
iptables -t nat -L -nvx and ebtables -t broute -L --Lc command

But internet is not working at user end.

Please suggest me for the same.

Regards,
Rocky
 
Old 06-18-2011, 01:43 AM   #2
ondemandemails
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Same problem

i m having the same problem.

i m looking to deploy a linux server that reside between the network & internet.

my router has the LAN side IP as 192.168.1.1/20 & its DHCP puts gateway as 192.168.1.1 with DNS1 & DNS2 IPs.

i only want to setup squid in this linux server that can work as web cache & firewall with content blocking, in such a way that we dont have to make any changes in client systems or use any proxy config. in browsers. it should work with same gateway & dns settings.

can any1 help me out?

bye
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with PPPoE in transperant squid chirag123 Linux - Networking 3 10-20-2008 11:47 PM
How to Configure Transperant Proxy chirag123 Linux - Server 1 09-13-2008 10:11 AM
Squid in transperant mode. c0m4 Linux - Software 2 07-12-2005 03:50 AM
Transperant Proxy and web server on one machine = issue ... sys7em Linux - Networking 2 06-16-2005 02:29 PM
transperant proxy not working saugato Linux - Security 3 03-16-2005 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration