[WBEL-users] ADSL via DHCP, IP adress and Firewall
Fri, 10 Sep 2004 14:09:15 -0700
DHClient apparently runs a script (dhclient-script) on IP changes.
'man dhclient-script' brings up something, and I think it may be what
Good luck, and please report back if you win.
Jean LEE wrote:
> Hello Paul,
> I do not use PPoE, just DHCP. Even if I could use ip-up, I have to
> restart it manually.
> As the IP change are automatic with DHCP (no reconnection or something
> else), I thought I have to start this script in my DHCP client to make
> the launch of this firewall script automatic. Perhaps it is not feasible....
> Thanks a lot for your answer.... Any other idea ?
> ----- Original Message -----
> *From:* Paul Voccio <mailto:firstname.lastname@example.org>
> *To:* Jean LEE <mailto:email@example.com> ; Mailing List -
> White Box <mailto:firstname.lastname@example.org>
> *Sent:* Friday, September 10, 2004 3:20 PM
> *Subject:* RE: [WBEL-users] ADSL via DHCP, IP adress and Firewall
> If you have a pppoe connection, which ADSL sometimes uses here in
> the states, ip-up and ip-down get called when the connection goes up
> and down. You should then edit /etc/ppp/ip-up.local and have it
> re-run your firewall script that will run with the new ip.
> -----Original Message-----
> *From:* email@example.com
> [mailto:firstname.lastname@example.org]*On Behalf Of *Jean LEE
> *Sent:* Friday, September 10, 2004 3:16 AM
> *To:* Mailing List - White Box
> *Subject:* [WBEL-users] ADSL via DHCP, IP adress and Firewall
> Hello all,
> I have an ADSL connection via an Ethernet router (Freebox in
> France). My server has an Ethernet card which is connected to
> this bridge and obtain its IP adress via DHCP.
> I am also using a firewall script which detects automatically
> this IP adress. I call this script in my rc.local file.
> Well, at startup my ethernet card is first brought up and the ip
> adress is detected via DHCP and then, a few moment later my
> firewall script is launched and detect this IP adress.
> My problem is that my provider often changes my IP adress. Then,
> I have to reexecute manually my firewallscript to take this new
> ip adress into account. How can I do to make the execution of
> this firewall script automatic after each change in my IP adress ?
> Thanks for any help,
> Jean Lee