]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - sbin/natd/samples/natd.test
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / sbin / natd / samples / natd.test
1 #!/bin/sh
2
3         if [ $# != 1 ]
4         then
5                 echo "usage: natd.test ifname"
6                 exit 1
7         fi
8
9         ipfw flush
10         ipfw add divert 32000 ip from any to any via $1 
11         ipfw add pass ip from any to any
12
13         ./natd -port 32000 -interface $1 -verbose
14