On Fri, 26 Dec 2003, Justin <(E-Mail Removed)> wrote:
> I have the following setup:
>
> LAN ------eth0--- Linux Router/Firewall ---eth1-----Dlink ADSL
> modem-------internet
>
> The Dlink modem can do PPPoA itself, and has some sort of DHCP server built
> in, so it will authenticate my broadband connection, and also set eth1 its
> IP address once connected, I don't understand how exactly it works actually
> since from my LAN (192.168.127.0) I can still ping the modem on 192.168.0.1
> while eth1 is on 81.7x.xxx.xxx.
>
> The internal network is on static IPs, and eth1 is set to be configured via
> DHCP in /etc/rc.d/rc.inet1
>
> I have got a firewall script on the router (from tldp.org, the IP Masq
> HOWTO), it loads on boot, and works beautifully. But since my ISP give
> dynamic IPs, the IP on eth1 changes, and thats the cause of my problem:
>
> I dont know how to automatically re-run the firewall script once the
> external IP changes, Ive tried using the
> /etc/dhcpc/dhcpcd-eth0.exe script which supposedly runs when dhcpcd detects
> a change in IP address, but it doesnt work! (I added /etc/rc.d/rc.firewall
> to the end of it)
> I dont want to have to manually run the firewall everytime the IP changes
> since the router is going to be headless.
Is that a typo or do you expect /etc/dhcpc/dhcpcd-eth0.exe to do something
when eth1 changes (shouldn't that be /etc/dhcpc/dhcpcd-eth1.exe)?
> can anyone help me out here?
>
> I run slackware 9.0 on the router.
>
> Thanks in advance! and Merry Christmas!
>
> Justin
--
David Efflandt - All spam ignored
http://www.de-srv.com/