Skip to content

Instantly share code, notes, and snippets.

@richlamdev
Created December 3, 2020 02:14
Show Gist options
  • Save richlamdev/77ac00f1220589c45d825dfa5c49b609 to your computer and use it in GitHub Desktop.
Save richlamdev/77ac00f1220589c45d825dfa5c49b609 to your computer and use it in GitHub Desktop.
openbsd random notes
ENABLE USER TO SU
sudo user mod -G wheel <username>
UNBOUND fixes
chown _unbound:wheel /var/unbound/etc
chmod 755 /var/unbound/etc
UPDATE KERNEL
syspatch
UPDATE PACKAGES
pkg_add -Uuv
DHCP LEASES LOCATION
/var/db/dhcpd.leases
PROMETHEUS / NODE_EXPORTER
pkg_add node_exporter
rcctl enable node_exporter
rcctl start node_exporter
#update /etc/rc.conf.local with:
node_exporter_flags=--web.listen-address=192.168.x.x:9100
or
node_exporter_flags=--web.listen-address=192.168.x.x:9100
#!/bin/sh
/usr/sbin/tcpdump -l -q -n -e -ttt -i pflog0 action block 2>&1 | logger -t pf -p local0.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment