Change listening port via WebUI JSON?
Posted: Fri May 20, 2022 6:59 am
Hello,
My goal is to be able to update via curl request sent to the webUI. Trying to set up a script on my pfsense box to update the listening port deluge when my VPN forwarded port changes. I've messed around with a couple different JSON methods listed in various docs, but no luck.
I tried some of the various API calls listed in a couple places:
https://buildmedia.readthedocs.org/medi ... deluge.pdf
https://deluge.readthedocs.io/en/latest ... ebapi.html
I also checked the links in this thread: viewtopic.php?t=54524
Which pointed me to wayback machine here: https://web.archive.org/web/20150423143 ... n_api.html
All with no luck
I've tried:
And get the following response:
Am I using the wrong command? If so, is there a list anywhere?
Could really use some help from someone more knowledgeable. Thanks in advance.
My goal is to be able to update via curl request sent to the webUI. Trying to set up a script on my pfsense box to update the listening port deluge when my VPN forwarded port changes. I've messed around with a couple different JSON methods listed in various docs, but no luck.
I tried some of the various API calls listed in a couple places:
https://buildmedia.readthedocs.org/medi ... deluge.pdf
https://deluge.readthedocs.io/en/latest ... ebapi.html
I also checked the links in this thread: viewtopic.php?t=54524
Which pointed me to wayback machine here: https://web.archive.org/web/20150423143 ... n_api.html
All with no luck
I've tried:
Code: Select all
curl -b cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "core.set_config", "params": [{"listen_port":51111}], "id": 6}' http://192.168.3.183:8112/json
But no change to core.conf or the incoming port when I check in the webUI.HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: TwistedWeb
Date: Fri, 20 May 2022 06:23:51 GMT
Content-Type: application/json
Set-Cookie: _session_id=5d975461fd0f20df9271722eeae4b3672671cadddce1812270c9ba44f7a306d04472; Expires=Fri, 20 May 2022 07:23:51 GMT; Path=/json
{"result": null, "error": null, "id": 6}
Am I using the wrong command? If so, is there a list anywhere?
Could really use some help from someone more knowledgeable. Thanks in advance.