-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
Wifi client AP mode #297
Wifi client AP mode #297
Conversation
…into wificlient-ap
…into wificlient-ap
Hello @billz - how can I test this branch? I am bit of a newbie to Linux world and though I can read and follow sometimes this type of questions arise on how to do something. Will appreciate if you can highlight it so I can initiate testing to provide you with any errors I may get. Thank you |
@clean-ev very kind of you to offer to test. Let's assume you are starting with a clean install of Stretch Lite on a Pi Zero W or RPi 3B/B+, followed the usual prerequisites, have the Pi connected as a WiFi client and accessible via ssh. Connect via ssh and follow the steps below:
Comment out or delete the first two lines in
Edit
Glad to clarify any of the above. |
Hell @billz, Thank you for detailed instructions. I used RPi3B+ as I don’t have RPiZeroW, will order after success I was able to install stretch lite (cloned in berry boot), connected to WiFi and then go thru the steps and on first try got the hotspot showed up. Changed password for web GUI, changed DHCP address and reboot and after clicking Start hotspot I got online. Traffic shows flowing thru WiFi that I can check on my router. I already have ipheth-utils & usbmuxd installed on gold stretchlite image so I plugged in my iPhone and traffic moved over to eth1 automatically. Then while eth1 was alive I plugged in eth0 and traffic moved to new connection. Disconnecting eth0 pushed back to eth1 and disconnecting eth1 pushed traffic back to WiFi. So far this has been the easiest to work with. Connected devices are not shown on dashboard Can I suggest as enhancement where I can change wireless mode to ‘a’ and accordingly change channels to AC mode channels available for selected country? I will destroy this again and try once more later this afternoon and report |
@billz I tried this one more time following steps you outlined above and hotspot was available on first try as it did earlier. This was again tested on RPi3B+ and not RPiZeroW. After this second try I tried to install pi-hole and get all this working harmoniously. Not so easy it seems So I followed this link and did what is mentioned- Post reboot i can connect to 172.20.10.3 which is eth1 and also to pihole admin page at 172.20.10.3/admin. Upon starting hotspot it shows up and I can join, however there is no internet access. I tried to check for dnsmasq.conf file and that file seems to be replaced by pihole installation with a single line dnsmasq.d is a directory that has 01-pihole.conf file and a README file in it. I believe I am close to making this work with pihole as well but am missing something subtle. |
Few more updates-
|
@clean-ev excellent feedback, many thanks. Re: connected devices, this was added after the feature branch was created. It will be merged later. Good point re: the static 192.168.50.1/24 address. At the moment this is used only for the Thanks for pointing out $ symbol in the password. At the moment |
Tested with wired ethernet and as a wireless client ("managed" mode) using RPi 3B & Stretch Lite in 3 different scenarios:
Repeated tests 2 & 3 with RPi Zero W (Stretch Lite) also with Quick Installer. Stopping/starting AP presented no issues. AP in managed mode is observed to be stable on both RPi 3B and Pi Zero W. A sample throughput analysis on the Pi Zero W is below. Note: Simultaneous AP and managed mode Wifi uses a known-good default config. Changes to dhcp server settings in this mode are ignored. |
@billz - seems this is no longer working - went thru the steps you have highlighted earlier on a new stretch install on 3B+. I configure WiFi,reboot, install git, clone your code and go thru all the steps above. |
@clean-ev this branch was merged with master. You can do a normal install as per the project readme. Thanks |
First stab at creating a "one-click" configuration to enable a simultaneous wifi client + AP mode. This works by adding a
uap0
interface and binding this with known-good settings to dnsmasq, dhcpcd & hostapd. Aservicestart.sh
script brings up services in a specific order and timing to avoid race conditions.Only tested thus far on Stretch Lite with a 3B+. Some notes:
/etc/rc.local
Updated the Advanced tab of Hostapd config UI to use bootstrap toggles 😎