Traffic Shaping

How to enable traffic shaping on WAN interface for non realtime traffic?
Thank you