blob: cfdbd15aa6e2802d3c3b9b4699f31a8b15f8d6b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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
|