Proper setup for BWM bridge and Squid transparent proxy
Started by Arthur
Proper setup for BWM bridge and Squid transparent proxy 26 October 2008, 14:19 |
Registered: 9 years ago Posts: 61 |
Main problem is the loss of internet connectivity on the server (gateway) itself, and the inability to use Squid in combination with BWM in bridge mode on Microsoft Windows.
First part: Setting up the bridge.
This information was taken from [www.softperfect.com]
The bridge will function without applying these settings, however, you will lose Internet on the server.
Setup the network cards with IP's in the same range.
The WAN side gets DNS and default gateway, the LAN side only gets an IP address. Leave DNS and gateway empty.
Open TCP/IP properties from the network card on the lan side, click on advanced and set the metric as 1.
After that, open TCP/IP properties from the network card on the WAN side and set the metric to 30.
Setup a static route and make it permanent:
Open a command prompt and type
route -p add (IP from your router/modem) mask 255.255.255.255 (IP from the nic on the WAN side)
You can check if the route is added to the routing table by typing "route print". This is the most important step, without the static route it just won't work.
When this is all done, and the rules of BWM are setup the right way, all the computers on the LAN and the server can access the web.
Second part:
Now setup squid in transparent mode. It's easy to do, and there is a lot of documentation available on the net. I use version 2.7 stable.
Let it listen on port 3128, no need to configure a specific interface.
You do have to configure the "acl" access control list to match your network.
If Squid is setup and running properly (check the logs in the var directory) it is time to change a setting on BWM.
On the main menu choose tools-port mapping and define a new mapping to port 3128, that is the Squid port. When the mapping is setup correctly, you have to change te -upload- rule, if you have separate rules like me.
Go to the advanced tap, choose "process through the following port mapping" and select the mapping you created previously. Use port 80.
When requests are coming in you should see this in Squid's access log.
My experience in networking is very limited, but if I can help anyone with it please go ahead and ask.
Cheers,
Arthur.
Proper setup for BWM bridge and Squid transparent proxy. 31 October 2008, 23:01 |
Admin Registered: 12 years ago Posts: 5 643 |
Proper setup for BWM bridge and Squid transparent proxy. 01 November 2008, 06:10 |
Registered: 9 years ago Posts: 61 |
Proper setup for BWM bridge and Squid transparent proxy. 06 November 2008, 13:13 |
Registered: 9 years ago Posts: 12 |
Proper setup for BWM bridge and Squid transparent proxy. 06 November 2008, 13:15 |
Registered: 9 years ago Posts: 12 |
Proper setup for BWM bridge and Squid transparent proxy. 07 November 2008, 01:58 |
Registered: 9 years ago Posts: 12 |
I have confirmed the acl for my LAN and have tried the port redirection rule, but i am still not getting anywhere.
Can anyone shed some light, like with a step by step click here then click there type setup. It's easier for people to learn if they have easier instructions.
Please, anyone willing to share how to get squid working on a bridge in transparent mode, please do so.
Can softperfect not perhaps create a FAQ of hot to do this?
I will continue to play, but after a while i'm going to have to move on and find a way to do this because i have a deadline to find something.
Thank you
Proper setup for BWM bridge and Squid transparent proxy. 07 November 2008, 06:04 |
Registered: 9 years ago Posts: 61 |
I doubt Softperfect will create a FAQ. Squid has nothing to do with BWM so it seems logical to me that Andrew doesn't provide support for it.
Any help you receive from the forum members on Squid specific questions will be off-topic but I don't think it's a problem.
So please explain, where does your setup fail?
Cheers,
Arthur.
Proper setup for BWM bridge and Squid transparent proxy. 07 November 2008, 06:06 |
Registered: 9 years ago Posts: 61 |
Carlos
Proper setup for BWM bridge and Squid transparent proxy. 01 December 2008, 05:22 |
Proper setup for BWM bridge and Squid transparent proxy. 03 December 2008, 09:33 |
Registered: 9 years ago Posts: 61 |