Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
API commands for Wireguard: how to "save" changes?
« previous
next »
Print
Pages: [
1
]
Author
Topic: API commands for Wireguard: how to "save" changes? (Read 2014 times)
mdbraber
Newbie
Posts: 4
Karma: 1
API commands for Wireguard: how to "save" changes?
«
on:
January 20, 2020, 11:36:11 pm »
Hi,
I'm using the API to change wireguard settings (/server/toggleserver). This is reflected fine in the GUI, but it's not effective until I hit "save" in the GUI. I can't get it to directly "activate" using API commands. I've tried /general/set and it gives back {"result":"saved"} but it still doesn't work until I manually hit "Save" in the GUI on wireguard settings.
Any tips?
Logged
mdbraber
Newbie
Posts: 4
Karma: 1
Re: API commands for Wireguard: how to "save" changes?
«
Reply #1 on:
January 21, 2020, 07:44:18 am »
After looking through some code I found there's an undocumented command "/wireguard/service/reconfigure". Upon executing that command it does the trick.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
API commands for Wireguard: how to "save" changes?