On Wed, 28 Sep 2011 11:01:35 -0500, Luis Daniel Lucio Quiroz wrote:
> 2011/9/28 Benjamin <benjo11111_at_gmail.com>:
>>  Hi,
>>
>> I am looking for POLICY BASED ROUTING rules , which i need to use 
>> route web
>> traffic to squid box which is configured for tproxy purpose.If 
>> someone tried
>> it , please share your tips and feedback for that.
>>
>>
>> Network setup:
>>
>>    ROUTER   ------------> PBR CONFIGURATION
>>          |
>>          |
>>          |
>>          |
>>       SWITCH
>>        |  |
>>        |  |
>>        |  | -----SQUID BOX ( 1 interface )
>>        |
>>       BANDWITH
>>       SHAPPER
>>        |
>>        |
>>   END  USERS
>>
>>
>> Thanks,
>> Benjo Fernandis
>>
>>
>
> Easy,
> #       acl normal_service_net src 10.0.0.0/24
> #       acl good_service_net src 10.0.1.0/24
> #       tcp_outgoing_tos 0x00 normal_service_net
> #       tcp_outgoing_tos 0x20 good_service_net
>
>
> with this you are marking tcp packets, then in your cisco/linux you
> can do rules that depending mark and squid-ip will select an specific
> rule table. look for "ip rule" command to specify tables  rules if 
> you
> are using linux.
>
 Depending on your Squid version you may also have zph_* directives 
 (2.7), or qos_flows (3.1+) to play with. They set the TOS value based on 
 source flow type (HIT, MISS, etc).
 Amos
Received on Sat Oct 01 2011 - 04:23:54 MDT
This archive was generated by hypermail 2.2.0 : Sat Oct 01 2011 - 12:00:03 MDT