0

System network configuration

My setup is described in the image above. I have a raspberry pi connected to a router via Wi-Fi and the router is connected to a host via a Ethernet cable. The router doesn't have a internet connection -- only internal routing - LAN.

So my question is -- how would I set a simple VPN tunnel on the Raspberry Pi which would be used to route all the incoming and outgoing LAN traffic?

I've looked into PiVPN but that requires an Internet connection and I've also looked into PIA's solution to this, but again, it requires an Internet connection. Other guides for LAN only configurations for VPN tunneling haven't been helpful.

Thanks for any help.

EDIT 8:15 PM - 1/8/19: The host is a Programmable Logic Controller (PLC) which is programmed using Ladder Logic. The purpose of this tunnel would be to encrypt the traffic to and from the raspberry pi. In this way another host inside the LAN e.g. attacker computer, wouldn't be able to sniff or modify the data packets send between the two parties.

Drop_Cake
  • 1
  • 2

3 Answers3

1

Do you need VPN? I have made very good experiences using x11vnc. You need to set up an x11vnc server e.g. on RPI and a client, that is, a VNCviewer on the host. In the setting described by you this should work pretty well..

0

you need a ssh tunnel not a vpn this is only a guide that maybe help.

abaddon s
  • 1
  • 1
0

There are only answers not to use a VPN tunnel. In principle I agree with that because I think using a virtual private network on a simple local area network without public access for a simple secured point to point connection is overkill. But to answer your question for an OpenVPN you can look at Simple openVPN with static keys. There you can find a simple setup mostly thought as entry point for setting up a VPN. The diagram shows an VPN tunnel through the internet but the first step of the setup is for local testing so you should be able to adopt it for your needs.

Ingo
  • 42,961
  • 20
  • 87
  • 207