Skip to content

Instantly share code, notes, and snippets.

View 1977er's full-sized avatar

Oliver Krüger 1977er

View GitHub Profile
@1977er
1977er / gist:7ed4ba1028b903a8957be8bdf61beecb
Created June 3, 2023 10:34
root@UFU-FWH-E138-ScheibenSW-Technik1:~# ffh_debug_info
root@UFU-FWH-E138-ScheibenSW-Technik1:~# ffh_debug_info
==================================
gluon-info:
==================================
Hostname: UFU-FWH-E138-ScheibenSW-Technik1
MAC address: 74:ac:b9:a7:91:6b
Hardware model: Ubiquiti EdgeRouter X
Gluon version / Site version: v2022.1.3 / vH35
@1977er
1977er / gist:3c52bf5ffba9273ef54766f286a87c6f
Created June 3, 2023 10:32
root@UFU-FWH-E106-Woermannstr-Technik1:~# ffh_debug_info
root@UFU-FWH-E106-Woermannstr-Technik1:~# ffh_debug_info
==================================
gluon-info:
==================================
Hostname: UFU-FWH-E106-Woermannstr-Technik1
MAC address: 74:ac:b9:a7:77:37
Hardware model: Ubiquiti EdgeRouter X
Gluon version / Site version: v2022.1.3 / vH35
@1977er
1977er / gist:aac73949049e27e30145b7e29af6bfa0
Created May 7, 2023 15:13
root@UFU-FWH-E119-Tresckowstr-Technik-hinten:/# logread
Sat May 6 13:55:00 2023 daemon.info micrond[2036]: Sleeping for 45 seconds.
Sat May 6 13:55:45 2023 daemon.info micrond[2036]: Servers answer is weird. Aborting.
Sat May 6 14:00:00 2023 daemon.info micrond[2036]: Sleeping for 54 seconds.
Sat May 6 14:00:54 2023 daemon.info micrond[2036]: Servers answer is weird. Aborting.
Sat May 6 14:05:00 2023 daemon.info micrond[2036]: Sleeping for 47 seconds.
Sat May 6 14:05:47 2023 daemon.info micrond[2036]: Servers answer is weird. Aborting.
Sat May 6 14:10:00 2023 daemon.info micrond[2036]: Sleeping for 1 seconds.
Sat May 6 14:10:01 2023 daemon.info micrond[2036]: Servers answer is weird. Aborting.
Sat May 6 14:15:00 2023 daemon.info micrond[2036]: Sleeping for 46 seconds.
Sat May 6 14:15:46 2023 daemon.info micrond[2036]: Servers answer is weird. Aborting.
@1977er
1977er / gist:3e7b83d6e3e4459c4574510cc4be0b98
Created May 7, 2023 15:11
root@UFU-FWH-E119-Tresckowstr-Technik-hinten:~# dmesg
root@UFU-FWH-E119-Tresckowstr-Technik-hinten:~# dmesg
[985439.270601] 00000000 00000000 806fdc74 8145f748 ffffefff 00000000 ffffffea 00000000
[985439.287412] 8145f754 00000653 807cb9e0 ffffffff 00000000 00000000 00000000 80700000
[985439.304223] 00000009 8087428c 8087428c 80980000 00000000 803a42ec 00000000 80980000
[985439.321035] ...
[985439.326067] Call Trace:
[985439.331107] [<80007fc0>] show_stack+0x30/0x100
[985439.340116] [<8031f7c8>] dump_stack+0x9c/0xcc
[985439.348954] [<8002fe64>] __warn+0xc0/0x12c
[985439.357268] [<8002ff5c>] warn_slowpath_fmt+0x8c/0xac
Apr 20 00:30:20 sn02 kernel: BUG: kernel NULL pointer dereference, address: 0000000000000498
Apr 20 00:30:20 sn02 kernel: #PF: supervisor read access in kernel mode
Apr 20 00:30:20 sn02 kernel: #PF: error_code(0x0000) - not-present page
Apr 20 00:30:20 sn02 kernel: PGD 0 P4D 0
Apr 20 00:30:20 sn02 kernel: Oops: 0000 [#1] SMP PTI
Apr 20 00:30:20 sn02 kernel: CPU: 6 PID: 18454 Comm: wg Tainted: G OE 5.10.0-21-amd64 #1 Debian 5.10.162-1
Apr 20 00:30:20 sn02 kernel: Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.1-0-g3208b098f51a-prebuilt.qemu.org 04/01/2014
Apr 20 00:30:20 sn02 kernel: RIP: 0010:wg_get_device_dump+0x1db/0x96b [wireguard]
Apr 20 00:30:20 sn02 kernel: Code: cb af 5e c2 48 89 ef 89 c3 e8 a1 67 20 c2 85 db 0f 85 95 06 00 00 4d 85 e4 0f 84 76 03 00 00 48 8b 3c 24 49 8b 16 48 8b 47 60 <48> 8b 92 98 04 00 00 48 85 c0 0f 85 df 02 00 00 48 89 57 60 41 8b
Apr 20 00:30:20 sn02 kernel: RSP: 0018:ffffba9c00fdfb28 EFLAGS: 00010293
@1977er
1977er / lld-wrapper.sh
Created July 11, 2020 22:49
Zabbix: LowLevelDiscovery json/data wrapper (needed for legacy versions)
#!/bin/bash
# usage:
# $ cat input.txt
# dom01
# dom02
# dom10
# dom23
#
# cat input.txt | ./lld-wrapper.sh "#FOO"
# Timings des DHCP auf einem FF Knoten messen
time udhcpc -n -q -s /bin/true -t 1 -i br-client 2>&1 | grep real | tr "\t" " "
@1977er
1977er / testping.sh
Created March 1, 2017 12:55
Sends ping telemetry to server
#!/bin/sh
descr=$(uname -n)
job=$(uname -n | cut -d"-" -f3)
dest="fdca:ffee:8::2001"
count=5
# do not change below here
result=$(ping $dest -c $count)
@1977er
1977er / customize-test-sn.sh
Last active February 21, 2017 11:19
test-sn customization
# test-sn06
# ---------
uci set system.@system[0].hostname='test-ok-sn06'
echo "12:7c:82:64:22:96" > /lib/gluon/core/sysconfig/primary_mac
uci set network.wan.macaddr='12:7c:82:64:22:90'
uci set network.client.macaddr='06:6f:ac:a2:10:01'
uci set network.bat0.macaddr='06:6f:ac:a2:10:01'
uci set network.mesh_vpn.macaddr='12:7c:82:64:22:96'

Keybase proof

I hereby claim:

  • I am 1977er on github.
  • I am 1977er (https://keybase.io/1977er) on keybase.
  • I have a public key ASAysO-3sJLw5gtzY4voeyLprYK13ROBg4O2zsSm_3iwvwo

To claim this, I am signing this object: