Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Feature Request: API - Firewall - alias_util - Add
« previous
next »
Print
Pages: [
1
]
Author
Topic: Feature Request: API - Firewall - alias_util - Add (Read 4926 times)
cbass
Newbie
Posts: 4
Karma: 0
Feature Request: API - Firewall - alias_util - Add
«
on:
May 29, 2020, 06:46:15 am »
I've been testing out the API, specifically Firewall Module, alias_util controller, and add command. All seems to work when trying to add to a host type with an ip address but I have a specific application where I would like to add using a hostname or FQDN.
Looking at the AliasUtilController.php source, I see the addAction function first checks if the request contains "address" and then checks if it contains valid IP Addressing notation.
My request is to add the option of adding "hostname" or "fqdn" instead of just "address". I don't know if this was added in later releases of Opnsense as I'm running 19.7.5 but if it was, could you please let me know? I didn't see anything specific to this in the release notes for newer releases.
Thank you and appreciate all the hard work going into making Opnsense.
Logged
ManBat
Newbie
Posts: 15
Karma: 0
Re: Feature Request: API - Firewall - alias_util - Add
«
Reply #1 on:
June 07, 2020, 04:25:41 pm »
Hi there,
Can you share a snippet of code where you have this working because I get, variably:
{"status":"failed","status_msg":"non existing alias <aliasname>"}
for a post to /api/firewall/alias_util/add/test
For what it's worth I have also tried addItem but that also fails.
Cheers,
MB
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Feature Request: API - Firewall - alias_util - Add