{"id":34232,"date":"2020-07-02T20:33:19","date_gmt":"2020-07-02T12:33:19","guid":{"rendered":"\/blog\/?p=34232"},"modified":"2021-06-10T14:55:43","modified_gmt":"2021-06-10T06:55:43","slug":"set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/","title":{"rendered":"Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1030\" height=\"579\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/cover-1030x579.png\" alt=\"\" class=\"wp-image-34314\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-1030x579.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-300x169.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-768x432.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-1024x576.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png 1200w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction <\/h2>\n\n\n\n<p>If you want a VPN to secure your internet connection when you are browsing the internet on public networks, you might be looking for a subscription service that offers this service. These VPN services are simple and work out of the box, but they are mostly expensive, have to pay on a monthly basis and you are ultimately putting your trust in their hands since they can see all your network activity if they want to. What if you could have an alternative option which is both cheaper and safer? If you have a <a href=\"https:\/\/www.seeedstudio.com\/Raspberry-Pi-4-Computer-Model-B-4GB-p-4077.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Raspberry Pi (opens in a new tab)\">Raspberry Pi<\/a> with you, setting it up as a VPN server will only take you a couple of minutes! In this blog, we will help you set up an OpenVPN server on your Raspberry Pi with quickly and easily!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a VPN?<\/h2>\n\n\n\n<p>VPN stands\nfor Virtual Private Network. Simply it allows you to connect to a LAN (Local\nArea Network) through the internet. This is done by creating an encrypted\nconnection (tunnel) between you and a VPN server within the LAN. So, when the\ndata leaves your device, it is encrypted and when it reaches the destination,\nit is decrypted. This keeps your data secure and private. When you connect to a\nVPN server, all your internet traffic is routed through this VPN tunnel. This\nultimately makes it impossible for hackers to hack into your data since it\u2019s\nencrypted. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1030\" height=\"280\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/Untitled-1-1030x280.png\" alt=\"\" class=\"wp-image-34236\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/Untitled-1-1030x280.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/Untitled-1-300x82.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/Untitled-1-768x209.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/Untitled-1-1536x418.png 1536w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/Untitled-1-2048x557.png 2048w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/Untitled-1-1024x279.png 1024w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Why use PiVPN?<\/h2>\n\n\n\n<p>PiVPN is a program that can be used to install and configure an OpenVPN server on your Raspberry Pi. It takes only a few minutes for setting it up. By using PiVPN you can browse the web safer when you are at unsecured public Wi-Fi networks. Also, you can communicate with devices connected to your home network by using PiVPN. Alternatively, if you set it up in your office and want to work from home, you would be able to use all the tools and serves in the office through the VPN. If you are traveling abroad where some services are geo-blocked for that region, you can potentially be able to access them via your home network using PiVPN.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/pivpn_logo.png\" alt=\"\" class=\"wp-image-34237\" width=\"203\" height=\"202\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/pivpn_logo.png 279w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/pivpn_logo-80x80.png 80w\" sizes=\"(max-width: 203px) 100vw, 203px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How to set up PiVPN on a Raspberry Pi?<\/h2>\n\n\n\n<p>Setting up\nPi-hole is not a complicated process. We will start by listing what you need\nfor this setup:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>1 x <a rel=\"noreferrer noopener\" aria-label=\"Raspberry Pi  (opens in a new tab)\" href=\"https:\/\/www.seeedstudio.com\/Raspberry-Pi-4-Computer-Model-B-4GB-p-4077.html\" target=\"_blank\">Raspberry Pi <\/a><\/li><li>1 x <a rel=\"noreferrer noopener\" aria-label=\"USB Type-C Cable with power adapter  (opens in a new tab)\" href=\"https:\/\/www.seeedstudio.com\/Wall-Adapter-Power-Supply-5VDC-3A-Type-C-p-4103.html\" target=\"_blank\">USB Type-C Cable with power adapter <\/a><\/li><li>1 x <a rel=\"noreferrer noopener\" aria-label=\"Argon ONE Raspberry Pi 4 Aluminum Case (opens in a new tab)\" href=\"https:\/\/www.seeedstudio.com\/Argon-ONE-Raspberry-Pi-4-Case-p-4250.html\" target=\"_blank\">Argon ONE Raspberry Pi 4 Aluminum Case<\/a> (Optional)<\/li><li>1 x <a rel=\"noreferrer noopener\" aria-label=\"Micro-SD card with card reader (opens in a new tab)\" href=\"https:\/\/www.seeedstudio.com\/micro-SD-Card-with-Card-Reader-32GB-Class-10-p-4082.html\" target=\"_blank\">Micro-SD card with card reader<\/a><\/li><\/ul>\n\n\n\n<p>Note that we have used Argon ONE Raspberry Pi 4 Aluminum Case because once you set up Pi-hole on your Raspberry Pi, you would leave it running all the time. So, this case can help provide better cooling while the Raspberry Pi gets hot from continuous usage. On the other hand, it\u2019s also a very stylish Aluminum case to use with your Raspberry Pi!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.seeedstudio.com\/Argon-ONE-Raspberry-Pi-4-Case-p-4250.html\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15925550381.png\" alt=\"\" class=\"wp-image-33987\" width=\"413\" height=\"226\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925550381.png 877w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925550381-300x165.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925550381-768x423.png 768w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><\/a><figcaption> Argon ONE Raspberry Pi 4 Aluminium Case&nbsp; <\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring the Raspberry Pi for initial boot <\/h3>\n\n\n\n<p>When you buy\na Raspberry Pi, there is no operating system installed on it out of the box. So,\nyou need to burn an operating system into a micro-SD card and then boot the\nRaspberry Pi from that card. <\/p>\n\n\n\n<p><strong>Step 1<\/strong><\/p>\n\n\n\n<p>First, we must download a Linux-based operating system. Raspberry Pi supports various Linux distributions such as Ubuntu, but in this guide, we will use the official OS from the Raspberry Pi Foundation, which is the Raspberry Pi OS. Download it <a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-os\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"here (opens in a new tab)\">here<\/a> by selecting \u201cwith desktop and recommended software\u201d version.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-os\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1030\" height=\"906\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15925557811-1030x906.png\" alt=\"\" class=\"wp-image-33989\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925557811-1030x906.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925557811-300x264.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925557811-768x675.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925557811-1024x900.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925557811.png 1077w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 2 <\/strong><\/p>\n\n\n\n<p>Then you need to download a software called \u201cbalenaEtcher\u201d which is used to burn the downloaded image above and make the Raspberry Pi boot from the Micro-SD card. Click <a href=\"https:\/\/www.balena.io\/etcher\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"here  (opens in a new tab)\">here <\/a>to download the latest version of this software.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.balena.io\/etcher\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1030\" height=\"460\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15925558981-1030x460.png\" alt=\"\" class=\"wp-image-33990\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925558981-1030x460.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925558981-300x134.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925558981-768x343.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925558981-1024x457.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925558981.png 1486w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 3<\/strong><\/p>\n\n\n\n<p>Then connect a micro-SD card into the micro-SD card slot of a PC by using a micro-SD to SD card adapter. You can also use a USB Micro-SD card reader.<\/p>\n\n\n\n<p><strong>Step 4<\/strong><\/p>\n\n\n\n<p>After that open the &#8220;balenaEtcher&#8221; software. Then point to the location of the downloaded image, select the connected micro-SD card, and press \u201cflash\u201d. It will take a few minutes to complete this process.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"600\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15925560971.png\" alt=\"\" class=\"wp-image-33991\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925560971.png 1000w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925560971-300x180.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925560971-768x461.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p><strong>Step 5<\/strong><\/p>\n\n\n\n<p>Now we will set up Raspberry Pi to automatically connect to the wireless network so that we can communicate with it. <\/p>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\">However, if you have an HDMI display, a keyboard and a mouse, you can skip this step, connect those into the Raspberry Pi and move onto <strong>\u201cConfiguring PiVPN on Raspberry Pi\u201d<\/strong><\/p>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\">Also if you have a Seeeduino XIAO, you can follow the guide here to setup the communication between Raspberry Pi and PC and move onto  <strong>\u201cConfiguring PiVPN on Raspberry Pi\u201d<\/strong> <\/p>\n\n\n\n<p><strong>Step 6<\/strong><\/p>\n\n\n\n<p>Navigate to Raspberry Pi root folder from your PC and create a file called &#8220;wpa_supplicant.conf&#8221;. Then copy the following codes into this file and add your home Wi-Fi username and password into the fields \u201cWiFi-name&#8221; and \u201cWiFi-password&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>country=US\nctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\nupdate_config=1\n \nnetwork={\nssid=\"WiFi-name\"\npsk=\"WiFi-password\"\nkey_mgmt=WPA-PSK\npriority=1\n}\n<\/code><\/pre>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\"><strong>Note:<\/strong> <br>The Wi-Fi name and password should be the same as your local Wi-Fi which your PC is connected to (make sure your PC and Raspberry Pi are in the same LAN).<\/p>\n\n\n\n<p><strong>Step 7 <\/strong><\/p>\n\n\n\n<p>Create a\nblank file called \u201cssh\u201d in this directory<\/p>\n\n\n\n<p><strong>Step 8<\/strong><\/p>\n\n\n\n<p>Then eject the micro-SD card from PC and insert it into the Raspberry Pi.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/15925567251-1030x682.png\" alt=\"\" class=\"wp-image-33997\" width=\"419\" height=\"277\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925567251-1030x682.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925567251-300x199.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925567251-768x509.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925567251-1024x678.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/15925567251.png 1113w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Step 9<\/strong><\/p>\n\n\n\n<p>Power up the\nRaspberry Pi through a Type-C USB cable and a power adapter<\/p>\n\n\n\n<p><strong>Step 10 <\/strong><\/p>\n\n\n\n<p>Now we will download Putty, which is an SSH client we will use in order to communicate with the Raspberry Pi. Click <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">here <\/a>to download.<\/p>\n\n\n\n<p><strong>Step 11<\/strong><\/p>\n\n\n\n<p>Open Putty\nand set hostname as \u201craspberrypi.local\u201d and port as \u201c22\u201d. Then press \u201cOpen\u201d.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"596\" height=\"540\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/06\/new-1.png\" alt=\"\" class=\"wp-image-33996\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/new-1.png 596w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/06\/new-1-300x272.png 300w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><figcaption>Putty Client<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring PiVPN on Raspberry Pi<\/h2>\n\n\n\n<p><strong>Step 1 <\/strong><\/p>\n\n\n\n<p>Open the terminal and run the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -L https:\/\/install.pivpn.io | bash<\/code><\/pre>\n\n\n\n<p>Then you will be prompted with a dialog box and will be asked with a few questions on setting up the OpenVPN server. Here we will choose the default settings because it is enough to make the server up and running. <\/p>\n\n\n\n<p><strong>Step 2<\/strong> <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"435\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936771411.png\" alt=\"\" class=\"wp-image-34266\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936771411.png 747w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936771411-300x175.png 300w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><figcaption>Installer Start Screen<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 3<\/strong>  <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"431\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936771951.png\" alt=\"\" class=\"wp-image-34267\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936771951.png 738w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936771951-300x175.png 300w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><figcaption>Choosing a static IP address<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step <\/strong>4    <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"468\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936774631.png\" alt=\"\" class=\"wp-image-34270\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936774631.png 746w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936774631-300x188.png 300w\" sizes=\"(max-width: 746px) 100vw, 746px\" \/><figcaption>Confirm Static IP address<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 5<\/strong>  <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"464\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936775141.png\" alt=\"\" class=\"wp-image-34272\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936775141.png 739w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936775141-300x188.png 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><figcaption>Process with this step<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 6<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"456\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936775521.png\" alt=\"\" class=\"wp-image-34273\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936775521.png 741w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936775521-300x185.png 300w\" sizes=\"(max-width: 741px) 100vw, 741px\" \/><figcaption>Choosing local user<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 7<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"456\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936775871.png\" alt=\"\" class=\"wp-image-34274\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936775871.png 736w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936775871-300x186.png 300w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><figcaption>Choosing the default &#8220;pi&#8221; user<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 8<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"456\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936776721.png\" alt=\"\" class=\"wp-image-34275\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936776721.png 741w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936776721-300x185.png 300w\" sizes=\"(max-width: 741px) 100vw, 741px\" \/><figcaption>Choose OpenVPN<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 9<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"459\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936777621.png\" alt=\"\" class=\"wp-image-34278\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936777621.png 737w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936777621-300x187.png 300w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><figcaption>Select &#8220;No&#8221; to process with defaults<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 10<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"457\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936778241.png\" alt=\"\" class=\"wp-image-34279\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936778241.png 737w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936778241-300x186.png 300w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><figcaption>Retain default port<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 11<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"454\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936778531.png\" alt=\"\" class=\"wp-image-34280\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936778531.png 735w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936778531-300x185.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><figcaption>Confirm the port<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 12<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"455\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936779031.png\" alt=\"\" class=\"wp-image-34281\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936779031.png 740w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936779031-300x184.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><figcaption>Choose your preferred DNS provider<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 13<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"455\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936779431.png\" alt=\"\" class=\"wp-image-34282\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936779431.png 732w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936779431-300x186.png 300w\" sizes=\"(max-width: 732px) 100vw, 732px\" \/><figcaption>Choose public IP<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 14<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"465\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936779741.png\" alt=\"\" class=\"wp-image-34283\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936779741.png 744w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936779741-300x188.png 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><figcaption>Generating server and HMAC keys<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 15<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"457\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936780031.png\" alt=\"\" class=\"wp-image-34284\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936780031.png 736w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936780031-300x186.png 300w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><figcaption>Proceed with this step<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 16<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"454\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936780251.png\" alt=\"\" class=\"wp-image-34285\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936780251.png 735w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936780251-300x185.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><figcaption>Enable unattended upgrades for security<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 17<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"455\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936780991.png\" alt=\"\" class=\"wp-image-34286\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936780991.png 735w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936780991-300x186.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><figcaption>Installation successful window<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Step 18<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"454\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936781861.png\" alt=\"\" class=\"wp-image-34287\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936781861.png 734w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936781861-300x186.png 300w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><figcaption>Reboot your Raspberry Pi<\/figcaption><\/figure><\/div>\n\n\n\n<p>Now you have successfully installed the OpenVPN server on your Raspberry Pi. Check whether it&#8217;s running by entering the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service openvpn status<\/code><\/pre>\n\n\n\n<p>If you see the messages as below, your installation is successful.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"182\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936789541.png\" alt=\"\" class=\"wp-image-34294\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936789541.png 892w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936789541-300x61.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936789541-768x157.png 768w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Port Forwarding<\/h2>\n\n\n\n<p>Even though you have set up the OpenVPN server on the Raspberry Pi, it&#8217;s not possible to access this server remotely because the port we have configured before is not open to access from outside networks. In order to give access to this server, you need to open that port on your router which is called port forwarding. However, different routers have different methods to set up port forwarding. You can check your router model and search on how to port forward on that specific router.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a client ovpn profile<\/h2>\n\n\n\n<p>Now that the server is running, you need to configure the clients which will be connecting to your server. In order to do this, you need to generate an ovpn profile for each and every client that will be accessing your server.<\/p>\n\n\n\n<p>Run the following command to add a client <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pivpn add<\/code><\/pre>\n\n\n\n<p>Then proceed with entering a client name, number of days the certificate would last, and a password<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"407\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936804841.png\" alt=\"\" class=\"wp-image-34298\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936804841.png 956w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936804841-300x128.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936804841-768x327.png 768w\" sizes=\"(max-width: 956px) 100vw, 956px\" \/><figcaption>Creating User1 OVPN profile<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936806701.png\" alt=\"\" class=\"wp-image-34299\" width=\"454\" height=\"118\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936806701.png 579w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936806701-300x78.png 300w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><figcaption>Successfully added User1<\/figcaption><\/figure><\/div>\n\n\n\n<p>However, if you don&#8217;t want to specify a password, you can type the following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pivpn add nopass<\/code><\/pre>\n\n\n\n<p> To list all valid and revoked certificates, type the following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pivpn list<\/code><\/pre>\n\n\n\n<p> To revoke a client ovpn profile, type the following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pivpn revoke<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Connecting Clients<\/h2>\n\n\n\n<p>When client profiles are added, they get stored under <strong>\/home\/user\/ovpns <\/strong>directory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936812151.png\" alt=\"\" class=\"wp-image-34300\" width=\"387\" height=\"58\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936812151.png 437w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936812151-300x45.png 300w\" sizes=\"(max-width: 387px) 100vw, 387px\" \/><\/figure>\n\n\n\n<p>Now that you have a .ovpn file for your device, you need to install the necessary software on the client in order to use this file. <strong>OpenVPN Connect<\/strong> is the recommended software to use on all iOS, Android, macOS, Linux and Windows devices. Click <a rel=\"noreferrer noopener\" aria-label=\"here (opens in a new tab)\" href=\"https:\/\/openvpn.net\/download-open-vpn\/\" target=\"_blank\">here<\/a> to visit the downloads page. You can generate a profile for each device that you want to use and load the .ovpn file and connect to your own VPN server!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"185\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2020\/07\/15936817211.png\" alt=\"\" class=\"wp-image-34304\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936817211.png 934w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936817211-300x59.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/15936817211-768x152.png 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>We hope you were successful in setting up your own VPN server on your Raspberry Pi by following this guide! Now you can enjoy a more secure internet when you are outside!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction If you want a VPN to secure your internet connection when you are browsing<\/p>\n","protected":false},"author":141,"featured_media":34314,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[142,247],"class_list":["post-34232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-open-hardware","tag-raspberry-pi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks - Latest News from Seeed Studio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"Introduction If you want a VPN to secure your internet connection when you are browsing\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-02T12:33:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-10T06:55:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lakshan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lakshan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/\",\"name\":\"Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png\",\"datePublished\":\"2020-07-02T12:33:19+00:00\",\"dateModified\":\"2021-06-10T06:55:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#primaryimage\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png\",\"contentUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png\",\"width\":1200,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5\",\"name\":\"Lakshan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g\",\"caption\":\"Lakshan\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks - Latest News from Seeed Studio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/","og_locale":"en_US","og_type":"article","og_title":"Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks - Latest News from Seeed Studio","og_description":"Introduction If you want a VPN to secure your internet connection when you are browsing","og_url":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2020-07-02T12:33:19+00:00","article_modified_time":"2021-06-10T06:55:43+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png","type":"image\/png"}],"author":"Lakshan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lakshan","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/","url":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/","name":"Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#primaryimage"},"thumbnailUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png","datePublished":"2020-07-02T12:33:19+00:00","dateModified":"2021-06-10T06:55:43+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5"},"breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#primaryimage","url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png","contentUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png","width":1200,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2020\/07\/02\/set-up-a-raspberry-pi-vpn-server-using-pivpn-and-browse-securely-on-public-networks-m\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Set up a Raspberry Pi VPN server using PiVPN and browse securely on public networks"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5","name":"Lakshan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g","caption":"Lakshan"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/"}]}},"modified_by":"Lily","views":91546,"featured_image_urls":{"full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png",1200,675,false],"thumbnail":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-80x80.png",80,80,true],"medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-300x169.png",300,169,true],"medium_large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-768x432.png",640,360,true],"large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-1030x579.png",640,360,true],"1536x1536":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png",1200,675,false],"2048x2048":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png",1200,675,false],"visody_icon":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png",32,18,false],"magazine-7-slider-full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover.png",1200,675,false],"magazine-7-slider-center":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-936x675.png",936,675,true],"magazine-7-featured":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-1024x576.png",1024,576,true],"magazine-7-medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-720x380.png",720,380,true],"magazine-7-medium-square":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2020\/07\/cover-675x450.png",675,450,true]},"author_info":{"display_name":"Lakshan","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/34232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/141"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=34232"}],"version-history":[{"count":14,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/34232\/revisions"}],"predecessor-version":[{"id":34319,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/34232\/revisions\/34319"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media\/34314"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=34232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=34232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=34232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}