Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WLAN0 not connecting to broader internet #15

Open
xthursdayx opened this issue Apr 3, 2020 · 1 comment
Open

WLAN0 not connecting to broader internet #15

xthursdayx opened this issue Apr 3, 2020 · 1 comment

Comments

@xthursdayx
Copy link

xthursdayx commented Apr 3, 2020

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.

@lukicdarkoo
Copy link
Owner

lukicdarkoo commented May 11, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants