Log in

Bekijk de volledige versie : Customizing web interface + DHCP renew too often



ghaspias
11-12-2004, 02:18
On my WL-500g rev2.4 with 1.8.1.7.3, I see /www, and I tried to mount my own modified pages to that dir, using mount /tmp/www2 /www -o bind, wich worked, but the router still serves the normal pages...

Another question: I have been playing with the iptables, but every 10 to 15 minutes or so the router renews his ip (from the modem?) and nukes all changes I made to the chains. Why is it renewing so often? Can I change that? And does it have to restore the iptables?


Dec 10 19:51:02 dhcp client: bound IP : 83.132.70.129 from 83.132.71.254
Dec 10 20:06:03 dhcp client: renew IP : 83.132.70.129 from 83.132.71.254
Dec 10 20:21:03 dhcp client: renew IP : 83.132.70.129 from 83.132.71.254
Dec 10 20:36:03 dhcp client: renew IP : 83.132.70.129 from 83.132.71.254
Dec 10 20:44:04 ntp client: time is synchronized to time.nist.gov
Dec 10 20:51:06 dhcp client: renew IP : 83.132.70.129 from 83.132.71.254
Dec 10 21:06:06 dhcp client: renew IP : 83.132.70.129 from 83.132.71.254
Dec 10 21:21:07 dhcp client: renew IP : 83.132.70.129 from 83.132.71.254

Oleg
11-12-2004, 09:48
You need tor restart httpd also


killall httpd
cd /www
httpd

In fact you coluld probably run httpd right from the /tmp/www...

As for reneweing - yes, your modem dhcp server has lease time set to very low value.

As for iptables - with custom firmware you can use post-firewall script.

ghaspias
13-12-2004, 00:11
Thanks, I am now able to replace the original www stuff with my own.

(NOTE: to do so, I had to start busybox_httpd instead of httpd, because httpd wasn't working with cgi or anything besides *.asp; so I kill httpd and immediately start busybox_httpd, before httpd is respawned automatically. To do so, use a chained command:

>killall httpd; busybox_httpd in one line.)

But I still didn't figure out how to change the dhcp lease time; does it have to be changed in the modem (if that's possible - I doubt) or can I tweak something in the router?

Oleg
13-12-2004, 16:16
yes, you need to change modem settings.