Hi,
I need to connect some raspberry to my container on my NAS, i follow The tutorials and i connect a raspy easily...
But i need to connect it outside my LAN, through an internet connection, how i can archieve it?
Thanks
How to connect a Raspberry to a QIoT through WAN?
-
- New here
- Posts: 5
- Joined: Thu May 16, 2019 3:31 am
- dolbyman
- Guru
- Posts: 35276
- Joined: Sat Feb 12, 2011 2:11 am
- Location: Vancouver BC , Canada
Re: How to connect a Raspberry to a QIoT through WAN?
either a vpn from raspi LAN to NAS LAN
or port forward your NAS container ports
or port forward your NAS container ports
-
- New here
- Posts: 5
- Joined: Thu May 16, 2019 3:31 am
Re: How to connect a Raspberry to a QIoT through WAN?
Thanks @dolbyman
Mmm... a VPN is a nice idea... I have tuo use a GPS+GPRS shield but OpenVPN Should be' easy to install...
Without a VPN where i have to put the External IP:port of my NAS in the raspy?
Mmm... a VPN is a nice idea... I have tuo use a GPS+GPRS shield but OpenVPN Should be' easy to install...
Without a VPN where i have to put the External IP:port of my NAS in the raspy?
- dolbyman
- Guru
- Posts: 35276
- Joined: Sat Feb 12, 2011 2:11 am
- Location: Vancouver BC , Canada
Re: How to connect a Raspberry to a QIoT through WAN?
GPRS so we are dealing with 2G cell data connections here ?
without a VPN it would the the external IP of your (I guess) router+port forwarded to the NAS
without a VPN it would the the external IP of your (I guess) router+port forwarded to the NAS
- OneCD
- Guru
- Posts: 12156
- Joined: Sun Aug 21, 2016 10:48 am
- Location: "... there, behind that sofa!"
Re: How to connect a Raspberry to a QIoT through WAN?
Not sure what it’s like in other countries but here in Australia, cell-tower routers are assigned dynamic IP addresses - depending on the provider.
- dolbyman
- Guru
- Posts: 35276
- Joined: Sat Feb 12, 2011 2:11 am
- Location: Vancouver BC , Canada
Re: How to connect a Raspberry to a QIoT through WAN?
I think the IP should stay intact across cell handovers (if the device is even moving.. OP never stated)
the NAS is (I guess) stationary with either a fixed IP or DDNS in place
the NAS is (I guess) stationary with either a fixed IP or DDNS in place
- OneCD
- Guru
- Posts: 12156
- Joined: Sun Aug 21, 2016 10:48 am
- Location: "... there, behind that sofa!"
Re: How to connect a Raspberry to a QIoT through WAN?
Same here. The problem is really only those portable routers/APs that go to sleep after 10 minutes of inactivity. When they wake-up, they can be assigned a different IP address. Using DDNS helps, of course.
-
- New here
- Posts: 5
- Joined: Thu May 16, 2019 3:31 am
Re: How to connect a Raspberry to a QIoT through WAN?
Yes, the router/NAS have the fixed IP, the "other" raspberry use cellular connection...
What I don't understand is how to match the IPs, that is, following the wizard I configure the raspberry with the local ip, then when I take it "out" from the LAN I have to indicate to the raspberry the IP of my NAS and the port to enter...
On the NAS side should the IP of the raspy be configured or does it automatically acquire it with the incoming connection?
i'm a noob
What I don't understand is how to match the IPs, that is, following the wizard I configure the raspberry with the local ip, then when I take it "out" from the LAN I have to indicate to the raspberry the IP of my NAS and the port to enter...
On the NAS side should the IP of the raspy be configured or does it automatically acquire it with the incoming connection?
i'm a noob
- dolbyman
- Guru
- Posts: 35276
- Joined: Sat Feb 12, 2011 2:11 am
- Location: Vancouver BC , Canada
Re: How to connect a Raspberry to a QIoT through WAN?
as you use the TUN interface of the OpenVPN connection as your gateway/route, the NAS IP that the RasPI talks to, can stay the same no matter if local connection or VPN connection