[OpenWrt-Devel] 回复: How toCustom admin page on openwrt ?

Tymon banglang.huang at foxmail.com
Thu Mar 12 11:29:26 EDT 2015


strange, how can the cgi or uhttp translate myrouter.site1 to gateway ip(i.e. your router, default is 192.168.1.1) ?
 
------------------
Regards,

banglang huang
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel 


 




------------------ Original message ------------------
From: "Ben Mulvihill"; 
Sendtime: Thursday, Mar 12, 2015 6:27 PM
To: "Tymon"; 
Cc: "Claudio Thomas"; "openwrt-devel"; 
Subject: Re: [OpenWrt-Devel] 回复:  How toCustom  admin page on openwrt ?



Surely it is possible to do this using dnsmasq? I have something
like this in my /etc/config/dhcp file:

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option filterwin2k '0'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        list rebind_domain 'site2'
        list server '/site2/10.121.1.1'
        option local '/site1/'
        option domain 'site'
        option expandhosts '1'
        option nonegcache '0'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'

My local domain is 'site1', so I can access my router
in a browser at the address 'myrouter.site1' , which
it I have understood correctly is what you are 
trying to do, right?
(Note that I also have a vpn to another local network
with domain 'site2', and can access the router there
at 'myotherrouter.site2')

Check the various configuration options I use in the 
dnsmasq documentation, because it is some time since
I set this up and I don't remember the details.
The 'server' and 'rebind_domain' are for the vpn,
so you shouldn't need those.

Or have I misunderstood the question?

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150312/34903698/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list