initial opnsense connections page
This commit is contained in:
9
bruno/bruno.json
Normal file
9
bruno/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "vpgen",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
8
bruno/collection.bru
Normal file
8
bruno/collection.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
auth {
|
||||
mode: basic
|
||||
}
|
||||
|
||||
auth:basic {
|
||||
username: {{opnsense_key}}
|
||||
password: {{opnsense_secret}}
|
||||
}
|
6
bruno/environments/dev.bru
Normal file
6
bruno/environments/dev.bru
Normal file
@@ -0,0 +1,6 @@
|
||||
vars {
|
||||
opnsense_key: 33NhXqaJwrWy1T4Qi60GK90RXJuS3PWIYwlwYPnQ8f5YPe/J1q/g6/l4bZ2/kJk71MFhwP+9mr+IiQPi
|
||||
}
|
||||
vars:secret [
|
||||
opnsense_secret
|
||||
]
|
28
bruno/opnsense-api/Get Interfaces.bru
Normal file
28
bruno/opnsense-api/Get Interfaces.bru
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
28
bruno/opnsense-api/Get Peers.bru
Normal file
28
bruno/opnsense-api/Get Peers.bru
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user