On 10/3/2013 1:32 PM, Nico Pagliaro wrote: > Hi, I want to configure QoS in my shorewall conf but I have a doubt. > Now I am using tcrules with prerouting and with the file providers, like > this. > > 2:P 192.168.0.11 0.0.0.0/0 <http://0.0.0.0/0> tcp 25 >
Change your Multi-ISP configuration to use marks that are shifted to the
left 8 bits.
/etc/shorewall/shorewall.conf:
PROVIDER_OFFSET=8
/etc/shorewall/providers:
<name> 2 0x200 ...
/etc/shorewall/tcrules:
0x200:P 192.168.0.11 - - tcp 25
Now you can mark in FORWARD/POSTROUTING for QOS using mark values 1-255.
-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 \________________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
