Howto setup the iConnect as an iConnect AccessPoint
Requirements:
- Atheros 928x mini pci half card
Hostapd 0.7.3
Kernel with driver ath9k
Example config of /etc/network/interfaces
auto br0
iface br0 inet static
bridge_ports eth0 wlan0
address 192.168.2.1
network 192.168.2.0
gateway 192.168.2.254
netmask 255.255.255.0
broadcast 192.168.2.255
up /sbin/ifconfig br0 up
post-up /bin/sleep 10 ; /usr/local/bin/hostapd -B /etc/hostapd.conf
pre-down /usr/bin/killall hostapd
down /sbin/ifconfig br0 down
#optional
auto wlan0_0
iface wlan0_0 inet static
address 192.168.3.1
netmask 255.255.255.0
broadcast 192.168.3.255
network 192.168.3.0Example config of /etc/hostapd.conf
ssid=iconnect_private driver=nl80211 hw_mode=g channel=5 interface=wlan0 bridge=br0 ieee80211n=1 auth_algs=3 wpa=3 wpa_passphrase=iconnect wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP macaddr_acl=0 ignore_broadcast_ssid=0 ctrl_interface=/var/run/hostapd-wlan0 #optional bss=wlan0_0 bssid=02:25:d3:cb:1e:41 ssid=iconnect_guest wpa=2 wpa_pairwise=CCMP wpa_passphrase=changeme
For forwarding messages to the bridged device enable ipv4 forward in /etc/sysctl.conf
net.ipv4.ip_forward=1
Let the iConnect also act as dhcp server, install dnsmasq.
For example a dhcp on the guest interface (wlan0_0)
interface=wlan0_0 dhcp-range=guest,192.168.3.51,192.168.3.250,48h