- I have two wireless interfaces wlan0, wlan1
- I want wlan0 to be connected to the internet via a wireless router
- and I want wlan1 to be in AP mode acting as a router to give internet access to whoever connectes to it.
So basically all packets coming through wlan1 should be forwarded to wlan0 => Router => Internet. That's including DNS/DHCP/etc..
[A]~~~~~(Wi-Fi)~~~~~~v [B]~~~~~(Wi-Fi)~~~> [me] ~~~~(Wi-Fi)~~~~~>[AP/Router]------->[internet] [C]~~~~~(Wi-Fi)~~~~~~^
Any idea how can I do this?
ps: I tried using bridges but I always get 'operation not supported' using the brctl tool.