Posts: 6
Joined: Sun Apr 06, 2014 4:01 pm

Hotspot -> pi as client -> pi network -> personal devices

Mon May 14, 2018 10:58 pm


I'm attempting to set up a pi to function in much the same way as a TP-Links TL-WR710N can in WISP router mode. My pi connecting to a client network, and then also creating a private network so that i can share internet access between multiple devices. Having an extra Wi-Fi dongle to the onboard one is not a problem, and I have one in mind which uses the RT5370 chipset.

I’ve already attempted many tutorials, including ... and ... or-router/ however so far all have failed, and I lose all connectivity to any network from my pi.
To add extra complication to the project, I’d also like to reserve 1 IP address for a Kodi setup sitting on a different pi, and a samba/NAS share which is only accessible from within the private section of the network.

Does anybody know of a good tutorial which would allow me to set this up reliably? Or is someone who has expertise in the subject able to write a how-to/guide/tutorial on how to do some/all of these tasks?

Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Hotspot -> pi as client -> pi network -> personal devices

Tue May 15, 2018 11:37 am

I use the NAT access point setup here. ...
I can use a usb dongle for either the client or ap, depending on the dongle. Some usb dongles don't do the ap mode.

It takes a bit more setup to use a wifi device as the client (WAN). Did you split the wpa_supplicant file?

I also needed to insure they booted using the correct interface names. Change the mac addresses to your requirements.
Create file /etc/udev/rules.d/72-static-name.rules

Code: Select all

ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*",
ATTR{address}=="00:c0:ca:96:d8:8b", KERNEL=="w*",NAME="wlan0"

ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*",
ATTR{address}=="b8:27:eb:1e:56:52", KERNEL=="w*",NAME="wlan1"
Also you must install a masquerade for your WAN wifi device.

Posts: 1
Joined: Sat May 19, 2018 3:57 pm

Re: Hotspot -> pi as client -> pi network -> personal devices

Sat May 19, 2018 4:04 pm

I have been able to configure the Raspberry Pi as both an access point and a wifi client using the built-in wifi only. I have followed the instructions on this page: which has has worked great for the raspbian stretch 2017-11-29 version.
However, with the new raspbian 2018-04-18 version, some things have changed in the way wifi works on the Raspberry Pi and these instructions no longer work as before.
Could anyone explain to me what changes I should make in my configuration for it to work as before?

Return to “Networking and servers”