Naposledy aktivní 1 month ago

Revize 5e7dd9d4e005fcd736083a8bcb29e6e6ab273dab

gistfile1.txt Raw
1root@wireguard:~# grep -rn "while IFS.*peers::all\|for conf in.*\.conf\|peers::get_meta\|json::get\|peers::get_ip" \
2> /etc/wireguard/wgctl/commands/ | grep -v "list.command" | grep -v "\.git"
3/etc/wireguard/wgctl/commands/rule.command.sh:119: peer_rule=$(peers::get_meta "$peer_name" "rule")
4/etc/wireguard/wgctl/commands/rule.command.sh:132: name=$(json::get "$rule_file" "name")
5/etc/wireguard/wgctl/commands/rule.command.sh:134: desc=$(json::get "$rule_file" "desc")
6/etc/wireguard/wgctl/commands/rule.command.sh:137: n_allows=$(json::get "$rule_file" "allow_ips" | wc -l)
7/etc/wireguard/wgctl/commands/rule.command.sh:138: n_allow_ports=$(json::get "$rule_file" "allow_ports" | wc -l)
8/etc/wireguard/wgctl/commands/rule.command.sh:140: n_block_ips=$(json::get "$rule_file" "block_ips" | wc -l)
9/etc/wireguard/wgctl/commands/rule.command.sh:141: n_block_ports=$(json::get "$rule_file" "block_ports" | wc -l)
10/etc/wireguard/wgctl/commands/rule.command.sh:191: desc=$(json::get "$rule_file" "desc")
11/etc/wireguard/wgctl/commands/rule.command.sh:192: dns_redirect=$(json::get "$rule_file" "dns_redirect")
12/etc/wireguard/wgctl/commands/rule.command.sh:199: allow_ports=$(json::get "$rule_file" "allow_ports")
13/etc/wireguard/wgctl/commands/rule.command.sh:209: allow_ips=$(json::get "$rule_file" "allow_ips")
14/etc/wireguard/wgctl/commands/rule.command.sh:219: block_ips=$(json::get "$rule_file" "block_ips")
15/etc/wireguard/wgctl/commands/rule.command.sh:229: block_ports=$(json::get "$rule_file" "block_ports")
16/etc/wireguard/wgctl/commands/rule.command.sh:250: ip=$(peers::get_ip "$peer_name")
17/etc/wireguard/wgctl/commands/rule.command.sh:415: ip=$(peers::get_ip "$peer")
18/etc/wireguard/wgctl/commands/rule.command.sh:456: existing_rule=$(peers::get_meta "$peer" "rule")
19/etc/wireguard/wgctl/commands/rule.command.sh:459: ip=$(peers::get_ip "$peer")
20/etc/wireguard/wgctl/commands/rule.command.sh:465: ip=$(peers::get_ip "$peer")
21/etc/wireguard/wgctl/commands/rule.command.sh:498: existing_rule=$(peers::get_meta "$peer" "rule")
22/etc/wireguard/wgctl/commands/rule.command.sh:506: ip=$(peers::get_ip "$peer")
23/etc/wireguard/wgctl/commands/rule.command.sh:525: existing=$(peers::get_meta "$peer_name" "rule")
24/etc/wireguard/wgctl/commands/rule.command.sh:531: ip=$(peers::get_ip "$peer_name")
25/etc/wireguard/wgctl/commands/remove.command.sh:80: client_ip=$(peers::get_ip "$name")
26/etc/wireguard/wgctl/commands/remove.command.sh:87: assigned_rule=$(peers::get_meta "$name" "rule")
27/etc/wireguard/wgctl/commands/watch.command.sh:100: for conf in "$(ctx::clients)"/*.conf; do
28/etc/wireguard/wgctl/commands/fw.command.sh:56: ip=$(peers::get_ip "$peer")
29/etc/wireguard/wgctl/commands/inspect.command.sh:49: ip=$(peers::get_ip "$name")
30/etc/wireguard/wgctl/commands/inspect.command.sh:51: rule=$(peers::get_meta "$name" "rule")
31/etc/wireguard/wgctl/commands/inspect.command.sh:78: rule=$(peers::get_meta "$name" "rule")
32/etc/wireguard/wgctl/commands/inspect.command.sh:89: desc=$(json::get "$rule_file" "desc")
33/etc/wireguard/wgctl/commands/inspect.command.sh:90: dns_redirect=$(json::get "$rule_file" "dns_redirect")
34/etc/wireguard/wgctl/commands/inspect.command.sh:95: allow_ports=$(json::get "$rule_file" "allow_ports")
35/etc/wireguard/wgctl/commands/inspect.command.sh:96: allow_ips=$(json::get "$rule_file" "allow_ips")
36/etc/wireguard/wgctl/commands/inspect.command.sh:97: block_ips=$(json::get "$rule_file" "block_ips")
37/etc/wireguard/wgctl/commands/inspect.command.sh:98: block_ports=$(json::get "$rule_file" "block_ports")
38/etc/wireguard/wgctl/commands/inspect.command.sh:141: ip=$(peers::get_ip "$name")
39/etc/wireguard/wgctl/commands/logs.command.sh:88: filter_ip=$(peers::get_ip "$name")
40/etc/wireguard/wgctl/commands/logs.command.sh:167: client_ip=$(peers::get_ip "$name")
41/etc/wireguard/wgctl/commands/audit.command.sh:82: ip=$(peers::get_ip "$peer_name")
42/etc/wireguard/wgctl/commands/audit.command.sh:83: rule=$(peers::get_meta "$peer_name" "rule")
43/etc/wireguard/wgctl/commands/audit.command.sh:153: ip=$(peers::get_ip "$peer_name")
44/etc/wireguard/wgctl/commands/audit.command.sh:170: r=$(peers::get_meta "$peer_name" "rule")
45/etc/wireguard/wgctl/commands/audit.command.sh:178: name=$(json::get "$rule_file" "name")
46/etc/wireguard/wgctl/commands/group.command.sh:115: name=$(json::get "$group_file" "name")
47/etc/wireguard/wgctl/commands/group.command.sh:116: desc=$(json::get "$group_file" "desc")
48/etc/wireguard/wgctl/commands/group.command.sh:120: mapfile -t peers_list < <(json::get "$group_file" "peers")
49/etc/wireguard/wgctl/commands/group.command.sh:191: desc=$(json::get "$group_file" "desc")
50/etc/wireguard/wgctl/commands/group.command.sh:196: mapfile -t peers_list < <(json::get "$group_file" "peers")
51/etc/wireguard/wgctl/commands/group.command.sh:216: ip=$(peers::get_ip "$peer_name")
52/etc/wireguard/wgctl/commands/group.command.sh:217: rule=$(peers::get_meta "$peer_name" "rule")