Open xthursdayx opened 4 years ago
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
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?