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

All gists

Recently created
Least recently created
Recently updated
Least recently updated

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 root@wireguard:/etc/wireguard/wgctl# wgctl logs --fw
2
3 ────────────────────────────────────────────────
4 WireGuard Activity Log
5 ────────────────────────────────────────────────
6
7 root@wireguard:/etc/wireguard/wgctl# wgctl logs --limit 5
8
9 ────────────────────────────────────────────────
10 WireGuard Activity Log

nuno / gistfile1.txt

0 likes
0 forks
1 files
Last active 5 months ago
1 ed -n '/^def fw_events/,/^def [a-z]/p' /etc/wireguard/wgctl/core/json_helper.py
2 def fw_events(file, filter_ip, filter_type, clients_dir, net_file, limit):
3 """
4 Format firewall drop events with dedup, counts, and service annotation.
5 Output per line: ts|client|dest_ip|dest_port|proto|service_name|count
6 """
7 import glob
8 from datetime import datetime
9 proto_map = {1: 'icmp', 6: 'tcp', 17: 'udp'}
10

nuno / gistfile1.txt

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

Powered by Opengist ⋅ Load: 97ms⋅

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