Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Trafic Shaping issue

    Scheduled Pinned Locked Moved Traffic Shaping
    4 Posts 3 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      thomas7467
      last edited by

      Hi All,

      I've configured an OpenVPN tunnel between 2 sites with 2 Pfsense 2.2-release boxes :

      Site A: LAN 192.168.92.0/24
      Site B : LAN 192.168.93.0/24

      Tunnel works fine.

      Site B hosts an Alcatel OXO (IP 192.168.93.2).
      Site hosts an Alcatel IP Phone (IP 192.168.92.9).
      IP communication work fine through OpenVPN.

      Now, I'm trying to use Trafic shaping to allow 20% bandwith for Voip.

      I've used the trafic shaper wizard for initial configuration. I've created 2 floating rules, for using Qvoip for all trafic coming from my IPphone.

      But during ipphone calls testing the trafic won't use the queues I've configured - what could be wrong in my configuration?

      Thank you,

      Best regards,

      Thomas

      1.JPG
      2.JPG
      1.JPG_thumb
      2.JPG_thumb

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Pardon me… how exactly do you imagine the shaper to see the encrypted traffic?

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          If the VPN is primarily used for VoIP, then you can just prefer the OpenVPN traffic as if it were VoIP.  In fact it's easier because all the RTP, etc are in one firewall state.

          How you set that up is determined by which site is the server and which is the client.

          And it's easier if you only shape in one direction.  Or shape sent traffic at both ends.

          If you want to shape different types of traffic within the OpenVPN tunnel, things get a lot more complicated.  I think I got it sort of working but I had OpenVPN instances spinning 100% CPU after a time.  Removing the shaping fixed that.  At this point in time I'd consider it a not-ready-for-production hack.

          If you really want to shape VPN traffic differently, you might consider one tunnel for voice and one for everything else.  This would probably involve Voice VLANs at each site.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • T
            thomas7467
            last edited by

            Hi,

            Thank you for your replies - Sorry doktornotor, you've probably never been a newbie  ;) I thought shapping would happen before encryption for LAN sent traffic.

            Initially, I wanted to sent DATA and VoIP through VPN. according to your replies, I think I'll try to do my configuration like this :

            • DATA through VPN
            • VoIP through WAN without encryption, but with use of shaping, that should work?

            Following your advice Derelict, I shoud shape sent traffic at both ends, OpenVPN server and client sides?
            My goal is to connect 4 remote sites to a main sites, hosting Alcatel OXO and Data server.

            Thks,

            Thomas

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.