From: Alain SMEDTS (alain_smedts@hotmail.com)
Date: Thu Aug 17 2000 - 05:51:18 PDT
Rhys,
I used the man page you mention. What I'm looking for is an example of a
dhclient-exit-hooks which is proven to work in all circumstances, so I can
compare it with mine.
Regards,
Alain
-----Original Message-----
From: Rhys Davies [mailto:rhys.davies@Molynx.co.uk]
Sent: donderdag 17 augustus 2000 13:24
To: pmfirewall@pointman.org
Subject: RE: [pmfirewall] renewal of different IP lease and existing
chain s
Alain,
many thanks, you have pointed me in the right direction.
What man page did you learn about dhclient-exit-hooks script from ?
Following on from your information I have found at the following FTP site:
the following file:
dhcp-2.0pl3.tar.gz
contains the file:
dhcp-2.0pl3\client\dhclient-script.8
which gives some information about:
MEDIUM, PREINIT, ARPCHECK, ARPSEND, BOUND, RENEW, REBIND, REBOOT,
EXPIRE, FAIL and TIMEOUT
Hope this is of use
Rhys.
> -----Original Message-----
> From: Alain SMEDTS [SMTP:alain_smedts@hotmail.com]
> Sent: 17 August 2000 10:22
> To: pmfirewall@pointman.org
> Subject: [pmfirewall] renewal of different IP lease and existing
> chain s
>
> I have the same problem (renewal every 20 minutes, no garantee to give the
> same IP):
>
> I use the following dhclient-exit-hooks script:
> #!/bin/sh
> echo $reason>>/tmp/whendhcp
> case "$reason" in
> REBOOT)
> /usr/local/pmfirewall/pmfirewall start
> /usr/bin/elm -s "Rebooted, IP $new_ip_address kept" root@localhost
> </dev/null
> ;;
> RENEW)
> if [ "$new_ip_address" != "$old_ip_address" ]; then
> /usr/local/pmfirewall/pmfirewall restart
> /usr/bin/elm -s "IP changed from $old_ip_address to $new_ip_address"
> root@localhost </dev/null
> fi
> ;;
> *)
> esac
>
> This seems to work fine, but in /tmp/whendhcp I see that $reason also gets
> other values. I'm not sure if my scripts should capture these. The man
> pages
> aren't that clear (at least for me).
>
> Regards,
>
> Alain SMEDTS
>
> -----Original Message-----
> From: Rhys Davies [mailto:rhys.davies@Molynx.co.uk]
> Sent: donderdag 17 augustus 2000 9:52
> To: pmfirewall@pointman.org
> Subject: RE: [pmfirewall] renewal of different IP lease and existing
> chain s
>
>
> Thanks,
> mine renews every 30 minutes, but my ISP does not guarantee to give
> me the same IP.
>
> Though this guarantee might only apply if I have not been connected for a
> while, as opposed to
> being on line all the time.
>
> OR does DHCP work in such a way that once you have been given an IP
> address,
> you always
> get e renewal on that same address ?
>
> Can anyone enlighten me ?
>
> Many thanks,
>
> Rhys.
>
> > -----Original Message-----
> > From: Francois Gingras [SMTP:ginf01@gel.usherb.ca]
> > Sent: 17 August 2000 03:07
> > To: pmfirewall@pointman.org
> > Subject: Re: [pmfirewall] renewal of different IP lease and existing
> > chains
> >
> > I can tell you from my experience... I use a cable provider that has
> dhcp
> > access... so basically the network connection is obtained dinamically.
> It
> > renews the ip via the pump deamon.. .so you shouldnt have to worry about
> > losing
> > connection... mine basically renews itself every ten hours...
> >
> > Rhys Davies wrote:
> >
> > > Maybe someone knows what happens in the following scenario:
> > >
> > > My set up is a SuSE 6.2 box as a gateway/firewall to some W98
> machines.
> > >
> > > I have used PMFIREWALL to set up the ipchains, etc.
> > >
> > > My boot up sequence is:
> > >
> > > All boot up scripts do their thing, then "dhclient" obtains an IP from
> > my
> > > cable modem ISP.
> > >
> > > Then my PMFIREWALL SCRIPT gets executed and everything is fine.
> > >
> > > So far my ISP keeps giving me the same IP when it's time to renew.
> > >
> > > My question's are:
> > >
> > > 1) What will happen when I get a different IP from my ISP to that
> > which
> > > was
> > > scanned by the PMFIREWALL script when it first ran at system
> > boot up
> > > ?
> > >
> > > 2) Can "dhclient" be made to re execute a script such as
> PMFIREWALL
> > to
> > > adjust for the new external IP number ?
> > >
> > > 3) Does anyone else have a similar setup / experiences ?
> > >
> > > 4) Should I be using something other than "dhclient" that will
> > cover
> > > this
> > > overall scenario ?
> > >
> > > Regards,
> > >
> > > Rhys
> > >
> >
> **************************************************************************
> > **
> > > * To UNSUBSCRIBE from the list, send a message with "unsubscribe
> > pmfirewall"
> > > * in the message body to majordomo@pointman.org. Please direct other
> > > * questions, comments, or problems to pmfirewall-owner@pointman.org.
> > > *
> > > * Need answers fast? Check the list archive located at:
> > > * http://www.pointman.org/PMFirewall/list-archive/
> > > *
> >
> >
> **************************************************************************
> > **
> > * To UNSUBSCRIBE from the list, send a message with "unsubscribe
> > pmfirewall"
> > * in the message body to majordomo@pointman.org. Please direct other
> > * questions, comments, or problems to pmfirewall-owner@pointman.org.
> > *
> > * Need answers fast? Check the list archive located at:
> > * http://www.pointman.org/PMFirewall/list-archive/
> > *
> **************************************************************************
> **
> * To UNSUBSCRIBE from the list, send a message with "unsubscribe
> pmfirewall"
> * in the message body to majordomo@pointman.org. Please direct other
> * questions, comments, or problems to pmfirewall-owner@pointman.org.
> *
> * Need answers fast? Check the list archive located at:
> * http://www.pointman.org/PMFirewall/list-archive/
> *
>
> **************************************************************************
> **
> * To UNSUBSCRIBE from the list, send a message with "unsubscribe
> pmfirewall"
> * in the message body to majordomo@pointman.org. Please direct other
> * questions, comments, or problems to pmfirewall-owner@pointman.org.
> *
> * Need answers fast? Check the list archive located at:
> * http://www.pointman.org/PMFirewall/list-archive/
> *
****************************************************************************
* To UNSUBSCRIBE from the list, send a message with "unsubscribe pmfirewall"
* in the message body to majordomo@pointman.org. Please direct other
* questions, comments, or problems to pmfirewall-owner@pointman.org.
*
* Need answers fast? Check the list archive located at:
* http://www.pointman.org/PMFirewall/list-archive/
*
****************************************************************************
* To UNSUBSCRIBE from the list, send a message with "unsubscribe pmfirewall"
* in the message body to majordomo@pointman.org. Please direct other
* questions, comments, or problems to pmfirewall-owner@pointman.org.
*
* Need answers fast? Check the list archive located at:
* http://www.pointman.org/PMFirewall/list-archive/
*
This archive was generated by hypermail 2b29 : Sun Jun 10 2001 - 02:35:59 PDT