OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: in2opnsense on February 09, 2017, 06:08:22 pm

Title: Google Fiber / Enabling ToS for packets to allow Full Speed Uploads
Post by: in2opnsense on February 09, 2017, 06:08:22 pm
I noticed this post was posted some time ago addressing this issue @ https://forum.opnsense.org/index.php?topic=1414.0 (https://forum.opnsense.org/index.php?topic=1414.0)

Currently, I have OPNsense 17.1 installed and basically working via VLAN 2 on my WAN interface.

The above form post stated the following needs to "scrub out":

scrub out on $WAN proto udp from port 67 to port 68 set-tos 0x40 # set DHCP packets to class 2
scrub out on $WAN proto igmp set-tos 0xC0 # set IGMP packets to class 6
scrub out on $WAN set-tos 0x60 # set all other packets to class 3


What I am wondering, is how to enable these rules for ToS for packets on my OPNSense Router to allow for the full upload bandwidth, etc? If so, I would like to know how. Thanks in Advance
Title: Re: Google Fiber / Enabling ToS for packets to allow Full Speed Uploads
Post by: djGrrr on February 09, 2017, 08:34:08 pm
After further testing it was realized that these rules are not enough to enable full upload speeds, as these rules are only applied to the traffic inside the VLAN, whereas the Class Of Service that google fiber uses exists on the outer part of the packet.

To do this properly, a new "set priority" pass rule needs to be used, but there is currently no support in the OPNsense UI yet for this.
Title: Re: Google Fiber / Enabling ToS for packets to allow Full Speed Uploads
Post by: in2opnsense on February 09, 2017, 09:49:11 pm
Thanks for the reply djGrr. I assume this can be manually enabled via the command line, but probably not officially supported? If not, how could I request this to be considered/added to the next release?
Title: Re: Google Fiber / Enabling ToS for packets to allow Full Speed Uploads
Post by: djGrrr on February 10, 2017, 02:56:46 am
After seeing your post I actually made a patch to add in support for setting and matching on the priority under advanced rules, hopefully this will make it into 17.1.2. This should in theory allow you to create the needed rules through the UI to get full upload speed with Google Fiber.

If you could make it to the OPNsense IRC channel and contact me there, I should be able to help you test out the patch to see if it does solve the GF upload speed issue.