Re: [squid-users] forwarding hostname to 2nd lan interface.

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 19 Apr 2010 21:50:26 +1200

EIN SA wrote:
> Hello all,
> I am looking for a solution to forward some specific hostname to my 2nd
> lan card.
> My network inferface
> eth0 192.168.2.80 (connect Internet by a dynamic real IP)
> eth1 192.168.11.240 (connect Internet by a fixed real IP)
>
> All user clients PC point to 192.168.2.80 and the default will go out to
> eth0. But if the user trying go to ebrary.com, I wish the routing will
> go to the eth1.
>
> I have follow setting at my squid.conf but it does not work
>
> acl To_ebrary dstdomain .ebrary.com
> acl From_ebrary srcdomain .ebrary.com
> tcp_outgoing_address 192.168.11.240 To_ebrary
> tcp_outgoing_address 192.168.11.240 From_ebrary

Almost. Try this:

   acl To_ebrary dstdomain .ebrary.com
   tcp_outgoing_address 192.168.2.80 !To_ebrary
   tcp_outgoing_address 192.168.11.240 To_ebrary

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.1
Received on Mon Apr 19 2010 - 09:50:34 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 20 2010 - 12:00:05 MDT