Reply To: Question regarding QoS, NetBalancing and Traffic shaping

Home Page Forums Network Management ZeroShell Question regarding QoS, NetBalancing and Traffic shaping Reply To: Question regarding QoS, NetBalancing and Traffic shaping

#50061

atheling
Member

@orallo wrote:

Good Morning Atheling,

Here is the output from the command you posted:

Thanks

I am seeing a couple of things in your capture that are either wrong or I don’t understand.

First,


Chain NB_CT_PRE (1 references)
pkts bytes target prot opt in out source destination
27717 3158K MARK all -- ETH01 * 0.0.0.0/0 0.0.0.0/0 MARK set 0x66
27717 3158K MARK all -- ETH01 * 0.0.0.0/0 0.0.0.0/0 MARK set 0x65

This is a problem in the patches I posted. You have two different Internet routes accessible via the same interface. My patches assumed only one destination per interface. The NB_CT_PRE chain only affects new traffic coming in from the Internet so you probably won’t notice an issue unless you are running publicly accessible servers on your LAN. But I will have to look into this and fix my changes.

Second:


Chain QoS (1 references)
pkts bytes target prot opt in out source destination
33130 3072K MARK all -- * * 0.0.0.0/0 0.0.0.0/0 MARK set 0x0
0 0 MARK all -- ETH01 * 172.16.1.112 0.0.0.0/0 MARK set 0xa
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 MARK match !0x0

This looks like it will only set a QoS value on packets coming in from ETH01 with a source address of 172.16.1.112. But If I understood your screen shots and explanation, ETH01 is your Internet connection. And the addresses on that should be in the 192.168.1.0/24 or 192.168.2.0/24 so no traffic will match this rule and everything will be classified as “default”.

Looks like you need to set this classification on your LAN interface rather than your WAN interface. Or don’t even set the interface in the matching rule, just the source address.