Core: Unable to use port ranges in traffic shaper

Created on 28 Jan 2019  路  6Comments  路  Source: opnsense/core

When trying to create firewall shaper rules. The UI will not allow entering of port ranges for _dst-port_ or _src-port_ fields. Please see example marked up screen capture.

image

bug

All 6 comments

I'm seeing this same behavior, was trying to set up a rule to prioritize mosh traffic, which uses a range of UDP ports.

I think this worked by accident a long time ago, our port validator seems to be missing support for ranges. I'll put it on my list.

Do I test this patch by running the dev branch or can I test this patch using production 18.7.10_3-amd64?

I think it fits 18.7 too, we'er very busy with 19.1 at the moment, so you have to test for yourself to be sure.

Is there no way to use an alias for these fields? That, comma separated, or by using tab as shown here?
image

The image shows a list of non-contiguous ports that I'm trying to use in two separate traffic shaper rules, and I just updated to 20.1.3 from 19.7.8 in hopes of fixing this. In _both_ releases, I can only enter one range. It will accept one port at a time, or a single range, but not a combination. I tried the same in Src-port just to test and it's the same result.

I even tried manually downloading
PortField.php
and
TrafficShaper.xml
and updating them in their respective folders via ssh, but the issue persists.

Is there something I'm missing? Has anyone else been able to use aliases or more than one range per rule?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

icedream picture icedream  路  4Comments

TransLunarInjection picture TransLunarInjection  路  7Comments

Stephanowicz picture Stephanowicz  路  6Comments

darkain picture darkain  路  4Comments

maurice-w picture maurice-w  路  4Comments