Scheduling DNSMasq gateway Option

Discussion in 'Tomato Firmware' started by mecha50, Jan 31, 2011.

  1. mecha50

    mecha50 Network Guru Member


    Need some little help. I have 2 routers. First router has an IP add of (which is also acts as DHCP server and the second router has

    Currently, I'm using this script under DNSMasq custom configuration to set the gateway of the client computers to the second router.

    dhcp-option = option:router,

    I want to schedule this script to be active only at a specific time e.g. 10AM to 9PM. Anyway to put it under the scheduling menu of Tomato?
  2. Toastman

    Toastman Super Moderator Staff Member Member

    You could use this script to start the divert to the second gateway at 10:00, and then just set the same script to send to the primary gateway when you wish it to finish at 21:00. You would also need to set a short DHCP lease.
  3. mecha50

    mecha50 Network Guru Member

    You mean just put dhcp-option = option:router, under the scheduling menu?
  4. Toastman

    Toastman Super Moderator Staff Member Member

    Should be possible, try dnsmasq dhcp-option = option:router, in there and see if it works.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice