initial opnsense connections page

This commit is contained in:
2024-11-02 01:26:41 -07:00
parent 3b2ed4ddea
commit 922e4c0580
12 changed files with 254 additions and 4 deletions

9
bruno/bruno.json Normal file
View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "vpgen",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

8
bruno/collection.bru Normal file
View File

@@ -0,0 +1,8 @@
auth {
mode: basic
}
auth:basic {
username: {{opnsense_key}}
password: {{opnsense_secret}}
}

View File

@@ -0,0 +1,6 @@
vars {
opnsense_key: 33NhXqaJwrWy1T4Qi60GK90RXJuS3PWIYwlwYPnQ8f5YPe/J1q/g6/l4bZ2/kJk71MFhwP+9mr+IiQPi
}
vars:secret [
opnsense_secret
]

View File

@@ -0,0 +1,28 @@
meta {
name: Get Interfaces
type: http
seq: 2
}
post {
url: https://opnsense.home/api/wireguard/service/show
body: json
auth: inherit
}
headers {
Content-Type: application/json
Accept: application/json
}
body:json {
{
"current": 1,
"rowCount": 7,
"sort": {},
"searchPhrase": "",
"type": [
"interface"
]
}
}

View File

@@ -0,0 +1,28 @@
meta {
name: Get Peers
type: http
seq: 1
}
post {
url: https://opnsense.home/api/wireguard/service/show
body: json
auth: inherit
}
headers {
Content-Type: application/json
Accept: application/json
}
body:json {
{
"current": 1,
"rowCount": 7,
"sort": {},
"searchPhrase": "",
"type": [
"peer"
]
}
}