I want to control my Raspberry Pi from a long distance not using WiFi and be able to send my data to it and receive data from it distance could be like 12 kilometres for more than it and and if possible w.hat is the cheapest way to do it
Asked
Active
Viewed 890 times
2
1 Answers
1
You can connect the Raspberry Pi with an ethernet cable to an internet router and then use OpenVPN to communicate with it.

Ingo
- 42,107
- 20
- 85
- 197
-
I don't know Open VPN, so I wikied and made a summary: (1) () Open-source (GPL) commercial, using VPN to create point-to-point or site-to-site connect in routed or bridged configurations and remote access facilities, () Available in Linux, macOS and Windows, Windows Mobile, iOS, Android, () Uses SSL (256bit)/TLS (rather than IKE, IPsec, L2TP or PPTP) for key exchange () , / to continue, ... – tlfong01 Sep 16 '19 at 01:40
-
(2) () Capable of traversing NAT, () Allows peers to authenticate each other using pre-shared secret keys, certificates or username/password () Uses OpenSSL, can setup HMAC Firewall, Support mbed TLS, () Supports IPv6 VPN inside tunnel, () Can work through most proxy servers (including HTTP), () Good at working through network address translation (NAT) and getting out through firewalls, (*) Server can push configuration options to the clients, including IP addresses, routing commands, / to continue, ... – tlfong01 Sep 16 '19 at 01:41
-
(3) () Offers networking interfaces with universal TUN/TAP driver, () Can create layer-3 based IP tunnel (TUN), or layer-2 based Ethernet TAP that can carry any type of Ethernet traffic, () Can compress data stream using LZO, () Use IANA assigned port 1194, () Uses TCP and UDP, desirable alternative to IPsec in situations where an ISP may block specific VPN protocols, () When using TCP tunnel, performance might be bad if un-tunneled link bad, causing TCP meltdown, (*) Runs in userspace instead of requiring IP stack (kernel) operation, / to continue, ... – tlfong01 Sep 16 '19 at 01:43
-
(4) () Able to drop root privileges, prevent swapping sensitive data to disk, enter a chroot jail after initialization. () Spport PKCS11-based cryptographic tokens smart cards.
My conclusion is that OpenVPN is good for me, for the following reasons: GPL, Windows/Linux/Android/PKC11 smart card OK, can jail break firewalls, proxies. I am a hobbyist doing Micky Mouse projects, So I don't care much about security, but using OpenVPN can let me show off that I have heard of weird names I don't understand: NAT, SSL, TLS, LZO, HMAC, TUN, TAP, IANA, ...
– tlfong01 Sep 16 '19 at 01:50 -
@tlfong01 You are right. OpenVPN is very popular for really secure communication. Its also frequently used by professionals and in enterprises. Because it's open source it is very unlikely that it has backdoors. – Ingo Sep 16 '19 at 08:46
(2) Amateur Radio Wiki http://www.amateur-radio-wiki.net/index.php?title=What_is_Amateur_Radio%3F
(3) Amateur Radio Intro https://ethw.org/Amateur_Radio
(4) Amateur Radio Frequency Allocations https://en.wikipedia.org/wiki/Amateur_radio_frequency_allocations#Very_high_frequencies_and_ultra_high_frequencies
– tlfong01 Sep 15 '19 at 03:04