I'm trying to build wireless AP with 2 Atheros cards (AR5413 / AR5414 both), and one ethernet card to act as WAN. I am also having doubts if I should use ath5k
or madwifi
drivers. I've tried both already but none worked as I wanted
Here is what I want (if possible):
- wireless cards (
wlan0
/wlan1
) in ap/master mode - wpa2 encryption on both interfaces
- each wireless interface has static IP (ex:
10.0.1.1
forwlan0
, and10.0.2.1
forwlan1
) - each wireless interface has dhcp-server for managing client's addresses
(ex: pool for
wlan0
:10.0.1.100-10.0.1.120
, pool forwlan0
:10.0.2.100 - 10.0.2.120
) eth0
should be WAN interface with dhcp-client (public ip)- forward traffic (and internet) from WAN to wireless interfaces (not sure how this should be done...
iptables+dnsmasq
?) QoS
control (optional)
I've tried and managed to get wireless essid
on box using hostapd
(with WPA2
working), but it requires bridge (br0
) interface to work (not sure how). This bridge forces ethernet and wireless card not to have IP addresses and bridge takes public IP from cable modem via eth0
. As I try to connect my wireless ESSID my client machine (cell phone for ex.) can't get IP (no dhcp-server) and I don't know what configuration to put addresses manually because there is no local IP on wlan0
interface itself.
Just to recap:
[INTERNET] <---- eth0(WAN) <----?NAT?----> wlan0/wlan1
Any suggestion is welcome (due concept or implementation).