Differences

This shows you the differences between two versions of the page.

doc:recipes:guest-wlan [2012/11/07 05:07]
uvray313 grammer
doc:recipes:guest-wlan [2014/03/15 08:30] (current)
simplexion
Line 25: Line 25:
config 'interface' 'guest' config 'interface' 'guest'
#      option 'type' 'bridge' #      option 'type' 'bridge'
 +        option 'iface' 'wlan0'
        option 'proto' 'static'         option 'proto' 'static'
        option 'ipaddr' '10.0.0.1'         option 'ipaddr' '10.0.0.1'
Line 47: Line 48:
For ''option 'device' '...' '' you should put the device listed in your 'wifi-device' section. For example, if your 'wifi-device' says ''config 'wifi-device' 'wifi0' '' then the wifi-iface section should say ''option 'device' 'wifi0' '' For ''option 'device' '...' '' you should put the device listed in your 'wifi-device' section. For example, if your 'wifi-device' says ''config 'wifi-device' 'wifi0' '' then the wifi-iface section should say ''option 'device' 'wifi0' ''
-**Note:** Your hardware may not be capable of this. For example, open source b43 driver for Broadcome hardware cannot have multiple SSIDs. You need to use the proprietary wl driver by Broadcom (with 2.6 kernel) - currently, you need to [[doc:howto:obtain.firmware.generate|build]] the images yourself.  --- //sup 2012/05/12 20:22//+**Note:** Your hardware may not be capable of this. For example, open source b43 driver for Broadcom hardware cannot have multiple SSIDs. You need to use the proprietary wl driver by Broadcom (with 2.6 kernel) - currently, you need to [[doc:howto:obtain.firmware.generate|build]] the images yourself.  --- //sup 2012/05/12 20:22//
==== Step 3: Define a new DHCP pool ==== ==== Step 3: Define a new DHCP pool ====
Line 158: Line 159:
==== Step 5: Limit bandwidth of the connection ==== ==== Step 5: Limit bandwidth of the connection ====
-This is completely optional. Install package wshaper:+This is completely optional, but advised. Install package wshaper:
''opkg install wshaper'' ''opkg install wshaper''
Edit ''/etc/config/wshaper'': Edit ''/etc/config/wshaper'':
-''config 'wshaper' 'settings' +''config wshaper 'settings' 
-       **option 'network' '...'** + option network 'guest
-       option 'downlink' '512+ option downlink '64
-       option 'uplink' '128'+ option uplink '512'
'' ''
-For ''option network '...' '' run ''iwconfig'' and find out the interface that is running the guest WLAN.+**Note:** ''downlink'' and ''uplink'' options are maximal limits, but in practice the speed will be slightly lower as wshaper also tries to prioritize traffic (so that the network stays responsive even when someone downloads a huge file - there are also wshaper options that can control this). The units are kbits.
-**Note:** ''downlink'' and ''uplink'' options are maximal limits, but in practice the speed will be lower as wshaper also tries to prioritize traffic (so that the network stays responsive evene when someone downloads a huge file). The units are kbits.+**Also note:** The ''downlink'' and ''uplink'' limits are //reversed// from what one might expect, as the data is flowing in the opposite direction from wshaper's usual (wan) interface.
===== Apply changes ===== ===== Apply changes =====
-  - Enable the new wireless network<code>wifi</code>+  - Enable the new wireless network<code>/etc/init.d/network restart</code>
  - Restart the firewall<code>/etc/init.d/firewall restart</code>   - Restart the firewall<code>/etc/init.d/firewall restart</code>
  - Restart the DHCP service <code>/etc/init.d/dnsmasq restart</code>   - Restart the DHCP service <code>/etc/init.d/dnsmasq restart</code>
  - Start traffic shaping <code>/etc/init.d/wshaper start</code>   - Start traffic shaping <code>/etc/init.d/wshaper start</code>
  - Make traffic shaping permanent <code>/etc/init.d/wshaper enable</code>   - Make traffic shaping permanent <code>/etc/init.d/wshaper enable</code>
 +
 +===== HotSpot (Captive Portal)=====
 +
 +If you want to setup a simple Hotspot for your guest WLAN, take a look at [[http://wiki.openwrt.org/doc/howto/wireless.hotspot.nodogsplash|Nodogsplash]] or [[http://wiki.openwrt.org/doc/howto/wireless.hotspot.wifidog|WiFiDog]].
===== Troubleshooting ===== ===== Troubleshooting =====

Back to top

doc/recipes/guest-wlan.1352261257.txt.bz2 · Last modified: 2012/11/07 05:07 by uvray313