OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: lambrosgg on June 17, 2022, 04:34:52 PM

Title: Traffic shaper broken (even just setting a pipe gets ignored)
Post by: lambrosgg on June 17, 2022, 04:34:52 PM
I wanted to give priority to my main PC. My connection is 100mbps so I started with a pipe of 100mbps, then 2 queues with 90 and 10 weight respectively, then 2 rules: the 90 queue to my main PC ip and the 10 to my laptop ip. I thought i was good to go, but running speedtest on both computers simply gives priority to the one that started first. Downloading same file just splits the bandwidth, so the shaper doesn't work.

After many tries, I decided to just start by setting a simple pipe (no queues or rules), and to my surprise no matter what bandwidth I set there (I even tried 1 bit/s...) I get the full bandwidth of my connection on speedtest.

Is traffic shaper broken? Do I need to enable it somehow? What am I missing?

I am not an expert, but shouldn't there be an option to select the interface (WAN in my case) and upload or download on each pipe?
I have seen other guides setting up 2 pipes for download and upload, how does opnsense know which one is for which?

Thans in advance for any help.
Title: Re: Traffic shaper broken (even just setting a pipe gets ignored)
Post by: dinguz on June 18, 2022, 12:31:50 PM
You really need to provide additional info on your network layout, and screenshots of your current setup (from all traffic shaper subpages), otherwise it will be impossible to assist you.
Just configuring a pipe is not enough, you need to set rules which traffic gets directed to which pipe; maybe you forgot that?
Title: Re: Traffic shaper broken (even just setting a pipe gets ignored)
Post by: franco on June 20, 2022, 01:51:37 PM
The documentations guides provide real world outlines of what is required to properly set up the shaper. Not following them will lead to unexpected or no results at all, which is mostly due to the design of the underlying ipfw firewall component including its dummynet integration.

https://docs.opnsense.org/manual/shaping.html


Cheers,
Franco
Title: Re: Traffic shaper broken (even just setting a pipe gets ignored)
Post by: Vilhonator on June 20, 2022, 04:28:29 PM
Follow instructions on https://docs.opnsense.org/manual/how-tos/shaper_limit_per_user.html

When you are using ques, it means you are giving priority to IP based on priority vs total bandwidth going through the firewall (Your firewall is able to provide 100 mbps connection to both, you need to count total speed, not speed of your internet connection)