Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hello, and thank you for your wonderful work.
I'm trying to add a rule via your API (JSON) with the source matched to an alias list.
if I query the rules created via the interface the result is similar to:
"source":{"address":"pfB_PRI1_v4"}
obviously if specific
"src": "any",
it works and creates the rule
I've tried in multiple ways and with various syntaxes [] but I can't:
example:
curl -k -u 'user:password' -X 'POST'
'https://192.168.11.252/api/v1/firewall/rule'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"apply": false,
"descr": "TEST RULE API",
"direction": "any",
"disabled": true,
"dst": "any",
"floating": false,
"interface": [
"wan"
],
"ipprotocol": "inet",
"log": false,
"protocol": "any",
"quick": false,
"src": {
"address": "pfB_TEST_v4"
},
"tcpflags_any": false,
"tcpflags1": [
"fin"
],
"tcpflags2": [
"fin"
],
"top": false,
"type": "block"
}'
I'm definitely doing something wrong, can you help me
Beta Was this translation helpful? Give feedback.
All reactions