Tom can you give me a hand here?
Thanks

On Fri, Oct 4, 2013 at 4:58 PM, Nico Pagliaro <[email protected]> wrote:

> My shorewall version is 4.5.0.2 and my kernel is 2.6.18
>
>
> On Fri, Oct 4, 2013 at 4:36 PM, Nico Pagliaro <[email protected]> wrote:
>
>> Thanks Toms for your reply.
>>
>> Suppose this example:
>>
>> I have 2 ISP
>> ISP1
>> ISP2
>>
>> and my LAN
>> I have traffic that goes through  ISP1, like HTTP and streaming with UDP
>> port 8000.
>> So, I need to have both things here, in one hand a rule in tcrules that
>> preroute all my internal traffic to Internet with tcp port 80 with ISP1
>> and in the hand,  I need to have QoS in  those packets with udp port 8000
>> that goes to that ISP1, for example reserve a minimum of 512 kbps upload
>>
>> So, how can I do this?
>>
>> providers:
>> #NAME   NUMBER  MARK    DUPLICATE       INTERFACE       GATEWAY
>> OPTIONS         COPY
>> ISP1                1       1                 main            eth0
>>      xxx.xxx..x..
>> ISP2                2       2                 main            eth5
>>      xxx.xxx.x.x.x.
>>
>>
>> tcrules
>> #MARK   SOURCE            DEST            PROTO   DEST    SOURCE  USER
>>  TEST    LENGTH  TOS
>> 1:P            192.168.0.0/24  0.0.0/0               tcp      http,https
>> 1:P            192.168.0.0/24  0.0.0.0/0            udp      8000
>>
>> 2:P            192.168.0.0/24  0.0.0.0/0            tcp      20,21,22
>>
>> I have eth0, eth1 (ISP1), eth2 (ISP2)
>>
>>
>> I am a little confuse how I figure this.
>> thanks
>>
>>
>>
>>
>>
>> On Thu, Oct 3, 2013 at 6:14 PM, Tom Eastep <[email protected]> wrote:
>>
>>> 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 \________________________________________________
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>>
>>>
>>
>
------------------------------------------------------------------------------
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

Reply via email to