1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Extend remaining dhcp lease time on WAN side

Discussion in 'Tomato Firmware' started by p2hicy, Dec 5, 2010.

  1. p2hicy

    p2hicy Network Guru Member


    I'd like to add a few hours during the night on the remaining dhcp lease time to the wan side. Reason for this, I want a fresh IP the next morning when I resume my Internet activities :)
    My Cablemodem assigns me a fresh IP if I don't request a new one for about at least 3 hours. Usually my Cablemodem gives me a DHCP lease time of 60 minutes.

    So my question is: Is there a way to add some time on the remaining dhcp lease during the night? I thought about killing dnsmasq/udhcpc on 2 am, and restart the service on 6 am. I was unable to do so with "service udhcpc stop", it just won't stop. I also need a working DHCP server giving IPs out to my LAN during the night.
    I tried IPTABLES, but I think due to the lack of experience with that subject, I was unable to do so. Some people say on google, that DHCP requests can't be blocked via IPTABLES, since dnsmasq/udhcpc bypasses it (something with RAW sockets?).
    Killing the wan service works, but I want to continue surfing the internet, until my Cablemodem decides, I need a fresh lease and blocks me out.

    I was looking for something in the nvram, with "nvram show | grep" with wan/lan/lease/dhcp etc. but I couldn't find anything related.

    I'd really appreciate it if someone has an idea what I can do.

    Thank you!

Share This Page