shanem2 wrote: ↑
Wed Jun 20, 2018 10:53 am
@wanstreet - I'm trying to achieve the same. Basically looking at WiFi for my NAS but I have a second RPi which will be a different location and primary will Sync.
I'm struggling with the first part, but doing mine all headless as I don't have suitable monitors and keyboard/mouse.
I can see my WiFi AP come up, but it's not issuing IPs. I had a static on one host and got a single ping working but then fails. I'm thinking it's an iptables issue.
I'll work on the client side once this works.
I'm going to also install Plex so my kids can watch movies from tablets on the go. The NAS is so we can backup files from other devices.
If you have any links or config files, please share. I'll let you know what I have re AP Client shortly.
I have shared one link, its basically from a github guy, you can follow it, and see if its working.
It has one part where you need to make some changes in the /etc/network/interfaces file, which did not bode well for me.
You can try it and see if you can get it to work,
The concept is to use the dhcpcd to work with the internal/onboard wifi interface, which is wlan0 by default.
and use another dhcp server i.e dnsmasq or isc-dhcp( any1 u are familiar with) to work with another wifi interface, you can either add a virtual interface or use another wifi adapter( I am trying with a virtual interface, you can try it with an separate wifi-adapter, your wish)
The trick is not to allow the dhcp's to talk to each other, sometimes you will see that the dhcp server(not the dhcpcd) giving ip address to the internal wifi(wlan0) which leads to the problem of "lost connection to dhcpcd", (atleast thats what I think, and i am no ras-pi expert).
So we need to keep those to love-birds separate(cruel world) .
i wrote no-dhcp-inteface=lo,upa0(the virtual interface) in /etc/dhcpcd.conf file and no-dhcp-inteface=lo,wlan0 in dnsmasq.conf file
once that was done all I did was restart the dhcpcd service, followed by hostapd service, followd by dnsmasq service.
It was working.
My devices were able to get IP address from the dnsmasq but they were not able to access the internet.
And my raspi device was able to host the AP as well as connect to the outer internet.
Its not perfect but if u wana run some sort of data transmission related work, you can run a python script who will fwd the data to any outside server.