OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Traffic shaping with virtio
« previous next »
  • Print
Pages: [1]

Author Topic: Traffic shaping with virtio  (Read 2583 times)

guest19228

  • Guest
Traffic shaping with virtio
« on: November 05, 2018, 12:48:21 am »
I have a new question, I could not find a satisfying answer for.
Is traffic shaping supported with virtio drivers?
The goal is:
  • most traffic should be shared evenly
  • sip traffic should get a reserved bandwith of 64kbit per channel but only when there is an active sip call, when there is no active sip call the bandwith should  be available for all other traffic
  • traffic coming from/to a specific port should get a higher priority
  • traffic from/to a specific IP address should get a higher priority
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Traffic shaping with virtio
« Reply #1 on: November 05, 2018, 06:15:45 am »
FreeBSD shaper doesn't really support priority queueing .. you could do something similar with WFQ.
Create 2 PIPEs with WFQ and all your bandwitdh for up and down. Go to queues and create for up and down one queue for VoIP and give it weight of 40, then 2 queues (up/down) for specific source and weight 20, again for port weight 20, then 2 queues for the rest, weight 10 .. and here you have to set mask to source or destination (read the help text). Then go to rules and create the specific rules with correct order for all queues in the correct direction (only choose one interface, not both).

VirtIO has problem, you might want switch to E1000 ..
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Traffic shaping with virtio
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2