July-7th-2021, 06:26 PM
(This post was last modified: July-7th-2021, 06:40 PM by Armin@netPI.)
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
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
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
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)