All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

nuno

Joined 6 months ago

Recently created
Least recently created
Recently updated
Least recently updated
All gists 584

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 Usage: wgctl rule <subcommand> [options]
2
3 Manage firewall rules with inheritance support.
4 Rules can extend base rules to compose reusable access policies.
5 Service names from 'wgctl net' can be used instead of raw IPs/ports.
6
7 Subcommands:
8 list, ls List all rules
9 show, inspect Show rule details and inheritance
10 add, new, create Create a new rule

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 ────────────────────────────────────────────────
2 Activity Monitor (last 24h)
3 ────────────────────────────────────────────────
4
5 desktop-roboclean ↓9MB ↑338MB 0 drops
6
7 desktop-zephyr ↓102MB ↑83GB 0 drops
8
9 phone-fred ↓29MB ↑896MB 0 drops

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 root@wireguard:/etc/wireguard/wgctl# wgctl activity
2
3 ────────────────────────────────────────────────
4 Activity Monitor (last 24h)
5 ────────────────────────────────────────────────
6
7 desktop-roboclean ↓9MB ↑338MB 0 drops
8
9 desktop-zephyr ↓98MB ↑79GB 0 drops

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 desktop-roboclean ↓9MB ↑338MB 0 drops 0 reconnects
2
3 desktop-zephyr ↓97MB ↑77GB 0 drops 0 reconnects
4
5 phone-fred ↓29MB ↑896MB 0 drops 0 reconnects
6
7 phone-helena ↓1GB ↑53MB 4 drops 0 reconnects
8 → pihole 4 drops
9
10 phone-helena-2 ↓9MB ↑22MB 21 drops 0 reconnects

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 wgctl activity
2
3 ────────────────────────────────────────────────
4 Activity Monitor (last 24h)
5 ────────────────────────────────────────────────
6
7 ↓0B ↑0B 1 drops 0 reconnects
8 → (0) 1 drops
9
10 phone-helena ↓0B ↑0B 4 drops 0 reconnects

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 ────────────────────────────────────────────────
2 Activity — Live Stream (Ctrl+C to stop)
3 ────────────────────────────────────────────────
4
5 04:19 wg phone-nuno 94.63.0.129 attempt
6 04:19 wg phone-nuno 94.63.0.129 attempt
7 04:19 wg phone-nuno 94.63.0.129 attempt
8 04:19 wg phone-nuno 94.63.0.129 attempt
9 04:19 wg phone-nuno 94.63.0.129 attempt
10 04:19 wg phone-nuno 94.63.0.129 attempt

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 def net_resolve(file, name):
2 """Resolve service name to ip or ip:port:proto lines"""
3 data = _net_read(file)
4 if ':' in name:
5 svc_name, port_name = name.split(':', 1)
6 if svc_name not in data:
7 print(f"Error: Service not found: {svc_name}", file=sys.stderr)
8 sys.exit(1)
9 svc = data[svc_name]
10 ip = svc.get('ip', '')

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 root@wireguard:/etc/wireguard/wgctl# grep "^def " /etc/wireguard/wgctl/core/json_helper.py
2 def get(file, key):
3 def set_key(file, key, value):
4 def delete_key(file, key):
5 def append(file, key, value):
6 def remove_value(file, key, value):
7 def cat(file):
8 def has_key(file, key):
9 def filter_values(file, key, value):
10 def last_event(file, key, field, client):

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 #!/usr/bin/env bash
2
3 # ============================================
4 # Lifecycle
5 # ============================================
6
7 function cmd::watch::on_load() {
8 flag::register --type
9 flag::register --name
10 flag::register --peers

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 #!/usr/bin/env bash
2
3 FW_EVENTS_LOG="$(ctx::fw_events_log)"
4 WG_EVENTS_LOG="$(ctx::events_log)"
5
6 function cmd::logs::on_load() {
7 flag::register --name
8 flag::register --type
9 flag::register --since
10 flag::register --limit
Newer Older

Powered by Opengist ⋅ Load: 99ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ KrilHub