LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2011, 02:26 AM   #1
Mukarakate
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Multi-wan configuration for squid transparent proxy


I have a network with two WAN links. One link is supposed to be for Senior Management and the other for the rest of the company. Currently all traffic seems to be going via one WAN link.

Is it possible to setup squid to select the link to use by checking the mac address of the requesting computer
 
Old 08-11-2011, 01:13 AM   #2
Nick_Minter
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Rep: Reputation: Disabled
Hi Mukarakate,

I'm guessing from your post that the machine squid is running on is also acting as a router?

Would source based routing solve your issue?

have a default route that is for the staff and add the second route that is for management.

Add IPTables marking and IP rule.

iptables -A INPUT -m mac --mac-source AA:BB:CCD:EE:FF -m mark --mark 2
ip rule add fwmark 2 table 2

Make sure you deny the packets if they don't come from the correct MAC.
 
  


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
multi wan loadbalancing in squid usmanmaniskp Linux - Server 1 09-24-2010 05:19 AM
squid proxy with multi wan links and load balancer lukeshih Linux - Networking 1 03-02-2010 09:10 AM
Transparent Proxy with 2 WAN links yorbs8 Linux - Networking 7 03-01-2010 07:32 PM
Squid Transparent Proxy SBN Linux - Server 6 07-11-2007 03:54 AM
Squid with Transparent Proxy MarleyGPN Linux - Networking 1 08-28-2003 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:36 AM.

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