LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Multi-wan configuration for squid transparent proxy (https://www.linuxquestions.org/questions/linux-newbie-8/multi-wan-configuration-for-squid-transparent-proxy-886826/)

Mukarakate 06-17-2011 02:26 AM

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

Nick_Minter 08-11-2011 01:13 AM

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:CC:DD: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.


All times are GMT -5. The time now is 01:11 PM.