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 4 months ago

Recently created
Least recently created
Recently updated
Least recently updated
All gists 582

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 def fw_events(file, filter_ip, filter_type, clients_dir, limit):
2 """Format firewall drop events with dedup and counts"""
3 import glob
4 proto_map = {1: 'icmp', 6: 'tcp', 17: 'udp'}
5
6 ip_to_name = {}
7 for conf in glob.glob(f"{clients_dir}/*.conf"):
8 name = os.path.basename(conf).replace('.conf', '')
9 try:
10 with open(conf) as f:

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 // Logs
2 22/05 06:17 phone-helena-2 → pihole:dns-over-tls/tcp
3 22/05 06:39 phone-helena-2 → pihole (icmp)
4 22/05 04:34 phone-nuno → npm:web-ui-https/tcp (x2)
5
6 // Watch
7 22/05 06:17 fw phone-helena-2 → pihole:dns-over-tls/tcp drop
8 22/05 06:39 fw phone-helena-2 → pihole drop
9 22/05 16:14 wg phone-helena → 148.69.46.73 handshake

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 // Logs
2 22/05 06:17 phone-helena-2 → pihole:853/tcp
3 22/05 06:39 phone-helena-2 → pihole (icmp)
4 22/05 04:34 phone-nuno → npm:443/tcp (x2)
5
6 // Watch
7 22/05 06:17 fw phone-helena-2 → pihole:853/tcp drop
8 22/05 06:39 fw phone-helena-2 → pihole drop
9 22/05 16:14 wg phone-helena → 148.69.46.73 handshake

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/usr/bin/env bash
2
3 UI_ROW_WIDTH=${UI_ROW_WIDTH:-20}
4 UI_SECTION_WIDTH=${UI_SECTION_WIDTH:-44}
5
6 function ui::row() {
7 local label="$1" value="$2" width="${3:-$UI_ROW_WIDTH}"
8 printf " %-${width}s %s\n" "${label}:" "$value"
9 }

nuno / gistfile1.txt

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

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 user ↑2 ↓6 7 peers
2 ↳ no-proxmox
3 ↳ dns-restricted
4
5 user allows: 2 blocks: 6 7 peers
6 ↳ no-proxmox
7 ↳ dns-restricted

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1
2 ▸ Users
3 helena — 4 2 1 peers
4 ↳ no-lan
5 - 10.0.0.0/24 → lan
6 ↳ dns-restricted
7 + 10.0.0.103:53:udp → pihole:dns-udp
8 + 10.0.0.103:53:tcp → pihole:dns-tcp
9 - 10.0.0.103/32 → pihole

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 ────────────────────────────────────────────────
2 Firewall Rules
3 ────────────────────────────────────────────────
4
5 NAME DESCRIPTION ALLOWS BLOCKS PEERS
6 ────────────────────────────────────────────────────────────────────────────────────────
7
8 ▸ Gatas
9 gata gatinha 0 0 0 peers

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 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 3 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
Newer Older

Powered by Opengist ⋅ Load: 108ms⋅

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