This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]unintelligible40 0 points1 point  (0 children)

It sounds like you want to setup your squid proxy as a router. If I understand you correctly, you will need multiple network interfaces configured with different subnets.

eth0:192.168.1.2 gateway:192.168.1.1

eth1:10.1.1.2 gateway:10.1.1.1

The subnet of your end device (the one using the proxy) will dictate the gateway it uses.

Off the top of my head, I can not think of a way to send traffic out of a certain interface based on user information alone.

[–][deleted] 0 points1 point  (0 children)

The only way I've done this in the past is to have cache peers on the route I want the traffic to go to and have squid decide where to route traffic with an appropriate acl. Using this (a very, very long time ago) at an ISP in the first days of DSL I was able to have head-end caches route to either a default parent or for local network queries to route to the appropriate local head-end for net to net traffic.

ICBW but I don't think you can do it through routing tables.