Skip to content

Instantly share code, notes, and snippets.

View holsta's full-sized avatar

Alex Holst holsta

View GitHub Profile
set block-policy return
set skip on lo
block log
pass out on egress from internal:network to any nat-to (egress)
pass out on egress from (egress) to any
pass in on internal from internal:network to internal
pass out on internal from internal to internal:network
@holsta
holsta / pkg.sh
Created December 18, 2017 18:24
Vulnerable pkg_add wrapper
#!/bin/sh
#
# Vulnerable pkg_add wrapper
#
set -e
case "$1" in
*/*|*;*|*&*) echo "URLs or paths not allowed."
exit 1
;;
@holsta
holsta / odd.txt
Created December 8, 2017 11:20
OpenBSD strange behaviour on Vultr
I have several hosts with Vultr (kvm-based I believe), one of which is now oddly slow.
Right after a reboot, things are working fine but just 12 hours later, sending five pings take 35 seconds:
$ time ping -c5 localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.360 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.124 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.097 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.091 ms