Re: /etc/rc.firewall and dhclient(8)

2006-01-16 Thread Lowell Gilbert
[EMAIL PROTECTED] writes:

 I activated my firewall client configuration on my desktop that uses dhcp 
 for
 a cable modem.
 
 Everything works fine (I even enabled ping), however, everytime I shutdown and
 restart the modem I find myself having to check /var/db/dhclient.leases.xl0 to
 edit /etc/rc.firewall to change $net and $ip.
 
 Is there an easy way to automate this?

That's what the me keyword is for in the ipfw syntax.
Using this would require you to create a slightly customised version
of the firewall rules file.

Alternatively, you could have dhclient write the parameters out to a
file that the firewall script would read in.  dhclient-script(8) has
hooks for this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/etc/rc.firewall and dhclient(8)

2006-01-14 Thread pfgshield-freebsd
Hi;

I activated my firewall client configuration on my desktop that uses dhcp for
a cable modem.

Everything works fine (I even enabled ping), however, everytime I shutdown and
restart the modem I find myself having to check /var/db/dhclient.leases.xl0 to
edit /etc/rc.firewall to change $net and $ip.

Is there an easy way to automate this?

cheers,

Pedro.






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]