raspbian-recipes
raspbian-recipes copied to clipboard
Internet Connectivity Issue with wifi-to-wifi-route.sh
I have used the Wi-Fi to Ethernet script flawlessly on another system and decided to try the Wi-Fi to Wi-Fi script. Unlike the Ethernet script, this one doesn't share internet connectivity. Although I can see and connect to the network, there is not internet access. Am I doing something wrong with this one?
Hmm.... I was reading the comments from this forum post. One said to uncomment the line #conf-dir=/etc/dnsmasq.d
in the /etc/dnsmasq.conf
file. I did that and now it shares the internet. As the user said, it doesn't recognize the /etc/dnsmasq.d/custom-dnsmasq.conf
file until you do that. Maybe add a line into the script like this: echo "conf-dir=/etc/dnsmasq.d" >> /etc/dnsmasq.conf
(use an if statement to see if the line already exists so it doesn't do it each time).
Actually, the page I was opening was cached on my phone. It was not resolved.
Update: I used the Wi-Fi to Ethernet script to share internet to another device. I then tried to use the Ethernet to Wi-Fi script on the second device. It still doesn't work. The Wi-Fi to Ethernet works but not Ethernet to Wi-Fi.
In Wifi-to-Wifi script, router is also culprit sometimes. I couldn't able to figure out the root casue in this case.