Oops, I forgot one thing.  In the Reload Networking section you should have 
2 more lines so it should acutally look like this:

# Reload networking to see new address
    reload_all
    /etc/ipupdate
    svi LaBrea stop
    svi LaBrea start



------original message------

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 filter > /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 line so you have

# Reload networking to see new address
    reload_all
    /etc/ipupdate

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.


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to