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
madwifi drivers. I've tried both already but none worked as I wanted
Here is what I want (if possible):
- wireless cards (
wlan1) in ap/master mode
- wpa2 encryption on both interfaces
- each wireless interface has static IP (ex:
- each wireless interface has dhcp-server for managing client's addresses
(ex: pool for
10.0.1.100-10.0.1.120, pool for
10.0.2.100 - 10.0.2.120)
eth0should be WAN interface with dhcp-client (public ip)
- forward traffic (and internet) from WAN to wireless interfaces (not sure how this should be done...
I've tried and managed to get wireless
essid on box using
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).