rpi-wifi icon indicating copy to clipboard operation
rpi-wifi copied to clipboard

WLAN0 not connecting to broader internet

Open xthursdayx opened this issue 4 years ago • 1 comments

I tried using this script with the updates @mahesh2000 mentioned here on my Raspberry Pi Zero W, however I'm unable to get wlan0 to connect to the broader internet. My AP SSID works and I'm able to connect to my RPi W 0 via ssh, however not able to ping any external website (or run any apt commands). If I run ip addr both wlan0 and ap0 seem to be up and have correct IP addresses. Any ideas?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

xthursdayx avatar Apr 03 '20 20:04 xthursdayx

Do you have internet connection on your router (or whatever the Raspberry Pi is connecting to)? Also, can you check whether you have the following 3 lines in /bin/rpi-wifi.sh:

sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -s ${AP_IP_BEGIN}.0/24 ! -d ${AP_IP_BEGIN}.0/24 -j MASQUERADE
sudo systemctl restart dnsmasq

Also, maybe it is related to #10

lukicdarkoo avatar May 11 '20 21:05 lukicdarkoo