Skip to content

Instantly share code, notes, and snippets.

@peteruithoven
Forked from woutgg/dhcp
Last active August 29, 2015 13:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save peteruithoven/9550818 to your computer and use it in GitHub Desktop.
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
# No more? : option dhcp_option '3 6'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
# Can we add this permanently?
config dhcp 'aplan'
option start '100'
option leasetime '12h'
option limit '150'
option interface 'aplan'
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
# no more? :
config globals 'globals'
option ula_prefix 'fd9c:94a4:b6e1::/48'
config interface 'lan'
option ifname 'eth0'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.5.1'
# No more? : option type 'bridge'
# can we add this permanently?
config interface 'aplan'
option netmask '255.255.255.0'
option proto 'static'
option ipaddr '192.168.10.1'
config interface 'wlan'
option netmask '255.255.255.0'
option proto 'dhcp'
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11ng'
option path 'platform/ar933x_wmac'
option htmode 'HT20'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option disabled '0'
option country 'NL'
# difference from regular access point is using the network aplan right?
# no disabled '0'? doesn't openwrt default to disabled?
# so enabling / disabling this access point would be as simple as setting the disabled property?
# and we probably have to make sure that the associate functionality doesn't disable this one by default
config wifi-iface
option encryption 'none'
option device 'radio0'
option mode 'ap'
option ssid 'Doodle3D-87252E'
option network 'aplan'
# this is unchanged right? Just another wireless configuration the box can join
# no disabled '0'? doesn't openwrt default to disabled?
config wifi-iface
option network 'wlan'
option encryption 'psk2'
option device 'radio0'
option mode 'sta'
option key 'network-key'
option ssid 'network-ssid'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment