nuno ha revisionato questo gist 1 month ago. Vai alla revisione
1 file changed, 32 insertions
gistfile1.txt(file creato)
| @@ -0,0 +1,32 @@ | |||
| 1 | + | root@wireguard:/etc/wireguard/wgctl# wgctl hosts add --ip 148.69.46.73 --name helena-wan --desc "Helena WAN" --tags isp,wan,helena | |
| 2 | + | Traceback (most recent call last): | |
| 3 | + | File "/etc/wireguard/wgctl/core/json_helper.py", line 2949, in <module> | |
| 4 | + | commands[cmd](args) | |
| 5 | + | File "/etc/wireguard/wgctl/core/json_helper.py", line 2929, in <lambda> | |
| 6 | + | 'hosts_add': lambda args: hosts_add(args[0], args[1], args[2], args[3], | |
| 7 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 8 | + | File "/etc/wireguard/wgctl/core/json_helper.py", line 2747, in hosts_add | |
| 9 | + | _hosts_write(file, data) | |
| 10 | + | File "/etc/wireguard/wgctl/core/json_helper.py", line 2674, in _hosts_write | |
| 11 | + | with open(file, 'w') as f: | |
| 12 | + | ^^^^^^^^^^^^^^^ | |
| 13 | + | FileNotFoundError: [Errno 2] No such file or directory: '/etc/wireguard/.wgctl/.wgctl/hosts.json' | |
| 14 | + | => OK: ✅ 🔒 Added host: 148.69.46.73 → helena-wan | |
| 15 | + | root@wireguard:/etc/wireguard/wgctl# wgctl hosts list | |
| 16 | + | => WARN: ⚠️ 🔒 No hosts configured. Use 'wgctl hosts add' to add one. | |
| 17 | + | root@wireguard:/etc/wireguard/wgctl# wgctl hosts add --ip 94.63.0.129 --name nuno-home --tags home | |
| 18 | + | Traceback (most recent call last): | |
| 19 | + | File "/etc/wireguard/wgctl/core/json_helper.py", line 2949, in <module> | |
| 20 | + | commands[cmd](args) | |
| 21 | + | File "/etc/wireguard/wgctl/core/json_helper.py", line 2929, in <lambda> | |
| 22 | + | 'hosts_add': lambda args: hosts_add(args[0], args[1], args[2], args[3], | |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 24 | + | File "/etc/wireguard/wgctl/core/json_helper.py", line 2747, in hosts_add | |
| 25 | + | _hosts_write(file, data) | |
| 26 | + | File "/etc/wireguard/wgctl/core/json_helper.py", line 2674, in _hosts_write | |
| 27 | + | with open(file, 'w') as f: | |
| 28 | + | ^^^^^^^^^^^^^^^ | |
| 29 | + | FileNotFoundError: [Errno 2] No such file or directory: '/etc/wireguard/.wgctl/.wgctl/hosts.json' | |
| 30 | + | => OK: ✅ 🔒 Added host: 94.63.0.129 → nuno-home | |
| 31 | + | root@wireguard:/etc/wireguard/wgctl# wgctl hosts list | |
| 32 | + | => WARN: ⚠️ 🔒 No hosts configured. Use 'wgctl hosts add' to add one. | |
Più nuovi
Più vecchi