⬢ DragonFlyBSD Kernel Audit
DF-3434 / setup_root.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
#!/bin/sh
# DF-3434 - run as ROOT (one-time setup), then run state_oops as a USER.
#   kldload ipfw3 + ipfw3_basic, install the limit-type keep-state rule.
set -e
kldload ipfw3 2>/dev/null || true
kldload ipfw3_basic 2>/dev/null || true
/sbin/ipfw3 -q add 01000 allow udp from any to any keep-state limit src-port 100
/sbin/ipfw3 show