Hilscher Community Forum
Open VPN - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Open VPN (/thread-567.html)

Pages: 1 2 3


RE: Open VPN - DSongra - March-12th-2020

Hi Armin,

Thanks.

I already checked with other procedure to configure OpenVPN in NetPi 

youtube link for OpenVPN configuration - 

https://www.youtube.com/watch?v=WA7QTM9hovQ

command run - curl -L https://install.pivpn.io | bash


All setting done, but at the last, I am getting error Failed to install Linux-headers-amd64! attached screenshot.



Br,
Devendra


RE: Open VPN - Armin@netPI - March-12th-2020

Dear Devendra,

I have one question first. Are you using original netPI system software or do you have installed a different micro SD card with different OS?


RE: Open VPN - DSongra - March-12th-2020

(March-12th-2020, 11:12 AM)Armin@netPI Wrote: Dear Devendra,

I have one question first. Are you using original netPI system software or do you have installed a different micro SD card with different OS?

Dear Armin,

I have only Hilscher netPi, all testing going on the same netPi hardware.

Br,
Devendra


RE: Open VPN - Armin@netPI - March-12th-2020

Ok, but from where do you call the command "curl -L https://install.pivpn.io | bash"?`

On netPI you cannot call this command without any basic container running? Which container do you run to call this command?


RE: Open VPN - DSongra - March-12th-2020

Dear Armin,

I am using hilschernetpi/netpi-netx-programming-examples docker image in netPi for SSH port 22. To access netPi I am using Putty on my window application, and running "curl -L https://install.pivpn.io | bash command".



Br,
Devendra


RE: Open VPN - Armin@netPI - March-12th-2020

Ok I see.

I would always recommend for tests to use the image https://registry.hub.docker.com/r/hilschernetpi/netpi-raspbian/. This is basically as good as original Raspbian OS as you can load it for original Raspberry Pi.

Basically I agree that hilschernetpi/netpi-netx-programming-examples is also ok.

Web site "https://install.pivpn.io" is on index at Hilscher main office and cannot be accessed from here.So the IT department restricted it, I don't know the reason. I think it might be because of security reasons. So I cannot cross check anything here of what you are doing. I am sorry.

Thx
Armin


RE: Open VPN - Armin@netPI - March-12th-2020

I checked again installing the VPN server as you do and as it is written on the page https://www.pivpn.io/

Since the web site https://install.pivpn.io is forbidden at Hilscher office I checked the content of this web site with my celluar and I was able to see that there is just a redirection to

Code:
https://raw.githubusercontent.com/pivpn/pivpn/master/auto_install/install.sh

So instead of calling
Code:
curl -L https://install.pivpn.io | bash

I was calling

Code:
curl -L https://raw.githubusercontent.com/pivpn/pivpn/master/auto_install/install.sh | bash

here in the Hilscher office and I was able to install it.

But precondition was to use the https://registry.hub.docker.com/r/hilschernetpi/netpi-raspbian/ as base image.

Thx
Armin


RE: Open VPN - DSongra - March-12th-2020

Here i attached "https://install.pivpn.io" website file.


RE: Open VPN - Armin@netPI - March-12th-2020

I got it working. I am able to connect to the OpenVPN container on my netPI.

Look this is a picture of my Windows Open Client program showing success and connection to the container.

   

So here is what I did:

  1. I installed the netPI Raspbian container from here https://registry.hub.docker.com/r/hilschernetpi/netpi-raspbian/ running in host and privileged mode.
  2. I opened an SSH connection over an SSH client program (putty) to the container
  3. I changed from user "pi" to user "root" using the command
    Code:
    sudo -i
  4. Then I called the following command
    Code:
    apt-get update
  5. Then I called
    Code:
    curl -L https://raw.githubusercontent.com/pivpn/pivpn/master/auto_install/install.sh | bash
  6. I clicked through all the options and made a setup in accordance to the wizard
  7. Finally I called
    Code:
    pivpn add
  8. I received a *.ovpn file which I imported to my Windows Open Vpn Client command
  9. Then I started the OpenVPN server with
    Code:
    /etc/init.d/openvpn start
  10. Finally I click "connect icon" in my Windows Open Vpn Client and it was connecting fine



RE: Open VPN - DSongra - March-12th-2020

Dear Armin,

as per your suggestion, I installed hilschernetpi/netpi-raspbian container, able to connect to Putty.

First, I run - "apt-get update"  error comes, attached screenshot.



Br,
Devendra