On 06/19/2012 11:41 PM, Slava wrote:
>
> TE>  Slava wrote:
>>> Hello.
>>> I am trying to do incoming traffic shaping with Squid-Tproxy-imq:
>>>
>>>   local net ->  Tproxy (Squid) ->  output connmark 0x81 ->  i-net prerouting
>>>   restore ->  imq ->  filter
>>>
>>>   DIVERT rule add MARK>  0xff, let OR 0x200, MARK become 0x281
>>>
>>>    But in tcclasses i must use mark 1..255 and can't use MASK
>>>   It is possible to do such config to work? May be i was inattentive
>>>   and missed options in doc
>
> TE>  Take a look at
> TE>  http://www.shorewall.net/PacketMarking.html#Values. It explains
> TE>  the layout of packet marks in Shorewall.
>
> TE>  -Tom
>
> Yes, i read and try various combination, but DIVERT select higher
> bits. Or i must write my own divert ?

Sorry -- I don't understand what problem you are trying to solve. What 
is the purpose of the connmark 0x81? How are you diverting traffic from 
the local net to Squid? With an entry in /etc/shorewall/providers? If 
so, then the builtin DIVERT target will redirect the replies back to 
Squid automatically.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to