Gatis Gailis wrote:
> Hmm, isn't it possible to write a script, that changes some strings in
> ipf.rules, e.g., your ext. int. address in necessary rules? I am absolutely
> positive, that it can be done. Then startup 1) runs dhcpcient, gets IP and
> gives it to ifconfig, 2) executes something like
>
> #/bin/sh!
> ifconfig ed0 | grep "inet " | awk '{ print $2 }' /var/run/dynip
>
> 3) executes a script that overwrites your dynamic address in ipf.rules with
> the contents of that dynip file and then 4) initializes ipfilter things.
>
> I am not so strong in sh commands so if someone writes that script please
> give me a sip of it, too.
>
> Again, if it's somehow not possible to accomplish 3), I have seen somewhere
> a method to initialize ipfilter rules in sh script itself (I think it was
> concerned with OpenBSD); in that case you can make a variable {dynad) and
> substitute it in necessary places - pass in quick on rt0 from 1.2.3.4 to
> {dynip} proto tcp ...
See me other post.
Phil
--
Insanity Palace of Metallica
http://www.ipom.com
[EMAIL PROTECTED]
--