OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 16.1 Legacy Series »
  • [SOLVED] adding (port) aliases -> can't do port forwarding to nonstandard ports
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] adding (port) aliases -> can't do port forwarding to nonstandard ports  (Read 4157 times)

timmu

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
[SOLVED] adding (port) aliases -> can't do port forwarding to nonstandard ports
« 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

« Last Edit: February 23, 2016, 09:49:01 pm by franco »
Logged

weust

  • Hero Member
  • *****
  • Posts: 644
  • Karma: 57
    • View Profile
Re: adding (port) aliases broken -> can't do port forwarding to nonstandard ports
« Reply #1 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.
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

AdSchellevis

  • Administrator
  • Hero Member
  • *****
  • Posts: 850
  • Karma: 163
    • View Profile
Re: adding (port) aliases broken -> can't do port forwarding to nonstandard ports
« Reply #2 on: February 22, 2016, 03:15:46 pm »
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:

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.
Logged

weust

  • Hero Member
  • *****
  • Posts: 644
  • Karma: 57
    • View Profile
Re: adding (port) aliases broken -> can't do port forwarding to nonstandard ports
« Reply #3 on: February 22, 2016, 03:31:50 pm »
Will test it when I get back home after the gym.
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

weust

  • Hero Member
  • *****
  • Posts: 644
  • Karma: 57
    • View Profile
Re: adding (port) aliases broken -> can't do port forwarding to nonstandard ports
« Reply #4 on: February 22, 2016, 09:12:57 pm »
Ad, tested and works.
Nice job!
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13671
  • Karma: 1175
    • View Profile
Re: [SOLVED] adding (port) aliases -> can't do port forwarding to nonstandard ports
« Reply #5 on: February 23, 2016, 09:49:24 pm »
All sorted out for tomorrow's 16.1.4. :)
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 16.1 Legacy Series »
  • [SOLVED] adding (port) aliases -> can't do port forwarding to nonstandard ports
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2