/etc/rc.conf
=====================================
ifconfig_rl0="inet 192.168.1.1 netmask 255.255.255.0"
ifconfig_rl1="inet 192.168.2.1 netmask 255.255.255.0"
pccard_ifconfig="inet 10.10.1.1 netmask 255.255.255.240 ssid Enigma stationname VRC"
ifconfig_wi0_alias0="inet 10.10.1.2 netmask 255.255.255.255 ssid Enigma stationname VRC"
natd_enable="YES"
natd_interface="10.10.1.1"
natd_flags="-p 8668"
firewall_enable="YES"
firewall_script="/etc/rc.firewall.local"
/etc/rc.firewall.local
=====================================
fw="/sbin/ipfw"
$fw -f flush
# Divert traffic
$fw add 100 divert 8668 ip from 192.168.1.0/24 to any via 10.10.1.1
$fw add 101 divert 8668 ip from any to 10.10.1.1
$fw add 900 allow all from any to any
/usr/local/etc/rc.d/inet2.sh
=====================================
#!/bin/sh
case "$1" in
start)
echo "Starting network #2 via wi0/alias"
/sbin/natd -p 8669 -a 10.10.1.2
/sbin/ipfw add 102 divert 8669 ip from 192.168.2.0/24 to any via 10.10.1.2
/sbin/ipfw add 103 divert 8669 ip from any to 10.10.1.2
;;
stop)
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0