Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
How to post firewall floating rules using the API?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to post firewall floating rules using the API? (Read 1294 times)
kolee.da44
Newbie
Posts: 1
Karma: 0
How to post firewall floating rules using the API?
«
on:
February 04, 2022, 10:49:13 am »
้hi
I'm using the firewall plugins API to create rules - lan, wan, etc. but not able to create floating rules. The floating rule is only created when I select multiple interfaces but not when a single or no interface is selected. In case no interface is selected, the rule is added to LAN by default whereas I want it to be added to floating rules as in the opnsense frontend.
UFABET
Any help is greatly appreciated.
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: How to post firewall floating rules using the API?
«
Reply #1 on:
February 04, 2022, 11:09:34 am »
hi
dont think its possible for now
model dont have <floating> field and have "lan" default value for the <interface> field
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
How to post firewall floating rules using the API?