I got a question. How to make Pi to be an AP with 2 wifi adapters, one wifi adapter is used to connect to the router, and another one is used to be an AP ? How to do this ?
By the way, I have realized that make an AP with eth0 and wlan0, using "hostapd" and "isc-dhcpd-server".
There is another thing, when I make the AP, I didn't use the bridge that bridge eth0 to wlan0 or bridge wlan0 to wlan1, I am using the isc-dhcp-server.
As I said, I have realized AP with eth0 and wlan0, the isc-dhcp and hostapd just need to appoint which network card will be used as AP, so I am wondering the problem is occurred when configuring the iptables, here is how I configured the iptables when I using eth0 and wlan0:
$ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
$ sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
$ sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT