Raspberry Pi Remote Site VPN Client Gateway
I need to be able to manage some remote systems to help maintain some remote radio stations. Here's the basic of how to setup your own. This will allow you to connect to computers behind the router without having to setup a static IP address.
This post assumes that you have a reasonable understanding of how to navigate directories, copy, and edit text files from the Linux command line.
- Raspberry Pi (2 B+ or better)
- Micro SD Card
- Power supply
- Ethernet or Wifi Internet connection
- Screen with HDMI input
- Cable from HDMI to screen's input HDMI to VGA, HDMI to DVI, or HDMI to HDMI.
- VPN Server/Service
We'll assume that you either have an Open VPN server setup or subscribed to an OpenVPN service.
Steps to Setup Raspberry Pi VPN Client Gateway
- Create your SD card to run your operating system from. I chose the Raspberian Lite from https://www.raspberrypi.org/downloads/raspbian/
- Install the card, connect the peripherals, and power it on.
- Login with the user pi and password rasbperry
- Run sudo raspi-config
- Change your password, Locale, Keyboard, etc....
- Run sudo dpkg-reconfigure tzdata to update your timezone.
- Turn on SSH
- Install software
- apt-get install screen openvpn shorewall
- Install your crt and key files in /etc/openvpn/keys
- Configure Shorewall
This is a quick and simple way to grant access to other trusted individuals to computers behind a firewall or dynamic IP address. The location of the raspberry pi needs to be secure because if someone were able to obtain access to the Pi they could then compromise the VPN because they would then have access to valid VPN keys. A better solution would be to use a SBC with a built in storage device such as the Udoo x86 or Udoo Bolt.
- Raspberry Pi 3 B+ Kit with Premium Clear Case and 2.5A Power Supply (Approximately $55) https://amzn.to/2ZaME6G
- Raspberry Pi 3 B+ (B Plus) with 2.5A Power Supply (UL Listed) (Approximately $48)
- Raspberry Pi 3 B+ Case Aluminum Case Silver Metal Case Enclosure with Raspberry Pi Heatsink Fan 5V 2.5A US Power Supply (Approximately $18)
- 32GB Samsung EVO+ Micro SD Card (Less than $10)
- 32GB Samsung EVO Select Micro SD Card (Less than $10)
Post a Comment