I followed this guide https://pimylifeup.com/raspberry-pi-wireless-access-point/ on how to setup an Ethernet to WiFi access point using the built in RPi WiFi adapter successfully. I connected my phone via the Pi WiFi and could get online.
I then connected my Edimax EW-7811Un WiFi adapter with the hope of using it instead of the Ethernet as the Internet source.
I amended the iptables rules as follows:
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo iptables -A FORWARD -i wlan0 -o wlan1 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan1 -o wlan0 -j ACCEPT
My phone will connect to the RPi built in WiFi but it has no Internet access even though the Edimax adapter is connected to the Internet and I can browse the web from the Pi.
Any thoughts on why the Ethernet adapter will pass traffic but not the Edimax adapter?
Thanks
net.ipv4.ip_forward
? Youriptables
commands look fine. – Aloha Aug 02 '17 at 07:50INPUT
directive in theiptables
commands. Heck, I couldn't find the word "input" in the entire page. Consequently,iptables
knows what to forward where, but it's not accepting any traffic (to forward) in the first place. – Aloha Aug 04 '17 at 11:06