#!/bin/sh
set -eu

EXT_IF="${1:-vtnet0}"
WARDEN_NET="${2:-192.168.100.0/24}"
TABLE_NAME="${3:-clawdie_jails}"

cat <<EOF
# Warden NAT for Clawdie
ext_if = "${EXT_IF}"
table <${TABLE_NAME}> persist { ${WARDEN_NET} }

nat on \$ext_if from <${TABLE_NAME}> to any -> (\$ext_if)
EOF

