• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remot VPN connection from netPI to company network
#4
Well OpenVPN makes me happy since I can't tell you anything of the others.

It the most popular VPN technology used. I running an OpenVPN server in my home network too and I am able to login from my office netPI to this home network over VPN. So it is pretty much the same setup you have to realize.

This is how I did it:

1. I deployed the raspbian container https://hub.docker.com/r/hilschernetpi/netpi-raspbian/ first of all to my netPI. Raspbian container gives a netPI a "flair" of being a standard commercial Raspberry PI.
2. As next I connected to the Raspbian container over an SSH client such as putty to be able to call Linux command in the console
3. Since OpenVPN client is available as installer included in the Raspbian container you just can simply call
  
Code:
sudo apt update
sudo apt install openvpn

4. As next your IT team has to provide you a socalled *.ovpn configuration file which tells a client how to connect to the OpenVPN server and how the client shall behave in general
5. Take this *.ovpn file and copy it over to the Raspbian Container (with WinSCP for example) 
6. Finally you can start now the OpenVpn Client calling
Code:
openvpn --config <your config file>.ovpn

7. If netPI has internet connection it will connect to the OpenVPN server now with charm.
8. Since netPI features Docker it depends now on the Raspbian container settings how "far" the connection between the client and server reaches. If the Raspbian container is running in bridge mode ... the client/server connection will not leave the containers internal network. This is different if the Raspbian container was started in "host" network mode which is more open.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
RE: Remot VPN connection from netPI to company network - by Armin@netPI - July-7th-2021, 06:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Network issues after upgrading to Stretch + kernel to 5.4 carmel85 2 3,162 July-28th-2020, 03:04 PM
Last Post: Armin@netPI
  netpi-desktop-hdmi with setting network=bridge tad 13 8,541 June-19th-2020, 12:50 PM
Last Post: tad
  VPN tunnel to netPI and local network in 10 minutes Armin@netPI 0 2,287 June-5th-2020, 05:40 PM
Last Post: Armin@netPI
  Web browser reports "insecure connection" when accessing netPI for the first time Armin@netPI 2 2,908 January-31st-2020, 07:07 AM
Last Post: Armin@netPI
  [SOLVED] Slow network connection Andi 5 3,825 May-22nd-2019, 05:16 PM
Last Post: Armin@netPI
  Modbus TCP Connection via RTE Ethernet Ports Flo_Lo 18 12,170 April-15th-2019, 09:50 PM
Last Post: Armin@netPI
  3 Network Ports possible on NIOT-E-NPI3-51-EN-RE? yulian 7 8,922 April-3rd-2018, 02:57 PM
Last Post: Armin@netPI
  NTP setup (Network time protocol) zulliger@software-natives.ch 1 2,638 February-7th-2018, 09:05 PM
Last Post: Armin@netPI
  Container IP address - Network Options kimsmyth 2 3,377 January-30th-2018, 11:04 AM
Last Post: kimsmyth

Forum Jump:


Users browsing this thread: 1 Guest(s)