OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: kabrutus on January 25, 2016, 07:47:39 pm

Title: dynamic traffic shaping
Post by: kabrutus on January 25, 2016, 07:47:39 pm
Hi all,

I am new to opensense.  I am coming from a fortinet world.  Is this possible?

2 physical ports
WAN 10x10 upload & download
LAN
2 LAN VLANS
VLAN100
VLAN200
I would like to setup traffic shaping based on VLAN and usage. 

I would like to have a guaranteed 5mbps for both VLANS, but have the ability to use a max of 9mbps if the bandwidth is available.  Once other VLAN needs bandwidth, it will take if from the VLAN that is using it and regulate it back to 5mbps max.
Is this possible with opensense?

thanks
Title: Re: dynamic traffic shaping
Post by: kabrutus on January 29, 2016, 03:38:06 pm
anyone?
Title: Re: dynamic traffic shaping
Post by: AdSchellevis on January 29, 2016, 05:00:42 pm
Hi kabrutus,

You can set the max per interface, but you can not shape in relation to another interface.
Maybe you can shape your traffic on the outbound interface and use queues to prioritize.

We use ipfw/dummynet to do the shaping in OPNsense (https://www.freebsd.org/cgi/man.cgi?ipfw%288%29 (https://www.freebsd.org/cgi/man.cgi?ipfw%288%29)), there is a burst feature but in FreeBSD 10.1 it didn't function correctly.
Maybe it is an option to test this again now we are on 10.2, if you would like to test this feature, you can edit this file:

Code: [Select]
/usr/local/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/forms/dialogPipe.xml

And uncomment the burst section.

Regards,

Ad
Title: Re: dynamic traffic shaping
Post by: franco on January 29, 2016, 09:35:41 pm
Issue link for reference: https://github.com/opnsense/core/issues/226