Subject: ipf + dhcp (not new) idea
To: None <netbsd-help@netbsd.org>
From: Mipam <mipam@ibb.net>
List: netbsd-help
Date: 03/04/2002 01:36:10
Hi,

Bothered by the fact that i had to use dhcp and having variable
ip addresses when wishing to run ipf, this script helps:
(in ipf.conf.in there is my_ip in the place of the ip of the interface) 

#!/bin/sh
sed s/my_ip/`ifconfig fxp0 |awk '$1 == "inet" {print $2}'`/ ipf.conf.in > ipf.conf
ipf -Fa -f ipf.conf -E

Where this script is in the same dir as ipf.conf and ipf.conf.in
The idea to do it this way isnt new, but i thought to post it
in case somebody runs into the same problems i did.
Bye,

Mipam.