On Mon, 28 Sep 2009 16:21:16 +1300, Todd Nine <todd_at_spidertracks.co.nz>
wrote:
> Hi all,
> I'm using squid on a pfSense router we've built. We have 2
> connections, one we pay for usage (DSL) and one we do not (Wireless).
> We use Amazon S3 extensively at work. We've been attempting to route
> all traffic over the wireless via an IP range, but as S3 can change IPs,
> this doesn't work and we end up with a large bill for our DSL. Is it
> possible to have squid route connections via a specific interface if a
> hostname such as "amazonaws.com" is in the HTTP request header?
>
> Thanks,
> Todd
Yes you can.
Find an IP assigned to the interface you want traffic to go out. Use the
tcp_outgoing_addr directive and ACLs that match the requests to make sure
all the requests to that domain are assigned that outgoing address. Then
make sure the OS sends traffic from that IP out the right interface.
Amos
Received on Mon Sep 28 2009 - 04:27:13 MDT
This archive was generated by hypermail 2.2.0 : Tue Sep 29 2009 - 12:00:03 MDT