-
-
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
Can't seem to get this working with a RPi3 + USB WiFi for Client side #78
Comments
@jbishop129 unfortunately, I don't have an RPi3 or two WiFi dongles to test this case. What you describe should be doable, though. A routed+NAT setup between the two wireless interfaces is what you're after. RaspAP doesn't currently support this type of configuration in the UI, but it might be a candidate for an advanced option in the future. Again, I'm unable to verify on my hardware, but this is how to configure NAT between wlan0 (the AP) and wlan1 (the client):
You may want to list your current iptables rules ( |
Hi @billz thanks for replying to me. I did end up getting this working; it turned out my client-side wlan1 interface was set to I may be slightly confused: Is the implementation intention with RaspAP to use a single wlan0 interface for both the hotspot side, and the client side? |
Glad you got it working. Initially it was intended more as an either/or use, as many Pi owners simply wanted an easy way to manage client connectivity. Nowadays, RPi Zeros are being configured to operate in an AP and client mode on the same wlan0 interface. With the RPi3's onboard wifi it makes even more sense to support multiple wlan interfaces in RaspAP. Thanks for your contribution. We'll look to integrate this soon. |
Hello, I also know this isnt a support forum but I have finished on a solution that is functional for me and should help jbishop129. If its helpful to anyone then I figured I'd best post close to source. I hope its a useful contribution! I am using an rpi3 and raspap-webgui with two wifi adapters (On board chip (AP) and usb RTL8191SU (Client)). The client won't be fixed to one AP because it is installed in my campervan and the usb adapter has an external sma connection so I can hook up a substantial aerial a distance away from the pi. For this reason a router setup is more suitable than a bridge because it will be the home network for our devices - therefore my iptables are different to billz suggestion. For this reason I have setup my iptables and iprouting scripts through cron. Setting the ip at boot is not flexible enough when I am travelling and using different hotspots; I only want the hassle of registering one device for all the others and have iptables respond automatically - so the ui is really great!!! thank you :) After the raspap-webgui quick installer I setup the devices and scripts in this way: wlan0 - access point
#!/bin/sh
#!/bin/sh
#!/bin/sh
I cannot figure out how to stop hostapd adding the AP as a default gateway every x seconds, therefore setuproutes runs every two seconds to minimise any disruption. setupiptables run every ten seconds but flushed every minute so the buildup isnt too messy and I dont have to manually run it when I get to a new stopover (Or whatever). #iptables reset
#iptables refresh sequence
#iprouting refresh sequence
Remove wpa_supplicant line from under wlan0 in /etc/network/interfaces Unplug usb wifi adapter Edit /lib/udev/rules.d/75-persistent-net-generator.rules Replace - #device name whitelist With - #device name whitelist reboot to permanently register onboard wifi as wlan0 shutdown plug in usb adapter and switch on reboot again when system settled Then check To see that adapters are permanently assigned
Thats all I did I'm sure, just need to play with incorporating pi-hole apparently resides in a subdirectory of /var/www/html/admin so will sit alongside raspap-webgui with no conflicts????? Not sure... Thank you very much @BillZimmerman, @jrmhaig and @SirLagz I enjoyed learning something new and look forward to simplfied internet access while on the road through Europe. Cheers, sources - 1.,2.,3. - (Slightly modified from) https://rbnrpi.wordpress.com/project-list/wifi-to-ethernet-adapter-for-an-ethernet-ready-tv/ |
Came here to say "thanks" to @anthortic , as this is the exact scenario I wish to use my RasPi in. (I struggled a bit to understand the crontab entries, until I realize that Markdown is misinterpreting your asterisks) :) Also thanks to the authors of raspap! @billz , it certainly would be nice to have this implemented in the GUI, but thanks for sharing the fruits of all your efforts thus far! |
@anthortic this is a super valuable contribution. Clearly this is a use case a growing number of RPi and RaspAP users are seeking. I've bumped this up on my list of priorities. Many thanks. |
I have been searching for days to find instructions that I, a new person, can follow, to do the exact thing that jbishop129 wants to do. Either with a dongle on a Pi3 or on a Pi0W as billz outlined. But I can't find any site that give it to me step by step. You all know what you are doing. Can someone point me to a URL that can step me through this? Many thanks! |
Holy cow, what a coincidence! I had been sidetracked on other projects, and
just yesterday while on vacation was looking at RaspAP's progress. I saw
this commit below that I'm excited to try when I get home, which looks like
it takes the hardcoded wlan0 interface and allows it to be modded easily. I
don't think the commit has been approved and merged yet, but certainly the
first thing I will be testing the I get home next week
https://github.com/billz/raspap-webgui/pull/140/files
Joe
…On Feb 8, 2018 6:29 PM, "MBishton" ***@***.***> wrote:
I have been searching for days to find instructions that I, a new person,
can follow, to do the exact thing that jbishop129 wants to do. Either with
a dongle on a Pi3 or on a Pi0W as billz outlined. But I can't find any site
that give it to me step by step. You all know what you are doing. Can
someone point me to a URL that can step me through this? Many thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#78 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aa02qZ3O5uhCDQ9GKJevPlBwKP2dQw8Qks5tS8mkgaJpZM4Nuel2>
.
|
@jbishop129 I tested and merged @emmanuelgeoffray's pull request. The ability to set the wireless interface from a global is indeed very useful. |
@billz thank you sir. I will pull and test this on my end shortly!
…On Feb 11, 2018 3:18 AM, "Bill Zimmerman" ***@***.***> wrote:
@jbishop129 <https://github.com/jbishop129> I tested and merged
@emmanuelgeoffray <https://github.com/emmanuelgeoffray>'s pull request.
The ability to set the wireless interface from a global is indeed very
useful.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#78 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aa02qR0t1C5RnVpqTQQrZC5yuVvAig2Eks5tTr6RgaJpZM4Nuel2>
.
|
…-2.0.5 Bump copy-props from 2.0.4 to 2.0.5
Hey guys, sorry I know this isn't a 'support forum', but seemed like the only place I could turn to. Vanilla install of Rasbian Jesse on a RPi3, supported USB WiFi Dongle, ran the one-line quick installer from the readme and it works just fine. I want to use the built-in RPi's WiFi (wlan0) as the Hotspot side, and the USB WiFI (wlan1) as the Client side. I can connect to the Hotspot side just fine with phones and laptops, can hit the configuration webUI just fine. I can get the Client interface to connect to a WiFi network just fine, I see it pulls an IP (ifconfig) and is in fact attached (iwconfig) to the network, but it doesnt actually let clients attached to the Hotspot connect outbound through that connection. If I connect Ethernet hard-wired to eth0, it works like a champ, just doesnt seem to bridge / NAT from wlan0 -> wlan1 as far as I can tell. Sort of seems like it's hard-coded to wlan0 -> eth0 only. I feel like I'm missing something very simple! Any pointers? Thanks! --Joe
The text was updated successfully, but these errors were encountered: