![]() This screen confirms your current IP address for the Pi. Then click Enter to go to the next screen. If you can connect the Pi via ethernet, this will be much better for speeds! To choose an option, move your selection with the arrow keys and select it with the Spacebar. I personally choose Wi-Fi as my Pi isn’t close to my router. In the interface selection, you can choose whether you’d like to set the VPN up on your ethernet connection (eth0) or your Wi-Fi (wlan0). I made this mistake during the install process, and it gets messy to restart the install process to change it! Don’t have a static IP on your Pi? Don’t worry - the automated installer will set up a static IP for you soon.īe careful on this screen: hitting Enter will take you to the next screen, rather than making a selection in the two radio button options. Once you’ve hit Enter, you’ll be taken to another screen which will point out that a static IP address is important for this VPN service to work: if you don’t have a static IP for your Pi, your router won’t have an IP address to forward VPN functionality to. Running that command will open a slightly nicer looking, text-based GUI that starts with a simple prompt: I haven’t gone through and vetted their bash command line by line (I trust them!) but it is available to look through on their GitHub account (under install.sh within the auto_install folder) if you have any concerns. That can be incredibly dangerous if you don’t trust the installation source, as it will run whatever code you give it straight away. Important Note: This command parses a random script downloaded from the web directly into your Pi’s bash. ![]() Now all you need is to get that config file either by plugging in a thumb-drive or by simply copying it to your samba share (that we set up in the first DietPi post that we set up here).To get started, we run the following command in our Pi’s terminal (either via SSH or directly on the Pi): curl -L | bash Since I’m running it as dietpi my directory is /home/dietpi/ovpns: PiVPN will generate an ovpn config file and place it in its home users ovpns directory. ![]() To generate a config without a password use the following command: pivpn add USERNAME nopass Where USERNAME is the desired name of the VPN user you want to add. To generate a configuration simply run: pivpn add USERNAME Wait for the Raspberry to reboot and than ssh back in. Select the DNS provider (i recommend Google or Level3): Note: if you select DNS it won’t read the Raspberry’s hostname, but instead ask you to manually input an entry yourself Select either IP or DNS (that will be used in the config generation): I suggest going with 2048, but even that will take an hour to generate on a Raspberry: Leave the default port of 1194 (remember this is not public facing, so you can always use a different port in your router when port forwarding): I highly suggest enabling the unattended security upgrades: ![]() Leave either dietpi as the user or select pivpn if you want to better isolation: Than the PiVPN install wizzard will start, hit Ok:Īnd again (well in this case it’s Yes, but you get the idea): Wait for it to install the needed packages: Near the bottom of the list, at position 117 you will find PiVPN, select it and press Ok: To install it first you want to log in via ssh: This is a follow up article to network-wide adblock with a Raspberry Pi the lazy. If you followed that article then the Raspberry (or equivalent) is already deeply integrated into your network, why not add it some other network related roles like for example VPN? Luckily there is a fully fledged OpenVPN based package in DietPi as well that can use UPD (unlike RouterOS at the moment) and has a really nice command line utility for managing certificates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |