-
-
Save woutgg/9399675 to your computer and use it in GitHub Desktop.
openwrt ap+sta configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
config dhcp 'wan' | |
option interface 'wan' | |
option ignore '1' | |
config dhcp 'aplan' | |
option start '100' | |
option leasetime '12h' | |
option limit '150' | |
option interface 'aplan' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config interface 'loopback' | |
option ifname 'lo' | |
option proto 'static' | |
option ipaddr '127.0.0.1' | |
option netmask '255.0.0.0' | |
config interface 'lan' | |
option ifname 'eth0' | |
option proto 'static' | |
option netmask '255.255.255.0' | |
option ipaddr '192.168.5.1' | |
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
config wifi-iface | |
option encryption 'none' | |
option device 'radio0' | |
option mode 'ap' | |
option ssid 'Doodle3D-87252E' | |
option network 'aplan' | |
config wifi-iface | |
option network 'wlan' | |
option encryption 'psk2' | |
option device 'radio0' | |
option mode 'sta' | |
option key 'network-key' | |
option ssid 'network-ssid' |
Glad it was of help to you! (I had completely forgotten this gist was here. :))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! This was helpful! I got it to work by just adding the
ap
section inwireless
.