Arrrgh - there are still some errors in the previous post - so here is one that I don't think has any:
This may be a horrible kludge (I dunno - not much of a scripter), but here goes: 1. Write the first portion of your filter (up to the IP address) into a file (i.e. /etc/LaBrea.tmp) - contents for mine would be: tcp dst port 80 or 21 and dst host 2. Create a script (i.e. /etc/ipupdate) that writes the filter and checks the IP of the external interface (eth0 on my box, change if needed). The script's contents should look like this: #Creates /etc/LaBrea.bpf #!/bin/sh cat /etc/LaBrea.tmp > /etc/LaBrea.bpf ip addr show eth0 | grep "inet " | sed s/" "// | cut -d' ' -f 2 | cut -d'/' -f1 >> /etc/LaBrea.bpf #Done (that should only be 2 lines - not 3 - the second line wrapped) 3. Chmod /etc/ipupdate to 744 (command would be "chmod 744 /etc/ipupdate" to do this). 4. Edit the dhclient-exit-hooks to with the following changes: # Reload networking to see new address reload_all Add a few lines so you have # Reload networking to see new address reload_all /etc/ipupdate svi LaBrea stop svi LaBrea start Save the file and it _should_ work (of course I can't test whether it works or not as my ip hasn't changed in over a year). If anyone sees any obvious mistakes please point them out. Also you'll want to run LaBrea with switches similar to the following if you don't want your box sourcing out IPs that don't belong to you: OPTIONS="-i eth0 -l -v -p 80000 -z -x -F /etc/LaBrea.bpf" _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user