config root man

Current Path : /usr/src/sbin/natd/samples/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/sbin/natd/samples/natd.test

#!/bin/sh

	if [ $# != 1 ]
	then
		echo "usage: natd.test ifname"
		exit 1
	fi

	ipfw flush
	ipfw add divert 32000 ip from any to any via $1 
	ipfw add pass ip from any to any

	./natd -port 32000 -interface $1 -verbose


Man Man