> Actually, the external interface does get its IP via dhcp (cable > modem). However, I am always assigned the same IP. I'm not sure how > long my dhcp lease is, but I always get the same IP address whenever I > reboot / reconnect. > > The external interface is eth0. The file /etc/dhcpc/dhcpcd-eth0.info > tells me the following... > LEASETIME=604800
This is the lease time in seconds, which translates to 7 days. It's very possible that dhcpcd holds on to the address for 2*LEASETIME if it can't renew the lease. > RENEWALTIME=302400 > REBINDTIME=529200 > > I don't know how to interpret those numbers. If those numbers somehow > translate to a dhcp lease of exactly fourteen days, that would provide > an explanation to the "fourteen day reboot" problem. (Come to think > of it, I don't know whether simply re-appling the fw rules would have > been sufficient - I'll tell everyone in fourteen days, I guess.) The more salient point to notice in 14 days is if `ifconfig eth0` still shows it as still having an ip address. > I know this is getting a little OT for netfilter if it really is a > dhcp issue, but your continued assistance is greatly appreciated. It actually most likely *is* a netfilter issue. Your firewall is probably blocking dhcp replies. My recollection of how dhcp works is a little rusty, but I believe you need to figure out what the dhcp server is (it should be in that info file) and allow udp/67 from that address. Something like: $IPT -A INPUT -p udp --dport 67 -s $DHCP_SERVER -j ACCEPT The reason it works on a reboot is that the dhcp client gets the address before the firewall is invoked. Then the dhcp client waits 3.5 days, and tries to renew. The reply to the renewal is blocked, and so it keeps on trying for the next 10.5 days, until it finally gives up and removes that ip address from the interface, and everything stops working. -Joe
