Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-17-2011, 02:26 AM   #1
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
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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 PM.

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