1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00
ctrl/doc/example-messages/flush-dns-restart-wireguard.json

22 lines
647 B
JSON
Raw Normal View History

2022-03-11 10:44:19 +00:00
[
{
"toNodes": ["ship1","ship2"],
"method": "REQCliCommand",
"methodArgs": [
"bash",
"-c",
"cat /etc/hostname && systemd-resolve --flush-caches &&wg-quick down wg0 && sleep 2 && wg-quick up wg0"
],
"replyMethod": "REQToFile",
"ACKTimeout": 20,
"retries": 3,
"replyACKTimeout": 20,
"replyRetries": 3,
"methodTimeout": 20,
"replyMethodTimeout": 120,
"directory": "system/wireguard",
"fileName": "wireguard-down-up.log",
"relayViaNode": "central",
"relayReplyMethod": "REQToConsole"
}
]