I’ve applied traffic policy on each sub-int (vif) (out) to shapre Download Traffic. (it works)
Now i’m trying to shape upload traffic.
I’ve applied another policy on WAN-INT (out) to shape upload traffic from each sub-int (so each VLAN or subnet)
Thanks to confirguation commands :
set traffic-policy shaper IA-SHAPE-WAN bandwidth ‘auto’
set traffic-policy shaper IA-SHAPE-WAN class 2 bandwidth ‘51920’
set traffic-policy shaper IA-SHAPE-WAN class 2 burst ‘128k’
set traffic-policy shaper IA-SHAPE-WAN class 2 ceiling ‘51920’
set traffic-policy shaper IA-SHAPE-WAN class 2 match ‘LAN1’
set traffic-policy shaper IA-SHAPE-WAN class 2 queue-type ‘fair-queue’
set traffic-policy shaper IA-SHAPE-WAN class 3 bandwidth ‘102400’
set traffic-policy shaper IA-SHAPE-WAN class 3 burst ‘128k’
set traffic-policy shaper IA-SHAPE-WAN class 3 ceiling ‘102400’
set traffic-policy shaper IA-SHAPE-WAN class 3 match ‘LAN2’
set traffic-policy shaper IA-SHAPE-WAN class 3 queue-type ‘fair-queue’
I tested with ip source destination, lan int , vif, … but anything works.
Hello, @Fab!
If you saying, that traffic-policy work for download direction, then the symmetric configuration at WAN interface must work for upload too. Let’s try to find out why it don’t.
Show please output of next commands, it allow us to see active configuration of traffic-policy:
/sbin/tc -g -s class show dev WAN-INT
/sbin/tc -g -s qdisc show dev WAN-INT
/sbin/tc -g -s filter show dev WAN-INT
No, it’s not necessary. By commands /sbin/tc ... we see effective configuration of traffic-policy, so restart will not help anything.
What results of tests you’ve got?
There is one surmise, that can explain situation.
Do you use SNAT on this router? According to traffic flow diagram, QoS made after all firewall actions:
So, if you use SNAT, when packet enter to traffic-policy, it source address must be already changed to external IP address and policy don’t apply to it.
If this is your situation, try to use other match criteria instead source address.