Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
API Destination NAT
« previous
next »
Print
Pages: [
1
]
Author
Topic: API Destination NAT (Read 989 times)
theGinger
Newbie
Posts: 1
Karma: 0
API Destination NAT
«
on:
January 12, 2024, 06:52:28 pm »
Hi folks!
I'm new to OPNSense and the forum here. I'm a recent convert from pfSense and was thrilled to see there was an API and a few Terraform providers around even if none of them are complete.
Working on a project where I would like to treat some OPNSense virtual appliances like cattle (its my home setup but its complicated for many reasons) and I was reading through the documentation and I don't see a way to create a DNAT rule (Port Forward) in the core API or in the os-firewall extension plugin.
My questions: is this intentional? Are there technical hurdles to implementing DNAT rules in the API?
Someone else had asked a similar question a few years back
https://forum.opnsense.org/index.php?topic=30356.0
but this was all I could find on the forum simmilar to my question here.
Thanks in Advance!
-The Ginger
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: API Destination NAT
«
Reply #1 on:
January 12, 2024, 11:03:41 pm »
note: not speaking for devs nor the project. Sure I'll be corrected if I got this wrong.
The api is not feature-complete ie. not everything done via the UI and config files can be done via the api.
It might take a while, see
https://docs.opnsense.org/development/guidelines/basics.html
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1601
Karma: 176
Re: API Destination NAT
«
Reply #2 on:
January 13, 2024, 09:08:43 am »
Right now it seems like they incrementally working on making the os-firewall plugin more feature rich so that one day it can supersede the legacy firewall implementation. It also looks like from the commits that theyre working on implementing the plugin into the core.
https://github.com/opnsense/core/issues/6390
Logged
Hardware:
DEC740
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
API Destination NAT