Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Update Alias with multible Host entries
« previous
next »
Print
Pages: [
1
]
Author
Topic: Update Alias with multible Host entries (Read 1265 times)
cybernik
Newbie
Posts: 3
Karma: 0
Update Alias with multible Host entries
«
on:
March 23, 2023, 04:03:21 pm »
I try to update the firewall alias rules with API but run into problems.
I can update a host entry in alias but cannot update multible hosts entries.
Where can I find some references to do this?
Maybe someone has already done such an update.
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Update Alias with multible Host entries
«
Reply #1 on:
March 23, 2023, 05:43:05 pm »
use browser dev-console to view api request payload when do similar update via gui?
Logged
cybernik
Newbie
Posts: 3
Karma: 0
Re: Update Alias with multible Host entries
«
Reply #2 on:
March 23, 2023, 08:33:36 pm »
Thx! That was a good hint!
I found no information in web about this.
For any one who run into the same problem:
To define multible hosts in an alias each IP Address has to be seperated by \n
See Examle:
{ "alias": { "name": "test", "content": "1.1.1.1\n2.2.2.2\n3.3.3.3", "enabled" : "1", "type" : "host"}}
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Update Alias with multible Host entries