Skip to content

Instantly share code, notes, and snippets.

View networkop's full-sized avatar
🙏

Michael Kashin networkop

🙏
View GitHub Profile
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active February 23, 2025 11:44
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@navarrothiago
navarrothiago / bpftool.md
Created September 6, 2021 17:03
bpftool features from Quentin Monnet

bpftool feature probe kernel

  1. "bpftool prog show" is used to list all BPF programs currently loaded on the system (loaded != attached)

  2. load a BPF program from ELF file “foo.o” to the system and pin it under the BPF virtual file system as “bar”:

# bpftool prog load foo.o /sys/fs/bpf/bar

pinning the program makes it persistent (and offers a handle for later management, e.g. to attach that program to a hook).