0

i'd like to connect to the raspberry pi remotely.. through my research i have found SO MANY ways to do this through port forwarding on the local network router. And most of my search results come up with ways to do this or using raspberry pi as a VPN server (still exposing a port on the router for any traffic) what i am trying to do is connect my data in this format:

Raspberry pi ---> VPN server <---- me on my phone wanting to connect remotely (across the world)

          <---            -----> (send and recieve for either)

to elaborate, i am removing my local network from the risks of opening a port to the internet. Now it is hosted through VPN. Any and all suggestions are very welcome in this case, i've had a bear of a time finding information on this exact thing.

not exactly related -- but my intention is to connect to the raspberry pi remotely, as a desktop-- currently i am using VNC viewer to do so and it's working for a local network only.

after this VPN server connection is set up, when using VNC viewer could i then type the VPNs address for connection?

Side note: i have multiple websites hosted, i did some research on ways to use those websites for this purpose and my search results came up with answers for a different question. Could i use one of my hosted websites for this same kind of connection i am looking for?

UPDATE: found that some of these VPN services allow many many outbound and very few inbound connections, meaning its very easy to connect outwards from the server and request other networks but its very difficult to establish new inbounds. (ex: my raspberry pi connection to the VPN + my phones data network connection) Please correct this if i the statement is wrong. This is what ive gathered.

if that VPN network allows two inbound connections simultaneously, there'd be no issue? Thats essentially what i want.

if you know how to do this can you suggest a VPN service? Link a tutorial that explains to do like this?

1
  • 1
    You probably want some remote/cloud server instance on Amazon or so, then you can set up a VPN server yourself there and have your Pi as a client. Though I don't know if it's technically much more secure...(technically a client can serve as a "gateway" for other clients, although that is not the default behaviour; see iroute in the openvpn manual) – Tom Yan May 11 '20 at 2:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.