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

Scheduling DNSMasq gateway Option

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

  1. mecha50

    mecha50 Network Guru Member

    Hello,

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

    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, 192.168.1.4

    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, 192.168.1.4 under the scheduling menu?
     
  4. Toastman

    Toastman Super Moderator Staff Member Member

    Should be possible, try dnsmasq dhcp-option = option:router, 192.168.1.4 in there and see if it works.
     

Share This Page