[SOLVED] adding (port) aliases -> can't do port forwarding to nonstandard ports

Started by timmu, February 22, 2016, 12:46:53 PM

Previous topic - Next topic
Let's say I want to forward port 5901 to my lan, but it seems that I can't enter non-standard port numbes in any of the port selection boxes.

I tried to add an alias for 5901 port, but it seems that the 'Save' button does essentially nothing.

I can work around it by directly modifying config.xml and defining the resource.


Versions    OPNsense 16.1.3-amd64
FreeBSD 10.2-RELEASE-p12
OpenSSL 1.0.2f 28 Jan 2016


I have several port aliases for my consoles.
Although I did create them in an older version, pre-16.1.x.

Just tested it here, and the Save button looks pressed (visual) but nothing happens.
Cancel button does work.
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

Your probably hitting this bug https://github.com/opnsense/core/issues/785, which will be fixed in the next release.

If you want to download the fix manually, just run this on the console:

curl -o /usr/local/www/firewall_aliases_edit.php https://raw.githubusercontent.com/opnsense/core/master/src/www/firewall_aliases_edit.php

Sorry for the inconvenience.

Will test it when I get back home after the gym.
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

Ad, tested and works.
Nice job!
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.