Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
Question about applying firewall alias changes via API
« previous
next »
Print
Pages: [
1
]
Author
Topic: Question about applying firewall alias changes via API (Read 1083 times)
BondiBlueBalls
Newbie
Posts: 48
Karma: 6
Question about applying firewall alias changes via API
«
on:
July 20, 2023, 01:29:06 pm »
Hey, all.
I'm working on a little tool to automatically update a specific alias related to port forwarding for another app. I'm currently using three of the firewall/alias endpoints (get, getAliasUUID, and setItem), and everything is working perfectly.
My only issue is that the changes don't seem to be applied (equivalent to pressing "apply" in the UI). Is there an endpoint for applying these changes, or is that what the firewall plugin is for? (firewall/filter_base/apply) After looking at the firewall plugin endpoints, I figured that was just for rules.
Any advice would be appreciated. Thanks much!
Logged
BondiBlueBalls
Newbie
Posts: 48
Karma: 6
Re: Question about applying firewall alias changes via API
«
Reply #1 on:
July 25, 2023, 06:53:38 pm »
Turns out the "apply" button in the UI is equivalent to the "reconfigure" endpoint here:
https://docs.opnsense.org/development/api/core/firewall.html
All set. Thanks!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
Question about applying firewall alias changes via API