#!/bin/sh
# DF-0571 run script (must be root; requires ipfw3_nat configured)
# Configures a NAT rule then sends a proto=132 packet through it.
set -e
echo "[run] configuring ipfw3 NAT rule"
ipfw3 nat 1 config ip 10.0.2.15
ipfw3 add 100 nat 1 ip from any to 10.0.3.5 out
ipfw3 add 200 allow ip from any to any
echo "[run] sending SCTP (proto=132) packet through NAT rule"
echo "[run] expecting: panic: ipfw3: unsupported proto 132"
./raw_trigger
