mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 13:05:18 +01:00
24084f9bfc
pppd/natd combination works ok. Submitted by: Ari Suutari <ari.suutari@ps.carel.fi>
15 lines
221 B
Bash
15 lines
221 B
Bash
#!/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
|
|
|