OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: timmu on February 22, 2016, 12:46:53 pm

Title: [SOLVED] adding (port) aliases -> can't do port forwarding to nonstandard ports
Post by: timmu on February 22, 2016, 12:46:53 pm
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

Title: Re: adding (port) aliases broken -> can't do port forwarding to nonstandard ports
Post by: weust on February 22, 2016, 02:49:36 pm
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.
Title: Re: adding (port) aliases broken -> can't do port forwarding to nonstandard ports
Post by: AdSchellevis on February 22, 2016, 03:15:46 pm
Your probably hitting this bug https://github.com/opnsense/core/issues/785 (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:

Code: [Select]
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.
Title: Re: adding (port) aliases broken -> can't do port forwarding to nonstandard ports
Post by: weust on February 22, 2016, 03:31:50 pm
Will test it when I get back home after the gym.
Title: Re: adding (port) aliases broken -> can't do port forwarding to nonstandard ports
Post by: weust on February 22, 2016, 09:12:57 pm
Ad, tested and works.
Nice job!
Title: Re: [SOLVED] adding (port) aliases -> can't do port forwarding to nonstandard ports
Post by: franco on February 23, 2016, 09:49:24 pm
All sorted out for tomorrow's 16.1.4. :)