Mike Lander wrote:
>
> I would like to ask this. From what I have under stood is this:
> with high marks there is a limitation with this works and
> you developed a way to shape with high marks.

Yes -- The basic idea is that you use High marks in the PREROUTING and
OUTPUT mangle chains to specify which ISP you want traffic to go to. You use
low marks in the FORWARD and/or POSTROUTING chains to mark traffic for
traffic shaping.

Regardless of how you set HIGH_ROUTE_MARKS, you can always use CLASSIFY
rules in the POSTROUTING chain. Classify rules are distinguished by having
<number1>:<number2> in the MARK column where:

<number1> is the interface number (the first interface in tcdevices has
number 1, the second has number 2, and so forth).

<number2> is the mark value for the class with "1" added in front of it. So
if the mark value is 30, then <number2> is 130.

>     My understanding is and correct me if I am wrong.
> I understand Hex ,Binary more than Decimal.
> I have had this config as follows
> If you want to route all traffic from dmz through
> 
> ISP 2 with ISP=512 dmz=64.42.53.240---------------------
> This section between I assume to be correct entries in tc rules?
> 0x200:P  0.0.0.0/0                            64.42.53.240 all
> 0x200:P  64.42.53.240                    0.0.0.0/0    all

Correct.

> and you want it in class 3 on ISP2
> 3     0.0.0.0/0                           64.42.53.240 all
> 3      64.42.53.240                    0.0.0.0/0    all

Yes -- assuming that you have MARK_IN_FORWARD=Yes. Otherwise, you need "3:F"
in the first column. But you can only make use of one of those rules -- see
below.

> ---------------------------------------------------------------------
> 
> So then with my understanding now would this work to combine the
> entries above. This seems easier to follow in shorewall docs with a single 
> ISP
> You warn left the low order byte 0 So maybe the only way to enter this is 
> above?
> I realize in the last post I was entering 512 instead of 2 below
> I  assumed that I could enter
> 2:203  0.0.0.0/0                           64.42.53.240 all
> 2:203  64.42.53.240                      0.0.0.0/0      all
> which would go out the second isp marked for class 3
> Is this wrong?

Yes -- You want:

2:13  0.0.0.0/0                           64.42.53.240 all
2:13  64.42.53.240                      0.0.0.0/0      all

But of course you really only can use one of those rules since you can only
shape output traffic and only one of those two rules will apply to that traffic.

And this above rule would work if it was a single
> ISP? Maybe to keep this simple I do better with an example
> given the same task to you how would you enter this?

Traffic shaping rules are exactly the same whether you have 1 ISP or 412
ISPs. They are independent of the number of ISPs and/or the setting of
HIGH_ROUTE_MARKS.

-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to